Difference between revisions of "Component: UART (CAL) (Misc)"
From Flowcode Help
Jump to navigationJump to searchLine 44: | Line 44: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
Line 49: | Line 51: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===ControlPin=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 72: | Line 75: | ||
+ | ===SendString=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 90: | Line 94: | ||
+ | ===UpdateBaud=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 108: | Line 113: | ||
+ | ===TestProperty=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 126: | Line 132: | ||
+ | ===SendNumber=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 144: | Line 151: | ||
+ | ===GetValue=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 162: | Line 170: | ||
+ | ===Prv_SimShowWaveform=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 185: | Line 194: | ||
+ | ===Receive=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 203: | Line 213: | ||
+ | ===Send=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 221: | Line 232: | ||
+ | ===GetConsoleHandle=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 234: | Line 246: | ||
+ | ===SendByteArray=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 257: | Line 270: | ||
+ | ===Init=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 270: | Line 284: | ||
+ | ===Delay=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 283: | Line 298: | ||
+ | ===SetValue=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 306: | Line 322: | ||
+ | ===Uninit=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 319: | Line 336: | ||
+ | ===GetList=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 337: | Line 355: | ||
+ | ===ReceiveByteArray=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 365: | Line 384: | ||
+ | ===ReceiveString=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:52, 3 February 2023
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.
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
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
ControlPin
SendString
![]() |
SendString |
Transmits a string of bytes via the UART peripheral | |
![]() |
Data |
Data String to transmit | |
![]() |
Return |
UpdateBaud
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 |
SendNumber
![]() |
SendNumber |
Transmits a numeric value as an ASCII string | |
![]() |
Number |
Numeric value to send | |
![]() |
Return |
GetValue
![]() |
GetValue |
Get Value of Named property | |
![]() |
Name |
![]() |
Return |
Prv_SimShowWaveform
![]() |
Prv_SimShowWaveform |
![]() |
TXRX |
![]() |
Data |
![]() |
Return |
Receive
![]() |
Receive |
Receive a Character | |
![]() |
Timeout |
Period to wait for the character to be received | |
![]() |
Return |
Send
![]() |
Send |
Send the Character | |
![]() |
Char |
The Character to send | |
![]() |
Return |
GetConsoleHandle
![]() |
GetConsoleHandle |
![]() |
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 |
Init
![]() |
Init |
Initialize the component with the specified properties | |
![]() |
Return |
Delay
![]() |
Delay |
Software UART Bit Delay | |
![]() |
Return |
SetValue
![]() |
SetValue |
set Value of Named property | |
![]() |
Name |
![]() |
Value |
![]() |
Return |
Uninit
![]() |
Uninit |
Un-initialize the UART and release the resources | |
![]() |
Return |
GetList
![]() |
GetList |
Gets Named property List | |
![]() |
Name |
![]() |
Return |
ReceiveByteArray
ReceiveString