Component: MULTIUART (SPI2UART) (Comms: Interface)
From Flowcode Help
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 2.0 |
Category | Comms: Interface |
Contents
MULTIUART component
Uses a high speed SPI connection to enable up to four buffered external UARTs via the MULTIUART modules.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_MULTIUART.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_MULTIUART.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Macro reference
CheckRx
CheckRx | |
Returns the number of received bytes held in queue for the selected channel. | |
- BYTE | UART |
UART Index Range: 0-3 | |
- BYTE | Return |
CheckTx
CheckTx | |
Returns the number of bytes held in the transmit queue for the selected channel. | |
- BYTE | UART |
UART Index Range: 0-3 | |
- BYTE | Return |
Initialise
Initialise | |
Activates the SPI peripheral and claims control over the I/O pins. | |
- VOID | Return |
ReceiveByte
ReceiveString
SetBaud
SetBaud | |
Adds a byte to the transmit queue for the selected channel. | |
- BYTE | UART |
UART Index Range: 0-3 | |
- BYTE | Baud |
0=1200, 1=2400, 2=4800, 3=9600, 4=19200, 5=38400, 6=57600, 7=115200 | |
- VOID | Return |
TransmitByte
TransmitByte | |
Adds a byte to the transmit queue for the selected channel. | |
- BYTE | UART |
UART Index Range: 0-3 | |
- BYTE | Data |
- VOID | Return |
TransmitString
TransmitString | |
Adds a byte to the transmit queue for the selected channel. | |
- BYTE | UART |
UART Index Range: 0-3 | |
- STRING | Data |
- VOID | Return |