BL4S200 User’s Manual
95
digOutTriState_H
int digOutTriState_H(int channel, int state)
FUNCTION DESCRIPTION
Sets the state of the high-current output channel to a logic 0, logic 1, or high-impedance
tristate.
PARAMETERS
channel
high-current output pins 0 to 7 (HOUT0–HOUT7)
state
sets a given channel to one of the following output states as long as
it has been enable as a tristate output by the
digOutTriStateConfig_H()
function call.
Tristate configuration:
0 — connects the load to GND
1 — connects the load to +K1 or + K2.
2 — puts the output in a high-impedance tristate
RETURN VALUE
0 — success.
-EINVAL
— invalid parameter or channel not configured for tristate.
SEE ALSO
brdInit, digOutTriStateConfig_H
electronic components distributor