CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

Tells how to send the value.

See Also
Controller_SendValue
Enumerator
CSM_Absolute 

Absolute value. For Modifiers: full scale value 0x0000 -> 0xFFFF. For Selectors: item related value.

CSM_Relative 

Relative value. For modifiers: the value is simply an offset from the current value. Just cast the CPNS::uint16 value to CPNS::int16. 0x0000 is 0, 0x0001 is 1 and 0xFFFF is -1.

Remarks
If the resulting value is going out of range, it is adjusted by a modulo operation to loop around the effective range.
CSM_RelativeOneWay 

Relative value, one way Similar to relative value, but the final value runs into the terminals instead of looping.

CSM_Proportional 

Proportional value For Modifiers: similar to CSM_Absolute mode For Selectors: the item is selected by a proportional mapping of the 0x0000 -> 0xFFFF value to the number of items in the list.

Remarks
This proportional mode is the one to be used by generic Controllers that does not care about the sent message type.