|
FreeHIL
|
File Map:
FH_Functions, Section FH_UART, Peripheral FH_UART04 (UART 04)
(The UART04 (UART 04) could be any interested UART of the micro-controller on which FH source code is ported)
More...
#include "../../../../FH_Embedded/FH_Root/FH_Perif/FH_UART/FH_UART_Configs/FH_UART_Configs.h"#include "../../../../FH_Embedded/FH_Setup/FH_RFCommunication/FH_RFCommunication_GlobalVariables.h"Go to the source code of this file.
Functions | |
| FH_ErrorInfo | FH_UART_Init_UART04 (FH_RFCommunication_Message *fh_RFCommunication_Message) |
| This function initializes the UART 04 The UART 04 could be any interested UART of the micro-controller on which FH source code is ported FH user should call the initialization function of the interested UART here. | |
| FH_ErrorInfo | FH_UART_Send_UART04 (FH_RFCommunication_Message *fh_RFCommunication_Message) |
| This function sends data through the UART 04 The UART 04 could be any interested UART of the micro-controller on which FH source code is ported FH user should call the send function of the interested UART here. | |
| FH_ErrorInfo | FH_UART_Receive_UART04 (FH_RFCommunication_Message *fh_RFCommunication_Message, uint8_t *FH_DataSize, uint8_t *FH_Data) |
| This function retrieves the ISR (Interrupt Service Routine) receive buffer (FH_UART04_ReceiveBuf) of the UART 04 The UART 04 could be any interested UART of the micro-controller on which FH source code is ported FH user could left the present source code here intact. | |
| FH_ErrorInfo | FH_UART_ReceiveW_UART04 (FH_RFCommunication_Message *fh_RFCommunication_Message, uint8_t *FH_DataSize, uint8_t *FH_Data) |
| This function waits to receive the specified number of bytes of data through the ISR (Interrupt Service Routine) receive buffer (FH_UART04_ReceiveBuf) of the UART 04 A maximum timeout is specified too The UART 04 could be any interested UART of the micro-controller on which FH source code is ported FH user could left the present source code here intact. | |
| FH_ErrorInfo | FH_UART_ResetRB_UART04 (FH_RFCommunication_Message *fh_RFCommunication_Message) |
| This function resets the ISR (Interrupt Service Routine) receive buffer index (FH_UART04_ReceiveBufIndex) of the UART 04 The UART 04 could be any interested UART of the micro-controller on which FH source code is ported FH user could left the present source code here intact. | |
| FH_ErrorInfo | FH_UART_SSD8_UART04 (FH_RFCommunication_Message *fh_RFCommunication_Message) |
| This function sets the shared data buffer (FH_UART04_SharedDataBuf_8Bits) of the UART 04 The UART 04 could be any interested UART of the micro-controller on which FH source code is ported FH_UART04_SharedDataBuf_8Bits is a shared global 8 bit array which is a data bridge between RobotFramework and FH user code FH_UART04_SharedDataBuf_8Bits is optional It could be used by FH user to set some special data like receive filters on ISR (Interrupt Service Routine) of the UART 04 or ... | |
| FH_ErrorInfo | FH_UART_SSD16_UART04 (FH_RFCommunication_Message *fh_RFCommunication_Message) |
| This function sets the shared data buffer (FH_UART04_SharedDataBuf_16Bits) of the UART 04 The UART 04 could be any interested UART of the micro-controller on which FH source code is ported FH_UART04_SharedDataBuf_16Bits is a shared global 8 bit array which is a data bridge between RobotFramework and FH user code FH_UART04_SharedDataBuf_16Bits is optional It could be used by FH user to set some special data like receive filters on ISR (Interrupt Service Routine) of the UART 04 or ... | |
| FH_ErrorInfo | FH_UART_SSD32_UART04 (FH_RFCommunication_Message *fh_RFCommunication_Message) |
| This function sets the shared data buffer (FH_UART04_SharedDataBuf_32Bits) of the UART 04 The UART 04 could be any interested UART of the micro-controller on which FH source code is ported FH_UART04_SharedDataBuf_32Bits is a shared global 8 bit array which is a data bridge between RobotFramework and FH user code FH_UART04_SharedDataBuf_32Bits is optional It could be used by FH user to set some special data like receive filters on ISR (Interrupt Service Routine) of the UART 04 or ... | |
| FH_ErrorInfo | FH_UART_GSD8_UART04 (FH_RFCommunication_Message *fh_RFCommunication_Message, uint8_t *SharedDataLength, uint8_t *SharedData) |
| This function gets the shared data buffer (FH_UART04_SharedDataBuf_8Bits) of the UART 04 The UART 04 could be any interested UART of the micro-controller on which FH source code is ported FH_UART04_SharedDataBuf_8Bits is a shared global 8 bit array which is a data bridge between RobotFramework and FH user code FH_UART04_SharedDataBuf_8Bits is optional It could be used by FH user to set some special data like receive filters on ISR (Interrupt Service Routine) of the UART 04 or ... | |
| FH_ErrorInfo | FH_UART_GSD16_UART04 (FH_RFCommunication_Message *fh_RFCommunication_Message, uint8_t *SharedDataLength, uint8_t *SharedData) |
| This function gets the shared data buffer (FH_UART04_SharedDataBuf_16Bits) of the UART 04 The UART 04 could be any interested UART of the micro-controller on which FH source code is ported FH_UART04_SharedDataBuf_16Bits is a shared global 16 bit array which is a data bridge between RobotFramework and FH user code FH_UART04_SharedDataBuf_16Bits is optional It could be used by FH user to set some special data like receive filters on ISR (Interrupt Service Routine) of the UART 04 or ... | |
| FH_ErrorInfo | FH_UART_GSD32_UART04 (FH_RFCommunication_Message *fh_RFCommunication_Message, uint8_t *SharedDataLength, uint8_t *SharedData) |
| This function gets the shared data buffer (FH_UART04_SharedDataBuf_32Bits) of the UART 04 The UART 04 could be any interested UART of the micro-controller on which FH source code is ported FH_UART04_SharedDataBuf_32Bits is a shared global 32 bit array which is a data bridge between RobotFramework and FH user code FH_UART04_SharedDataBuf_32Bits is optional It could be used by FH user to set some special data like receive filters on ISR (Interrupt Service Routine) of the UART 04 or ... | |
File Map:
FH_Functions, Section FH_UART, Peripheral FH_UART04 (UART 04)
(The UART04 (UART 04) could be any interested UART of the micro-controller on which FH source code is ported)
SPDX-License-Identifier: Apache-2.0
Copyright 2026 Vahid Hasirchi
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
For more information refer to FreeHIL.com
Definition in file FH_UART04.h.
| FH_ErrorInfo FH_UART_GSD16_UART04 | ( | FH_RFCommunication_Message * | fh_RFCommunication_Message, |
| uint8_t * | SharedDataLength, | ||
| uint8_t * | SharedData ) |
This function gets the shared data buffer (FH_UART04_SharedDataBuf_16Bits) of the UART 04
The UART 04 could be any interested UART of the micro-controller on which FH source code is ported
FH_UART04_SharedDataBuf_16Bits is a shared global 16 bit array which is a data bridge between RobotFramework and FH user code
FH_UART04_SharedDataBuf_16Bits is optional
It could be used by FH user to set some special data like receive filters on ISR (Interrupt Service Routine) of the UART 04 or ...
FH user could left the present source code here intact
| fh_RFCommunication_Message | The message frame set by RobotFramework |
| SharedDataLength | *SharedDataLength will be set to FH_UART04_SharedDataBufLength_16Bits |
| SharedData | *SharedData will be set to FH_UART04_SharedDataBuf_16Bits |
==============================================================================
##### RobotFramework Example #####
==============================================================================
@{MessageData} = Create List ${UART04}
&{Message} = Create Dictionary DeviceAddress=${DeviceAddress_01} Function=${Function_UART} Command=${UART_Commands_GSD16} Data=@{MessageData}
${Result} SendMessage &{Message}
Comments:
UART04 => It indicates the UART 04
DeviceAddress_01 => It shall be equal to the address of the device: FH_RFCommunication_DeviceAddress
Function_UART => It is the function in the message frame
UART_Commands_GSD16 => It is the command of the function in the message frame
Definition at line 693 of file FH_UART04.c.
References FH_Uint8Uint16::bytes, FH_ErrorInfo::error_code, FH_ERROR_OK, FH_ResetErrorInfo(), fh_RFCommunication_Message, FH_UART04_SharedDataBuf_16Bits, FH_UART04_SharedDataBufLength_16Bits, and FH_Uint8Uint16::value.
| FH_ErrorInfo FH_UART_GSD32_UART04 | ( | FH_RFCommunication_Message * | fh_RFCommunication_Message, |
| uint8_t * | SharedDataLength, | ||
| uint8_t * | SharedData ) |
This function gets the shared data buffer (FH_UART04_SharedDataBuf_32Bits) of the UART 04
The UART 04 could be any interested UART of the micro-controller on which FH source code is ported
FH_UART04_SharedDataBuf_32Bits is a shared global 32 bit array which is a data bridge between RobotFramework and FH user code
FH_UART04_SharedDataBuf_32Bits is optional
It could be used by FH user to set some special data like receive filters on ISR (Interrupt Service Routine) of the UART 04 or ...
FH user could left the present source code here intact
| fh_RFCommunication_Message | The message frame set by RobotFramework |
| SharedDataLength | *SharedDataLength will be set to FH_UART04_SharedDataBufLength_32Bits |
| SharedData | *SharedData will be set to FH_UART04_SharedDataBuf_32Bits |
==============================================================================
##### RobotFramework Example #####
==============================================================================
@{MessageData} = Create List ${UART04}
&{Message} = Create Dictionary DeviceAddress=${DeviceAddress_01} Function=${Function_UART} Command=${UART_Commands_GSD32} Data=@{MessageData}
${Result} SendMessage &{Message}
Comments:
UART04 => It indicates the UART 04
DeviceAddress_01 => It shall be equal to the address of the device: FH_RFCommunication_DeviceAddress
Function_UART => It is the function in the message frame
UART_Commands_GSD32 => It is the command of the function in the message frame
Definition at line 752 of file FH_UART04.c.
References FH_Uint8Uint32::bytes, FH_ErrorInfo::error_code, FH_ERROR_OK, FH_ResetErrorInfo(), fh_RFCommunication_Message, FH_UART04_SharedDataBuf_32Bits, FH_UART04_SharedDataBufLength_32Bits, and FH_Uint8Uint32::value.
| FH_ErrorInfo FH_UART_GSD8_UART04 | ( | FH_RFCommunication_Message * | fh_RFCommunication_Message, |
| uint8_t * | SharedDataLength, | ||
| uint8_t * | SharedData ) |
This function gets the shared data buffer (FH_UART04_SharedDataBuf_8Bits) of the UART 04
The UART 04 could be any interested UART of the micro-controller on which FH source code is ported
FH_UART04_SharedDataBuf_8Bits is a shared global 8 bit array which is a data bridge between RobotFramework and FH user code
FH_UART04_SharedDataBuf_8Bits is optional
It could be used by FH user to set some special data like receive filters on ISR (Interrupt Service Routine) of the UART 04 or ...
FH user could left the present source code here intact
| fh_RFCommunication_Message | The message frame set by RobotFramework |
| SharedDataLength | *SharedDataLength will be set to FH_UART04_SharedDataBufLength_8Bits |
| SharedData | *SharedData will be set to FH_UART04_SharedDataBuf_8Bits |
==============================================================================
##### RobotFramework Example #####
==============================================================================
@{MessageData} = Create List ${UART04}
&{Message} = Create Dictionary DeviceAddress=${DeviceAddress_01} Function=${Function_UART} Command=${UART_Commands_GSD8} Data=@{MessageData}
${Result} SendMessage &{Message}
Comments:
UART04 => It indicates the UART 04
DeviceAddress_01 => It shall be equal to the address of the device: FH_RFCommunication_DeviceAddress
Function_UART => It is the function in the message frame
UART_Commands_GSD8 => It is the command of the function in the message frame
Definition at line 638 of file FH_UART04.c.
References FH_ErrorInfo::error_code, FH_ERROR_OK, FH_ResetErrorInfo(), fh_RFCommunication_Message, FH_UART04_SharedDataBuf_8Bits, and FH_UART04_SharedDataBufLength_8Bits.
| FH_ErrorInfo FH_UART_Init_UART04 | ( | FH_RFCommunication_Message * | fh_RFCommunication_Message | ) |
This function initializes the UART 04
The UART 04 could be any interested UART of the micro-controller on which FH source code is ported
FH user should call the initialization function of the interested UART here.
| fh_RFCommunication_Message | The message frame set by RobotFramework |
==============================================================================
##### RobotFramework Example #####
==============================================================================
@{MessageData} = Create List ${UART04}
&{Message} = Create Dictionary DeviceAddress=${DeviceAddress_01} Function=${Function_UART} Command=${UART_Commands_Init} Data=@{MessageData}
${Result} SendMessage &{Message}
Comments:
UART04 => It indicates the UART 04
DeviceAddress_01 => It shall be equal to the address of the device: FH_RFCommunication_DeviceAddress
Function_UART => It is the function in the message frame
UART_Commands_Init => It is the command of the function in the message frame
Definition at line 137 of file FH_UART04.c.
References FH_ResetErrorInfo(), and fh_RFCommunication_Message.
| FH_ErrorInfo FH_UART_Receive_UART04 | ( | FH_RFCommunication_Message * | fh_RFCommunication_Message, |
| uint8_t * | DataSize, | ||
| uint8_t * | Data ) |
This function retrieves the ISR (Interrupt Service Routine) receive buffer (FH_UART04_ReceiveBuf) of the UART 04
The UART 04 could be any interested UART of the micro-controller on which FH source code is ported
FH user could left the present source code here intact.
| fh_RFCommunication_Message | The message frame set by RobotFramework |
| DataSize | *DataSize will be set to the ISR (Interrupt Service Routine) receive buffer index (FH_UART04_ReceiveBufIndex) of the UART 04 |
| Data | *Data will be set to the ISR (Interrupt Service Routine) receive buffer (FH_UART04_ReceiveBuf) of the UART 04 |
==============================================================================
##### RobotFramework Example #####
==============================================================================
@{MessageData} = Create List ${UART04}
&{Message} = Create Dictionary DeviceAddress=${DeviceAddress_01} Function=${Function_UART} Command=${UART_Commands_Receive} Data=@{MessageData}
${Result} SendMessage &{Message}
Comments:
UART04 => It indicates the UART 04
DeviceAddress_01 => It shall be equal to the address of the device: FH_RFCommunication_DeviceAddress
Function_UART => It is the function in the message frame
UART_Commands_Receive => It is the command of the function in the message frame
Definition at line 267 of file FH_UART04.c.
References FH_ResetErrorInfo(), fh_RFCommunication_Message, FH_UART04_ReceiveBuf, and FH_UART04_ReceiveBufIndex.
| FH_ErrorInfo FH_UART_ReceiveW_UART04 | ( | FH_RFCommunication_Message * | fh_RFCommunication_Message, |
| uint8_t * | DataSize, | ||
| uint8_t * | Data ) |
This function waits to receive the specified number of bytes of data through the ISR (Interrupt Service Routine) receive buffer (FH_UART04_ReceiveBuf) of the UART 04
A maximum timeout is specified too
The UART 04 could be any interested UART of the micro-controller on which FH source code is ported
FH user could left the present source code here intact.
| fh_RFCommunication_Message | The message frame set by RobotFramework |
| DataSize | *DataSize will be set to the ISR (Interrupt Service Routine) receive buffer index (FH_UART04_ReceiveBufIndex) of the UART 04 |
| Data | *Data will be set to the ISR (Interrupt Service Routine) receive buffer (FH_UART04_ReceiveBuf) of the UART 04 |
==============================================================================
##### RobotFramework Example #####
==============================================================================
@{MessageData} = Create List ${UART04} 05 00 00 0B B8
&{Message} = Create Dictionary DeviceAddress=${DeviceAddress_01} Function=${Function_UART} Command=${UART_Commands_ReceiveW} Data=@{MessageData}
${Result} SendMessage &{Message}
Comments:
UART04 => It indicates the UART 04
05 => The expected number of bytes of data to be received through the <b>ISR</b> (Interrupt Service Routine) receive buffer (FH_UART04_ReceiveBuf) of the <b>UART 04</b>
00 00 0B B8 => Example data (0x00000BB8 mili-seconds) as timeout of receiving the expected number of bytes
FH_GlobalTimeCounter which is a global variable is utilized to calculate the timeout
FH_GlobalTimeCounter shall be incremented every <b>1 mili-second</b> in an interested timer <b>ISR</b> (Interrupt Service Routine) by <b>FH</b> user
For this to happen, <b>FH_GlobalTimerCount.h</b> shall be included in the interested timer <b>ISR</b> (Interrupt Service Routine) file
If the expected number of bytes are received, the function does not wait anymore for the remaining time of the timeout
DeviceAddress_01 => It shall be equal to the address of the device: FH_RFCommunication_DeviceAddress
Function_UART => It is the function in the message frame
UART_Commands_ReceiveW => It is the command of the function in the message frame
Definition at line 338 of file FH_UART04.c.
References FH_ConvertUint8ToUint32(), FH_GlobalTimeCounter, FH_ResetErrorInfo(), fh_RFCommunication_Message, FH_UART04_ReceiveBuf, FH_UART04_ReceiveBufIndex, UART_ReceiveW_ExpectedDataLength, and UART_ReceiveW_MaxTimerCount.
| FH_ErrorInfo FH_UART_ResetRB_UART04 | ( | FH_RFCommunication_Message * | fh_RFCommunication_Message | ) |
This function resets the ISR (Interrupt Service Routine) receive buffer index (FH_UART04_ReceiveBufIndex) of the UART 04
The UART 04 could be any interested UART of the micro-controller on which FH source code is ported
FH user could left the present source code here intact.
| fh_RFCommunication_Message | The message frame set by RobotFramework |
==============================================================================
##### RobotFramework Example #####
==============================================================================
@{MessageData} = Create List ${UART04}
&{Message} = Create Dictionary DeviceAddress=${DeviceAddress_01} Function=${Function_UART} Command=${UART_Commands_ResetRB} Data=@{MessageData}
${Result} SendMessage &{Message}
Comments:
UART04 => It indicates the UART 04
DeviceAddress_01 => It shall be equal to the address of the device: FH_RFCommunication_DeviceAddress
Function_UART => It is the function in the message frame
UART_Commands_ResetRB => It is the command of the function in the message frame
Definition at line 405 of file FH_UART04.c.
References FH_ResetErrorInfo(), fh_RFCommunication_Message, and FH_UART04_ReceiveBufIndex.
| FH_ErrorInfo FH_UART_Send_UART04 | ( | FH_RFCommunication_Message * | fh_RFCommunication_Message | ) |
This function sends data through the UART 04
The UART 04 could be any interested UART of the micro-controller on which FH source code is ported
FH user should call the send function of the interested UART here.
| fh_RFCommunication_Message | The message frame set by RobotFramework |
==============================================================================
##### RobotFramework Example #####
==============================================================================
@{MessageData} = Create List ${UART04} 02 B1 FF
&{Message} = Create Dictionary DeviceAddress=${DeviceAddress_01} Function=${Function_UART} Command=${UART_Commands_Send} Data=@{MessageData}
${Result} SendMessage &{Message}
Comments:
UART04 => It indicates the UART 04
02 => Example length of the data to be sent
B1 FF => Example data (0xB1, 0xFF) to be sent (or apart from the data to be sent, it may include some other data like ID, Filter, ... to be processed too, if need be) through the <b>UART 04</b>\n
DeviceAddress_01 => It shall be equal to the address of the device: FH_RFCommunication_DeviceAddress
Function_UART => It is the function in the message frame
UART_Commands_Send => It is the command of the function in the message frame
Definition at line 190 of file FH_UART04.c.
References FH_ResetErrorInfo(), fh_RFCommunication_Message, UART_Send_Data, and UART_Send_DataLength.
| FH_ErrorInfo FH_UART_SSD16_UART04 | ( | FH_RFCommunication_Message * | fh_RFCommunication_Message | ) |
This function sets the shared data buffer (FH_UART04_SharedDataBuf_16Bits) of the UART 04
The UART 04 could be any interested UART of the micro-controller on which FH source code is ported
FH_UART04_SharedDataBuf_16Bits is a shared global 8 bit array which is a data bridge between RobotFramework and FH user code
FH_UART04_SharedDataBuf_16Bits is optional
It could be used by FH user to set some special data like receive filters on ISR (Interrupt Service Routine) of the UART 04 or ...
FH user could left the present source code here intact
| fh_RFCommunication_Message | The message frame set by RobotFramework |
==============================================================================
##### RobotFramework Example #####
==============================================================================
@{MessageData} = Create List ${UART04} 02 AA BB CC DD
&{Message} = Create Dictionary DeviceAddress=${DeviceAddress_01} Function=${Function_UART} Command=${UART_Commands_SSD16} Data=@{MessageData}
${Result} SendMessage &{Message}
Comments:
UART04 => It indicates the UART 04
02 => Example interested length of the 16 bit data to be set
AA BB CC DD => Example data (0xAABB and 0xCCDD) to be set in <b>FH_UART04_SharedDataBuf_16Bits</b>
DeviceAddress_01 => It shall be equal to the address of the device: FH_RFCommunication_DeviceAddress
Function_UART => It is the function in the message frame
UART_Commands_SSD16 => It is the command of the function in the message frame
Definition at line 511 of file FH_UART04.c.
References FH_ErrorInfo::error_code, FH_ConvertUint8ToUint16(), FH_ERROR_Functions, FH_ERROR_OK, FH_ResetErrorInfo(), fh_RFCommunication_Message, FH_UART04_SharedDataBuf_16Bits, FH_UART04_SharedDataBufLength_16Bits, UART_SSD16_SharedData, and UART_SSD16_SharedDataLength.
| FH_ErrorInfo FH_UART_SSD32_UART04 | ( | FH_RFCommunication_Message * | fh_RFCommunication_Message | ) |
This function sets the shared data buffer (FH_UART04_SharedDataBuf_32Bits) of the UART 04
The UART 04 could be any interested UART of the micro-controller on which FH source code is ported
FH_UART04_SharedDataBuf_32Bits is a shared global 8 bit array which is a data bridge between RobotFramework and FH user code
FH_UART04_SharedDataBuf_32Bits is optional
It could be used by FH user to set some special data like receive filters on ISR (Interrupt Service Routine) of the UART 04 or ...
FH user could left the present source code here intact
| fh_RFCommunication_Message | The message frame set by RobotFramework |
==============================================================================
##### RobotFramework Example #####
==============================================================================
@{MessageData} = Create List ${UART04} 02 AA BB CC DD 01 02 03 04
&{Message} = Create Dictionary DeviceAddress=${DeviceAddress_01} Function=${Function_UART} Command=${UART_Commands_SSD32} Data=@{MessageData}
${Result} SendMessage &{Message}
Comments:
UART04 => It indicates the UART 04
02 => Example interested length of the 32 bit data to be set
AA BB CC DD 01 02 03 04 => Example data (0xAABBCCDD and 0x01020304) to be set in <b>FH_UART04_SharedDataBuf_32Bits</b>
DeviceAddress_01 => It shall be equal to the address of the device: FH_RFCommunication_DeviceAddress
Function_UART => It is the function in the message frame
UART_Commands_SSD32 => It is the command of the function in the message frame
Definition at line 573 of file FH_UART04.c.
References FH_ErrorInfo::error_code, FH_ConvertUint8ToUint32(), FH_ERROR_Functions, FH_ERROR_OK, FH_ResetErrorInfo(), fh_RFCommunication_Message, FH_UART04_SharedDataBuf_32Bits, FH_UART04_SharedDataBufLength_32Bits, UART_SSD32_SharedData, and UART_SSD32_SharedDataLength.
| FH_ErrorInfo FH_UART_SSD8_UART04 | ( | FH_RFCommunication_Message * | fh_RFCommunication_Message | ) |
This function sets the shared data buffer (FH_UART04_SharedDataBuf_8Bits) of the UART 04
The UART 04 could be any interested UART of the micro-controller on which FH source code is ported
FH_UART04_SharedDataBuf_8Bits is a shared global 8 bit array which is a data bridge between RobotFramework and FH user code
FH_UART04_SharedDataBuf_8Bits is optional
It could be used by FH user to set some special data like receive filters on ISR (Interrupt Service Routine) of the UART 04 or ...
FH user could left the present source code here intact
| fh_RFCommunication_Message | The message frame set by RobotFramework |
==============================================================================
##### RobotFramework Example #####
==============================================================================
@{MessageData} = Create List ${UART04} 04 AA BB CC DD
&{Message} = Create Dictionary DeviceAddress=${DeviceAddress_01} Function=${Function_UART} Command=${UART_Commands_SSD8} Data=@{MessageData}
${Result} SendMessage &{Message}
Comments:
UART04 => It indicates the UART 04
04 => Example interested length of the 8 bit data to be set
AA BB CC DD => Example data (0xAA, 0xBB, 0xCC, 0xDD) to be set in <b>FH_UART04_SharedDataBuf_8Bits</b>
DeviceAddress_01 => It shall be equal to the address of the device: FH_RFCommunication_DeviceAddress
Function_UART => It is the function in the message frame
UART_Commands_SSD8 => It is the command of the function in the message frame
Definition at line 453 of file FH_UART04.c.
References FH_ErrorInfo::error_code, FH_ERROR_Functions, FH_ERROR_OK, FH_ResetErrorInfo(), fh_RFCommunication_Message, FH_UART04_SharedDataBuf_8Bits, FH_UART04_SharedDataBufLength_8Bits, UART_SSD8_SharedData, and UART_SSD8_SharedDataLength.