|
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
|
▷ |