C
#define RdiaSetVal(pDia, newVal) (pDia)->value = newVal
Overview
Sets the value to the given new value. Value set must be in 0-max range inclusive.
Input Parameters
Input Parameters |
Description |
pDia |
Pointer to the object. |
newVal |
New dial value. |
Returns
none
Preconditions
none
Side Effects
none
Example
WORD updatedVal; ROUNDDIAL *pDia; // assuming pDia is initialized to an existing dial Object // assume GetInput() is a function that retrieves source data updatedVal = GetInput(); RdiaSetVal(pDia, updatedVal);