|
FreeHIL
|
#include <FH_RFCommunication_GlobalVariables.h>
Data Fields | |
| uint8_t | DeviceAddress |
| uint8_t | Function |
| uint8_t | Command |
| uint8_t | DataLength |
| uint8_t | Data [FH_RFCommunication_ReceiveBufLength - FH_RFCommunication_MinCommandSize] |
| uint8_t | Checksum |
FH_RFCommunication_Message is the structure for receiving the message frame from RobotFramework
Definition at line 49 of file FH_RFCommunication_GlobalVariables.h.
| uint8_t Checksum |
The checksum of the message
Definition at line 82 of file FH_RFCommunication_GlobalVariables.h.
| uint8_t Command |
The 3rd data in the message frame is the Command
There are different commands for DO (Digital Output), DI (Digital Input), AO (Analog Output), AI (Analog Input), UART, CAN , ...
For example for DO (Digital Output), different commands are available in FH_DO_Configs.h
Definition at line 66 of file FH_RFCommunication_GlobalVariables.h.
| uint8_t Data[FH_RFCommunication_ReceiveBufLength - FH_RFCommunication_MinCommandSize] |
The Data could be from 0 byte to up to (FH_RFCommunication_ReceiveBufLength - FH_RFCommunication_MinCommandSize) bytes
Since DataLength is just one byte, Data bytes can't be more than 255
FH_RFCommunication_ReceiveBufLength and FH_RFCommunication_MinCommandSize are configurable in FH_RFCommunication_Configs.h
Definition at line 78 of file FH_RFCommunication_GlobalVariables.h.
| uint8_t DataLength |
The 4th data in the message frame is the DataLength
It is the length of the Data in the message frame
Since DataLength is just one byte, Data bytes can't be more than 255
Definition at line 72 of file FH_RFCommunication_GlobalVariables.h.
| uint8_t DeviceAddress |
The 1st data in the message frame is the DeviceAddress
If a message (from RobotFramework) with a different DeviceAddress than the one set in FH_DeviceAddress.h is received, it will be ignored and not processed
Definition at line 55 of file FH_RFCommunication_GlobalVariables.h.
| uint8_t Function |
The 2nd data in the message frame is the Function
Function could be DO (Digital Output), DI (Digital Input), AO (Analog Output), AI (Analog Input), UART, CAN , ... in FH_RFCommunication_Function
Definition at line 60 of file FH_RFCommunication_GlobalVariables.h.