English
Language : 

20-101-1051 Datasheet, PDF (53/165 Pages) List of Unclassifed Manufacturers – C-Programmable Core Module with NAND Flash Mass Storage and Ethernet
5.2.6.2 Digital I/O
int digIn(int channel);
Reads the input state of inputs on Prototyping Board headers J5 and J6. Do not use this function if you
configure these pins for alternate use after brdInit() is called.
PARAMETERS
channels is the channel number corresponding to the signal on header J5 or J6
0—IN0
1—IN1
2—IN2
3—IN3
4—QD1B
5—QD1A
6—QD2B
7—QD2A
RETURN VALUE
The logic state (0 or 1) of the input.
SEE ALSO
brdInit
void digOut(int channel, int value);
Writes a value to an output channel on Prototyping Board header J10. Do not use this function if you
have installed the stepper motor chips at U2 and U3.
PARAMETERS
channel is output channel 0–7 (OUT00–OUT07).
value is the value (0 or 1) to output.
RETURN VALUE
None.
SEE ALSO
brdInit
User’s Manual
47