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 81: | Line 83: | ||
==Macro reference== | ==Macro reference== | ||
| + | ===ReceiveByte=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 99: | Line 102: | ||
| + | ===TransmitString=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 122: | Line 126: | ||
| + | ===SetBaud=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 145: | Line 150: | ||
| + | ===TransmitByte=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 168: | Line 174: | ||
| + | ===CheckRx=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 186: | Line 193: | ||
| + | ===CheckTx=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 204: | Line 212: | ||
| + | ===ReceiveString=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 227: | Line 236: | ||
| + | ===Initialise=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Revision as of 11:51, 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_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
ReceiveByte
TransmitString
| TransmitString | |
| Adds a byte to the transmit queue for the selected channel. | |
| UART | |
| UART Index Range: 0-3 | |
| Data | |
| Return | |
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 | |
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 | |
ReceiveString
Initialise
| Initialise | |
| Activates the SPI peripheral and claims control over the I/O pins. | |
| Return | |