CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
void CPVALUE_Set ( CPVALUE *const  pValue,
CPUINT16 const  wRawValue,
DataTypes const  dataType,
void const *const  pTypedValue,
CPBOOLEAN const  fBipolarRawValue 
)

Set raw value and typed value.

Parameters
[in]pValuePointer to a CPValue structure
[in]wRawValueEncoded in DT_Knob16 or MKZ16 data type, this is the 16 bits view of the data exposed in the specified data type.
[in]dataTypeTyped value data type (see DataTypes enumeration DT_xxx)
[in]pTypedValuePointer to the variable containing value.
[in]fBipolarRawValueTRUE if the raw value is encoded in MKZ16 (0x0001 = -range, 0x8000 = zero, 0xFFFF = +range)
Remarks
CAUTION: dataType must match memory area size pointed by pTypedValue! Specifying mismatching dataType/pValue might trigger a memory access failure!