![background image](http://html1.mh-extra.com/html/rabbit/rabbitcore-rcm3309/rabbitcore-rcm3309_user-manual_3119427050.webp)
Distributor of Digi International: Excellent Integrated System Limited
Datasheet of 20-101-1194 - MODULE RABBITCORE RCM3309 ROHS
Contact us: [email protected] Website: www.integrated-circuit.com
User’s Manual
43
5.2.6.3 Switches, LEDs, and Relay
switchIn
int switchIn(int swin);
DESCRIPTION
Reads the state of a switch input.
A runtime error will occur if
brdInit()
has not been called first or if the
swin
parameter is invalid.
PARAMETERS
swin
switch input to read:
2—S2
3—S3
RETURN VALUE
State of the switch input:
1 = open
0 = closed
SEE ALSO
brdInit
50 / 191
50 / 191