BL4S200 User’s Manual
94
digOutTriStateConfig_H
int digOutTriStateConfig_H(char configuration);
FUNCTION DESCRIPTION
Allows configuration of a high-current output to be a tristate type output. Upon config-
uration, the output will be initially set to a high-impedance state.
NOTE:
Configuring a given output channel for tristate operation using the
digOut-
TriStateConfig()
function call will temporarily override the configuration set by
the
digOutConfig_H()
function call as long as it is kept a tristate channel. This
configuration can also be overridden by setting the channel as a PWM or PPM output.
PARAMETER
configuration
configuration byte to configure output channels HOUT0–
HOUT7 as tristate outputs.
Each bit corresponds to one of the following high-current outputs.
Bit 7 = high-current output channel HOUT7
Bit 6 = high-current output channel HOUT6
Bit 5 = high-current output channel HOUT5
Bit 4 = high-current output channel HOUT4
Bit 3 = high-current output channel HOUT3
Bit 2 = high-current output channel HOUT2
Bit 1 = high-current output channel HOUT1
Bit 0 = high-current output channel HOUT0
The high-current outputs are configured to be tristate outputs by
setting the corresponding bit to 0 or 1: 0 = disable tristate operation,
1 = enable tristate operation.
EXAMPLE
RETURN VALUE
0 — success.
-EINVAL
— board initialization not performed.
SEE ALSO
brdInit, digOutTriState_H, digOutConfig_H
configuration = 0x59;
// 0 1 0 1 1 0 0 1
// HOUT7 = Tristate disabled
// HOUT6 = Tristate enabled
// HOUT5 = Tristate disabled
// HOUT4–HOUT3 = Tristate enabledg
// HOUT2–HOUT1 = Tristate disabled
// HOUT0 = Tristate enabled