![background image](http://html1.mh-extra.com/html/rabbit/rabbitcore-rcm3309/rabbitcore-rcm3309_user-manual_3119427173.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
166
RabbitCore RCM3309/RCM3319
E.3 Function Calls
The function calls described in this section are used with all RabbitNet peripheral cards,
and are available in the
RNET.LIB
library in the Dynamic C
LIB\RABBITNET
folder.
rn_init
int rn_init(char portflag, char servicetype);
DESCRIPTION
Resets, initializes, or disables a specified RabbitNet port on the master single-board
computer. During initialization, the network is enumerated and relevant tables are filled
in. If the port is already initialized, calling this function forces a re-enumeration of all
devices on that port.
Call this function first before using other RabbitNet functions.
PARAMETERS
portflag
a bit that represents a RabbitNet port on the master single-board
computer (from 0 to the maximum number of ports). A set bit re-
quires a service. If
portflag
= 0x03, both RabbitNet ports 0 and
1 will need to be serviced.
servicetype
enables or disables each RabbitNet port as set by the port flags.
0 = disable port
1 = enable port
RETURN VALUE
0
173 / 191
173 / 191