You copied the Doc URL to your clipboard.

SerialData protocol

This protocol is implemented as a parallel interface for efficiency. All communication is driven by the master port.

This protocol has behaviors:

dataTransmit(uint16_t data) : void

Used by the master to send data to the slave.


Table 1. Bits for dataTransmit()
Bits Function
15:8 Reserved
7:0 Transmit data

dataReceive(void) : uint16_t

Used by the master to receive data from the slave.


Table 2. Bits for dataReceive()
Bits Function
15:13 Reserved
12 Set when no data available for reading
11 Reserved
10 Break error
9:8 Reserved
7:0 Receive data

signalsSet(uint8_t signal) : void

Used by the master to get the current signal status.


Table 3. Bits for signalsSet()
Bits Function
7 Out1
6 Out2
5 RTS
4 DTR
3:0 Reserved

signalsGet() : uint8_t

Used by the master to get the current signal status.


Table 4. Bits for signalsGet()
Bits Function
7:4 Reserved
3 DCD
2 DSR
1 CTS
0 RI