BL4S200 User’s Manual
129
anaOutmAmps
void anaOutmAmps(int ch, float current);
FUNCTION DESCRIPTION
Sets the current 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
current
the current desired on the output channel (valid range is 4–20 mA)
RETURN VALUE
0 — success.
BL_SPIBUSY — SPI port busy.
-ERR_ANA_CALIB
— error reading calibration data.
SEE ALSO
brdInit, anaOut, anaOutVolts, anaOutStrobe, anaOutConfig, anaOutCalib
electronic components distributor