Switches, Leds, And Relay - Rabbit RCM3365 User Manual

C-programmable core module with nand flash mass storage and ethernet
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rcm3375

Table of Contents