Rabbit OP7100 User Manual Page 67

  • Download
  • Add to my manuals
  • Print
  • Page
    / 172
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 66
User’s Manual 61
Sets the state of a digital output channel (OUT0–OUT7).
This function is intended to control a given channel as a tristate output, for example:
0 = Active low state (GND potential)
1 = Active High state (+K potential)
2 = High-Impedance state.
Since switching from one state to another has some software overhead, the switching delay should be
less than 1 µs.
A run-time error will occur for the following conditions:
1. channel or state out of range.
2. brdInit or digTriStateConfig was not executed before executing digOutTriState.
3. Your tried to use a channel that is not configured as a tristate output.
PARAMETERS
channel is the output channel number (0–7).
state is set to one of the following output states.
0 = Active Low.
1 = Active High
2 = High-Impedance state.
SEE ALSO
brdInit, digIn, digOutConfig, digOut, triStateConfig
Reads the state of an input channel (IN0–IN18 for OP7200, IN0–IN15 for OP7210).
A run-time error will occur for the following conditions:
1. channel out of range.
2. brdInit was not executed before executing digIn.
PARAMETER
channel is the input channel number (0–18 or 0–15)
RETURN VALUE
The logic state of the input (0 or 1).
SEE ALSO
brdInit, digOut
void digOutTriState(int channel, int state);
int digIn(int channel);
Page view 66
1 2 ... 62 63 64 65 66 67 68 69 70 71 72 ... 171 172

Comments to this Manuals

No comments