154
eDisplay (OP7200)
D.3 Function Calls
The function calls described in this section are used with all RabbitNet peripheral boards,
and are available in the
RNET.LIB
library in the Dynamic C
RABBITNET
folder.
If you are planning to use any of the RS-232 serial ports
and
the RabbitNet port on the
OP7200, initialize the serial port(s)
before
you initialize the RabbitNet port. The follow-
ing sample code illustrates this sequence.
// Initialize Serial Port C, set baud rate to 19200
serCopen(19200);
serCwrFlush();
serCrdFlush();
// Initialize Serial Port D, set baud rate to 19200
serDopen(19200);
serDwrFlush();
serDrdFlush();
// Set serial mode...must be done after serXopen function(s)
and before Rabbitnet initialization
serMode(0);
// Initialize RabbitNet port
rn_init(RN_PORTS, 1);
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
is a bit that represents a RabbitNet port on the master single-board computer (from 0 to the
maximum number of ports). A set bit requires 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
int rn_init(char portflag, char servicetype);
Содержание eDisplay OP7200
Страница 1: ...eDisplay OP7200 VGA Operator Control Panel User s Manual 019 0116 060831 J...
Страница 6: ...eDisplay OP7200...
Страница 14: ...8 eDisplay OP7200...
Страница 22: ...16 eDisplay OP7200...
Страница 52: ...46 eDisplay OP7200...
Страница 126: ...120 eDisplay OP7200...
Страница 132: ...126 eDisplay OP7200...
Страница 133: ...User s Manual 127 APPENDIX A SPECIFICATIONS Appendix A provides the specifications for the OP7200...
Страница 152: ...146 eDisplay OP7200...
Страница 168: ...162 eDisplay OP7200...
Страница 172: ...166 eDisplay OP7200...
Страница 174: ......