
TPMC118-SW-95 – QNX6 Neutrino Device Driver
Page 25 of 30
3.3.8 DCMD_TP118_SYNCOFF
NAME
DCMD_TP118_SYNCOFF – Remove the specified channel from synchronous channel set
DESCRIPTION
This devctl function removes the specified encoder channel from the synchronized channel set. A
pointer to the callers message buffer (
TP118_SYNC
) and the size of this structure is passed by the
parameters
data_ptr
and
n_bytes
to the device.
The
TP118_SYNC
structure has the following layout:
typedef struct
{
int
channel;
} TP118_SYNC, *PTP118_SYNC;
channel
This argument specifies the encoder channel that shall be removed from synchronized mode.
Valid values are 1 up to 6.
EXAMPLE
int
fd;
int
result;
TP118_SYNC syncBuf;
...
/*
** remove channel 3 from synchronized mode
*/
syncBuf.channel =
3;
result = devctl(
fd,
DCMD_TP118_SYNCOFF,
&syncBuf,
sizeof(syncBuf),
NULL);
if (result == EOK)
{
/* successful removed */
}
...