Sections | |
I2C Serial Data Ports | |
UART Serial Data Ports | |
Serial Data Ports (SDP) is a term used in the Netcruzer Library for many different modules that use data serially. All serial communication ports, like the UARTs, I2C port, SPI Port, UDP Port, TCP Ports... are referred to as "Serial Data Port". There are also a couple of General purpose "Serial Data Port" that can be used in user applications. All "Serial Data Port" use Circular Buffers for transferring data.
All Serial Data Ports are assigned numbers:
|
|
The number of circular buffers. Each "Serial Data Port" consists of a TX and RX circular buffer. There are thus BUF_COUNT/2 "Serial Data Ports"
Each "Serial Data Port" has a transmit and receive buffer. They are identified by their "Serial Data Port Buffer ID" number.
For example, the "Serial Data Port ID" for I2C 1 is 7. It's transmit buffer will have the "Serial Data Port Buffer ID" of 14 (7*2), and it's receive buffer will be 15.