Difference between revisions of "Component: UART (CAL) (Misc)"
From Flowcode Help
Jump to navigationJump to search(3 intermediate revisions by the same user not shown) | |||
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. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Detailed description== | ==Detailed description== | ||
Line 44: | Line 38: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
Line 153: | Line 155: | ||
| colspan="2" | Initialize the component with the specified properties | | colspan="2" | Initialize the component with the specified properties | ||
|- | |- | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
Line 216: | Line 194: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:Fc9- | + | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT |
| width="90%" | NumBytes | | width="90%" | NumBytes | ||
|- | |- | ||
Line 245: | Line 223: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:Fc9- | + | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT |
| width="90%" | NumBytes | | width="90%" | NumBytes | ||
|- | |- | ||
Line 293: | Line 271: | ||
| colspan="2" | Data to transmit | | colspan="2" | Data to transmit | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:Fc9- | + | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT |
| width="90%" | NumBytes | | width="90%" | NumBytes | ||
|- | |- | ||
Line 539: | Line 517: | ||
| colspan="2" | Simulation data source used to allow the component to connect to various remote devices Nothing - Simulation data is ignored COM port - Routes the communication data to and from a physical or virtual COM port API - Routes the communication data via a data injector component on the Panel. | | colspan="2" | Simulation data source used to allow the component to connect to various remote devices Nothing - Simulation data is ignored COM port - Routes the communication data to and from a physical or virtual COM port API - Routes the communication data via a data injector component on the Panel. | ||
|} | |} | ||
+ | |||
+ | ==Component Source Code== | ||
+ | |||
+ | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_UART.fcfx FC_Comp_Source_UART.fcfx] | ||
+ | |||
+ | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_UART.fcfx FC_Comp_Source_UART.fcfx] |
Latest revision as of 12:24, 23 February 2024
Author | Matrix TSL |
Version | 2.2 |
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.
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