BL4S200 User’s Manual
93
digOut_H
int digOut_H(int channel, int state);
FUNCTION DESCRIPTION
Sets the state of the selected high-current output channel to a logic 0, logic 1, or high-
impedance tristate output.
PARAMETERS
channel
high-current output pins 0 to 7 (HOUT0–HOUT7)
state
sets a given channel to one of the following output states depending
on how the output was configured by the
digOutConfig_H()
function call.
Sinking configuration:
0 — connects the load to GND
1 — puts the output in a high-impedance tristate.
Sourcing configuration:
0 — connects the load in a high-impedance tristate
1 — connects the load to +K1 or + K2.
RETURN VALUE
0 — success.
-EINVAL
— if not configured correctly or invalid parameter.
SEE ALSO
brdInit, digOutConfig_H