BL4S200 User’s Manual
128
anaOutVolts
void anaOutVolts(int ch, float voltage);
FUNCTION DESCRIPTION
Sets the voltage of a D/A converter output channel by using the previously set calibra-
tion constants to calculate the correct data values.
PARAMETERS
ch
the D/A converter output channel (0–1) corresponding to
AOUT0–AOUT1
voltage
the voltage desired on the output channel
RETURN VALUE
0 — success.
BL_SPIBUSY
— SPI port busy.
-ERR_ANA_INVAL
— invalid config parameter.
-ERR_ANA_CALIB
— error reading calibration data.
SEE ALSO
brdInit, anaOut, anaOutStrobe, anaOutConfig, anaOutCalib
electronic components distributor