
TPMC118-SW-95 – QNX6 Neutrino Device Driver
Page 15 of 30
3.3.3 DCMD_TP118_SETDAC
NAME
DCMD_TP118_SETDAC – Set new DAC output
DESCRIPTION
This devctl function sets a new value to specified analog output channel. A pointer to the callers
message buffer (
TP118_SETDAC
) and the size of this structure is passed by the parameters
data_ptr
and
n_bytes
to the device.
The
TP118_SETDAC
structure has the following layout:
typedef struct
{
int
channel;
long
value;
} TP118_SETDAC, *PTP118_SETDAC;
channel
This argument specifies the analog output channel that shall be written. Valid values are
1 up to 6.
value
This parameter specifies the new analog output value. Valid values are between -32768 (-10V)
and 32767 (~+10V).