|
FreeHIL
|
File Map:
FH_Root, Section FH_Perif, FH_CAN, Cmd (Command), Send, Send_H (Send Health)
Functions in this file, verify the health of the different message frames related to CAN
More...
#include "../../../../../../../FH_Embedded/FH_Root/FH_Perif/FH_CAN/Cmd/Send/Send_H/FH_CAN_Send_H.h"#include "../../../../../../../FH_Embedded/FH_Root/FH_General/FH_GeneralFunctions/FH_GeneralFunctions.h"#include "../../../../../../../FH_Embedded/FH_Setup/FH_DeviceAddress/FH_DeviceAddress.h"Go to the source code of this file.
Functions | |
| FH_ErrorInfo | FH_CAN_Send_H (FH_RFCommunication_Message *fh_RFCommunication_Message) |
| This function verifies the health of FH_CAN_Commands_Send command. | |
File Map:
FH_Root, Section FH_Perif, FH_CAN, Cmd (Command), Send, Send_H (Send Health)
Functions in this file, verify the health of the different message frames related to CAN
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_CAN_Send_H.c.
| FH_ErrorInfo FH_CAN_Send_H | ( | FH_RFCommunication_Message * | fh_RFCommunication_Message | ) |
This function verifies the health of FH_CAN_Commands_Send command.
| fh_RFCommunication_Message | The message frame set by RobotFramework |
==============================================================================
##### RobotFramework Example #####
==============================================================================
@{MessageData} = Create List ${CAN01} 02 B1 FF
&{Message} = Create Dictionary DeviceAddress=${DeviceAddress_01} Function=${Function_CAN} Command=${CAN_Commands_Send} Data=@{MessageData}
${Result} SendMessage &{Message}
Comments:
CAN01 => It indicates the CAN 01
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>CAN 01</b>\n
DeviceAddress_01 => It shall be equal to the address of the device: FH_RFCommunication_DeviceAddress
Function_CAN => It is the function in the message frame
CAN_Commands_Send => It is the command of the function in the message frame
Definition at line 69 of file FH_CAN_Send_H.c.
References CAN_Send_DataLength, CAN_Send_PeripheralNumber, FH_ErrorInfo::error_code, FH_CAN_MaxPeripheralNumber, FH_CAN_MinCommandSize_Send, FH_ERROR_MessageFrame, FH_ERROR_OK, FH_ResetErrorInfo(), and fh_RFCommunication_Message.
Referenced by FH_CAN_ProcessCommand_Send().