Difference between revisions of "Component: UART (CAL) (Misc)"
From Flowcode Help
Jump to navigationJump to searchLine 5: | Line 5: | ||
|- | |- | ||
| width="20%" style="color:gray;" | Version | | width="20%" style="color:gray;" | Version | ||
− | | 2. | + | | 2.3 |
|- | |- | ||
| width="20%" style="color:gray;" | Category | | width="20%" style="color:gray;" | Category | ||
Line 14: | Line 14: | ||
==UART component== | ==UART component== | ||
CAL = Code Abstraction Layer - Allows one code base to run on a wide range of chips. A low level implementation giving direct access to the UART peripheral. Includes simulation functionality to commmunicate via a COM port or an Injector component. Also includes timestamped logging via the console and Data Recorder trace monitoring support. | CAL = Code Abstraction Layer - Allows one code base to run on a wide range of chips. A low level implementation giving direct access to the UART peripheral. Includes simulation functionality to commmunicate via a COM port or an Injector component. Also includes timestamped logging via the console and Data Recorder trace monitoring support. | ||
+ | |||
+ | ==Version information== | ||
+ | |||
+ | Library Version, Component Version, Date, Author, Info | ||
+ | 14, 2.2, 04-11-24, BR, Added pin caption to the remap port pin selection property | ||
+ | 15, 2.2, 04-11-24, BR, Cleaned up pin caption from none remap port pin property | ||
+ | 16, 2.2, 15-11-24, BR, Minor change to reflect changes to I2C CAL component | ||
+ | 17, 2.3, 06-05-25, BR, Added filter to allow for automatic channel setup based on FCD and component | ||
==Detailed description== | ==Detailed description== | ||
Line 416: | Line 424: | ||
|- | |- | ||
| colspan="2" | UART Channel selector Software channels are bit banged using generic I/O pins but are not as reliable as hardware channels. Hardware channels use the selected peripheral on-board the target microcontroller. | | colspan="2" | UART Channel selector Software channels are bit banged using generic I/O pins but are not as reliable as hardware channels. Hardware channels use the selected peripheral on-board the target microcontroller. | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-type-10-icon.png]] | ||
+ | | width="90%" | Filter | ||
+ | |- | ||
+ | | colspan="2" | If set compares to the info section in the FCD to allow for auto connection to the correct channel | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] |
Latest revision as of 08:59, 9 June 2025
Author | Matrix TSL |
Version | 2.3 |
Category | Misc |
Contents
UART component
CAL = Code Abstraction Layer - Allows one code base to run on a wide range of chips. A low level implementation giving direct access to the UART peripheral. Includes simulation functionality to commmunicate via a COM port or an Injector component. Also includes timestamped logging via the console and Data Recorder trace monitoring support.
Version information
Library Version, Component Version, Date, Author, Info 14, 2.2, 04-11-24, BR, Added pin caption to the remap port pin selection property 15, 2.2, 04-11-24, BR, Cleaned up pin caption from none remap port pin property 16, 2.2, 15-11-24, BR, Minor change to reflect changes to I2C CAL component 17, 2.3, 06-05-25, BR, Added filter to allow for automatic channel setup based on FCD and component
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
ControlPin
Delay
![]() |
Delay |
Software UART Bit Delay | |
![]() |
Return |
GetConsoleHandle
![]() |
GetConsoleHandle |
![]() |
Return |
GetList
![]() |
GetList |
Gets Named property List | |
![]() |
Name |
![]() |
Return |
GetValue
![]() |
GetValue |
Get Value of Named property | |
![]() |
Name |
![]() |
Return |
Init
![]() |
Init |
Initialize the component with the specified properties | |
![]() |
Return |
Receive
![]() |
Receive |
Receive a Character | |
![]() |
Timeout |
Period to wait for the character to be received | |
![]() |
Return |
ReceiveByteArray
ReceiveString
Send
![]() |
Send |
Send the Character | |
![]() |
Char |
The Character to send | |
![]() |
Return |
SendByteArray
![]() |
SendByteArray |
Transmits an array of bytes via the UART peripheral | |
![]() |
Data |
Data to transmit | |
![]() |
NumBytes |
Number of bytes to send from the array | |
![]() |
Return |
SendNumber
![]() |
SendNumber |
Transmits a numeric value as an ASCII string | |
![]() |
Number |
Numeric value to send | |
![]() |
Return |
SendString
![]() |
SendString |
Transmits a string of bytes via the UART peripheral | |
![]() |
Data |
Data String to transmit | |
![]() |
Return |
SetValue
![]() |
SetValue |
set Value of Named property | |
![]() |
Name |
![]() |
Value |
![]() |
Return |
TestProperty
![]() |
TestProperty |
A simple macro to allow us to test the value of a single property during runtime. | |
![]() |
Property |
0=UseTX, 1=UseRX, 2=UseFlowControl | |
![]() |
Return |
Uninit
![]() |
Uninit |
Un-initialize the UART and release the resources | |
![]() |
Return |
UpdateBaud
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_UART.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_UART.fcfx