30.5 Settable Parameter Types

The ScanSettableParameters function, the settableparms_t structure, and the EventSetParm_t structure use the following flags to specify the data type used by the settable parameter.

Constant

Value

Data Type: Description

SP_TYPE_NUMBER

0

long: Points to a number.

SP_TYPE_BOOLEAN

1

long: Points to a boolean value, with 0 indicating false and nonzero true.

SP_TYPE_TICKS

2

long: Points to the number of ticks.

SP_TYPE_BLOCK_SHIFT

3

SP_TYPE_TIME_OFFSET

4

long: Points to time with [ +|- ]hh:mm:ss being converted to seconds.

SP_TYPE_STRING

5

string: Points to char buffer.

SP_TYPE_TRIGGER

6

long: Points to a level at which an event is triggered. This type of parameter needs to supply a callback function.

SP_TYPE_BOOLEAN_UINT32

7

uint32: Points to a boolean value, with 0 indicating false and nonzero true.