60 eDisplay (OP7200)
Allows a given channel to be configured as a tristate type output. When a channel is configured as a
tristate output, then
digOutTriState can be used to control that channel.
A run-time error will occur for the following conditions:
1. digOut is disabled from controlling any channel that is configured as a tristate output.
2. brdInit was not executed before executing digTriStateConfig.
PARAMETER
triState is an 8-bit parameter where each bit corresponds to a high-current output:
Bit 7 = OUT7
Bit 6 = OUT6
Bit 5 = OUT5
Bit 4 = OUT4
Bit 3 = OUT3
Bit 2 = OUT2
Bit 1 = OUT1
Bit 0 = OUT0
To set the outputs, set the corresponding bit to one of the following states:
0 = tristate operation disabled
1 = tristate operation enabled
EXAMPLE
digTriStateConfig(0x02); // OUT1 tristate is enabled,
// Out0, OUT2–OUNT7 tristate are disabled
SEE ALSO
brdInit, digIn, digOutConfig, digOut, digOutTriState
void digTriStateConfig(char triState);
Comments to this Manuals