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
39
5.2.3 Serial Communication Drivers
Library files included with Dynamic C provide a full range of serial communications sup-
port. The
LIB\RS232.LIB
library provides a set of circular-buffer-based serial functions.
The
LIB\PACKET.LIB
library provides packet-based serial functions where packets can be
delimited by the 9th bit, by transmission gaps, or with user-defined special characters.
Both libraries provide blocking functions, which do not return until they are finished
transmitting or receiving, and nonblocking functions, which must be called repeatedly
until they are finished, allowing other functions to be performed between calls. For more
information, see the
Dynamic C Function Reference Manual
and Rabbit’s Technical
Note TN213,
Rabbit Serial Port Software
in the online documentation.
5.2.4 TCP/IP Drivers
The TCP/IP drivers are located in the
LIB\TCPIP
folder. Complete information on these
libraries and the TCP/IP functions is provided in the
Dynamic C TCP/IP User’s Manual
.
5.2.5 Serial Flash Drivers
The Dynamic C
LIB\SerialFlash\SFLASH.LIB
library is used to interface to serial
flash memory devices on an SPI bus such as the serial flash on board the RCM3309 and
the RCM3319, which use Serial Port B as an SPI port. The library has two sets of function
calls—the first is maintained for compatibility with previous versions of the
LIB\
SFLASH.LIB
library. The functions are all blocking and only work for single flash devices.
The new functions, which should be used for the RCM3309/RCM3319, make use of an
sf_device
structure as a handle for a specific serial flash device. This allows multiple
devices to be used by an application.
More information on these function calls is available in the
Dynamic C Function Refer-
ence Manual
.
The serial flash mass storage may also be used to store files with a directory structure. The
Dynamic C FAT file system included with Dynamic C provides support for a file system
and for formatting the serial flash memory in a Rabbit-based system. This allows files to
be read and written in a PC-compatible manner. The supporting documentation for the
Dynamic C FAT File System and the sample programs in the
SAMPLES\FileSystem\
FAT
folder illustrate the use of the Dynamic C FAT file system.
46 / 191
46 / 191