
TPMC118-SW-95 – QNX6 Neutrino Device Driver
Page 20 of 30
EXAMPLE
int
fd;
int
result;
TP118_SETPRLD preldBuf;
...
/*
** set new preload value (0x12345678) for channel 5 immediately
*/
preldBuf.channel =
5;
preldBuf.value
=
0x12345678;
preldBuf.flags
=
TP118_FL_IMMPRLD;
result = devctl(
fd,
DCMD_TP118_SETPRELD,
&preldBuf,
sizeof(preldBuf),
NULL);
if (result == EOK)
{
/* successful set */
}
...
ERRORS
EINVAL
Invalid argument. This error code is returned if either the size of the
message buffer is too small, or the specified parameter is out of
range.
SEE ALSO
Library Reference - devctl()