RdiaGetVal Macro

Microchip Graphics Library

Microchip Graphics Library
RdiaGetVal Macro
C
#define RdiaGetVal(pDia) (pDia)->value
Overview

Returns the current dial value. Value is always in the 0-max range inclusive.

Input Parameters
Input Parameters 
Description 
pDia 
Pointer to the object. 
Returns

Returns the current value of the dial.

Preconditions

none

Side Effects

none

Example
WORD currVal;
ROUNDDIAL *pDia;

    // assuming pDia is initialized to an existing dial Object
    currVal = RdiaGetVal(pDia);
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved