
OEM User’s Manual
101
RS-232 flow control on an RS-232 port is initiated in software using the
serXflowcon-
trolOn
function call from
RS232.LIB
, where
X
is the serial port (C or D). The locations
of the flow control lines are specified using a set of five macros.
SERX_RTS_PORT
—Data register for the parallel port that the RTS line is on (e.g., PCDR).
SERA_RTS_SHADOW
—Shadow register for the RTS line's parallel port (e.g., PCDRShadow).
SERA_RTS_BIT
—The bit number for the RTS line.
SERA_CTS_PORT
—Data register for the parallel port that the CTS line is on (e.g., PCDRShadow).
SERA_CTS_BIT
—The bit number for the CTS line.
Standard 3-wire RS-232 communication using Serial Ports C and D is illustrated in the
following sample code.
#define CINBUFSIZE 15 // set size of circular buffers in bytes
#define COUTBUFSIZE 15
#define DINBUFSIZE 15
#define DOUTBUFSIZE 15
#define MYBAUD 115200 // set baud rate
#endif
main(){
serCopen(_MYBAUD); // open Serial Ports C and D
serDopen(_MYBAUD);
serCwrFlush(); // flush their input and transmit buffers
serCrdFlush();
serDwrFlush();
serDrdFlush();
serCclose(_MYBAUD); // close Serial Ports C and D
serDclose(_MYBAUD);
}
Summary of Contents for RabbitCore RCM5400W
Page 1: ...RabbitCore RCM5400W C Programmable Wi Fi Core Module OEM User s Manual 019 0169 080630 A...
Page 6: ...RabbitCore RCM5400W...
Page 24: ...18 RabbitCore RCM5400W...
Page 32: ...26 RabbitCore RCM5400W...
Page 52: ...46 RabbitCore RCM5400W...
Page 60: ...54 RabbitCore RCM4400W...
Page 96: ...90 RabbitCore RCM5400W...
Page 114: ...108 RabbitCore RCM4400W...
Page 118: ...112 RabbitCore RCM4400W...
Page 120: ......