Difference between revisions of "Component: MULTIUART (SPI2UART) (Comms: Interface)"
From Flowcode Help
Jump to navigationJump to search| Line 74: | Line 74: | ||
{{Fcfile|MULTIUART Test.fcfx|Simple test program}} | {{Fcfile|MULTIUART Test.fcfx|Simple test program}} | ||
| + | |||
| + | |||
| Line 250: | Line 252: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
| − | |||
| − | |||
Revision as of 12:21, 3 February 2023
| Author | 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_temp/MULTIUART.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_temp/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. | |
| UART | |
| UART Index Range: 0-3 | |
| Return | |
CheckTx
| CheckTx | |
| Returns the number of bytes held in the transmit queue for the selected channel. | |
| UART | |
| UART Index Range: 0-3 | |
| Return | |
Initialise
| Initialise | |
| Activates the SPI peripheral and claims control over the I/O pins. | |
| Return | |
ReceiveByte
ReceiveString
SetBaud
| SetBaud | |
| Adds a byte to the transmit queue for the selected channel. | |
| UART | |
| UART Index Range: 0-3 | |
| Baud | |
| 0=1200, 1=2400, 2=4800, 3=9600, 4=19200, 5=38400, 6=57600, 7=115200 | |
| Return | |
TransmitByte
| TransmitByte | |
| Adds a byte to the transmit queue for the selected channel. | |
| UART | |
| UART Index Range: 0-3 | |
| Data | |
| Return | |
TransmitString
| TransmitString | |
| Adds a byte to the transmit queue for the selected channel. | |
| UART | |
| UART Index Range: 0-3 | |
| Data | |
| Return | |