
TPMC118-SW-95 – QNX6 Neutrino Device Driver
Page 19 of 30
3.3.5 DCMD_TP118_SETPRELD
NAME
DCMD_TP118_SETPRELD – Set new encoder preload value
DESCRIPTION
This devctl function changes the preload value of the specified encoder channel. A pointer to the
callers message buffer (
TP118_SETPRLD
) and the size of this structure is passed by the parameters
data_ptr
and
n_bytes
to the device.
The
TP118_SETPRLD
structure has the following layout:
typedef struct
{
int
channel;
unsigned
long
value;
unsigned
char
flags;
} TP118_SETPRLD, *PTP118_SETPRLD;
channel
This argument specifies the encoder channel which configuration shall be changed. Valid
values are 1 up to 6.
value
This parameter specifies the new preload value.
flags
This parameter specifies if the preload shall be executed immediately (only non referenced
mode). Valid values are:
Value Description
TP118_FL_IMMPRLD
The preload will be executed immediately if allowed.
TP118_FL_NORMPRLD
The value will be loaded into the preload register.