
TPMC118-SW-95 – QNX6 Neutrino Device Driver
Page 10 of 30
The following devctl command codes are defined in
tpmc118.h
:
Value Description
DCMD_TP118_READENC
Read value from specified encoder channel
DCMD_TP118_READINP
Read value from digital inputs
DCMD_TP118_SETDAC
Set new analog output value of specified channel
DCMD_TP118_SETRES
Set encoder resolution of specified channel
DCMD_TP118_SETPRELD
Set new encoder preload value
DCMD_TP118_SETMODE
Set encoder reference/index mode
DCMD_TP118_SYNCON
Add the specified encoder channel to synchronous
mode
DCMD_TP118_SYNCOFF
Remove the specified encoder channel from the
synchronous mode
DCMD_TP118_SYNCREAD
Read the synchronized encoder channels
DCMD_TP118_SETINTR
Wait for a specified event on digital inputs
See behind for more detailed information on each control code.
To use these TPMC118 specific control codes the header file TPMC118.h must be included in
the application.
RETURNS
On success, EOK is returned. In the case of an error, the appropriate error code is returned by the
function (not in errno!).
ERRORS
Returns only Neutrino specific error code, see Neutrino Library Reference.
Other function dependent error codes will be described for each devoctl code separately. Note, the
TPMC118 driver always returns standard QNX error codes.
SEE ALSO
Library Reference - devctl()