Difference between revisions of "Component: UART SCADA (CAL) (Misc)"
From Flowcode Help
Jump to navigationJump to search| Line 20: | Line 20: | ||
==Detailed description== | ==Detailed description== | ||
| + | |||
| + | |||
| Line 34: | Line 36: | ||
==Examples== | ==Examples== | ||
| + | |||
| + | |||
Revision as of 14:43, 16 January 2023
| Author | Matrix TSL |
| Version | 2.1 |
| Category | Misc |
Contents
UART SCADA 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 for the component source code: FC_Comp_Source_UART_SCADA.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
| SendString | |
| Transmits a string of bytes via the UART peripheral | |
| Data | |
| Data String to transmit | |
| Return | |
| Receive | |
| Receive a Character | |
| Timeout | |
| Period to wait for the character to be received | |
| Return | |
| ScanForDeviceID | |
| Checks to see if a device VID/PID string is present and returns the COM port number. Returns 0 if device not found. | |
| HWID | |
| Example: "VID_12BF&PID_0101" | |
| Return | |
| Send | |
| Send the Character | |
| Char | |
| The Character to send | |
| Return | |
| GetConsoleHandle | |
| Return | |
| 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 | |
| Initialize the component with the specified properties | |
| Return | |
| Uninit | |
| Un-initialize the UART and release the resources | |
| Return | |