BL4S200 User’s Manual
127
anaOut
void anaOut(int ch, int rawdata);
FUNCTION DESCRIPTION
Sets the voltage of a D/A converter output channel.
PARAMETERS
ch
the D/A converter output channel (0–1) corresponding to
AOUT0–AOUT1
rawdata
data value corresponding to the voltage desired on the output
channel (0–4095). If a value larger than 4095 is given, the channel
will be set to maximum (4095).
RETURN VALUE
0 — success.
BL_SPIBUSY
— SPI port busy.
SEE ALSO
anaOutDriver, anaOutVolts, anaOutCalib