English
Language : 

20-101-1051 Datasheet, PDF (54/165 Pages) List of Unclassifed Manufacturers – C-Programmable Core Module with NAND Flash Mass Storage and Ethernet
5.2.6.3 Switches, LEDs, and Relay
int switchIn(int swin);
Reads the state of a switch input.
PARAMETERS
swin is the switch input to read:
2—S2
3—S3
RETURN VALUE
State of the switch input:
1 = open
0 = closed
SEE ALSO
brdInit
void ledOut(int led, int value);
Controls LEDs on the Prototyping Board and on the RCM3365/RCM3375.
PARAMETERS
led is the LED to control:
0 = red User LED on RCM3365/RCM3375
3 = DS3 on Prototyping Board
4 = DS4 on Prototyping Board
5 = DS5 on Prototyping Board
6 = DS6 on Prototyping Board
value is the value used to control the LED:
0 = off
1 = on
RETURN VALUE
None.
SEE ALSO
brdInit
48
RabbitCore RCM3365/RCM3375