RdiaSetVal Macro

Microchip Graphics Library

Microchip Graphics Library
RdiaSetVal Macro
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);
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved