
44
RabbitCore RCM3305/RCM3315
5.2.6.3 Switches, LEDs, and Relay
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
Controls LEDs on the Prototyping Board and on the RCM3305/RCM3315.
PARAMETERS
led
is the LED to control:
0 = red User LED on RCM3305/RCM3315
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
int switchIn(int swin);
void ledOut(int led, int value);
Summary of Contents for RCM3315
Page 6: ...RabbitCore RCM3305 RCM3315...
Page 14: ...8 RabbitCore RCM3305 RCM3315...
Page 22: ...16 RabbitCore RCM3305 RCM3315...
Page 28: ...22 RabbitCore RCM3305 RCM3315...
Page 70: ...64 RabbitCore RCM3305 RCM3315...
Page 106: ...100 RabbitCore RCM3305 RCM3315...
Page 144: ...138 RabbitCore RCM3305 RCM3315...
Page 160: ......