|
FreeHIL
|
File Map:
FH_Root, Section FH_Perif, FH_CAN, Cmd (Command), Init, Init_C (Init Call)
Functions in this file, Call the related function in FH_Functions, Section FH_CAN according to the first parameter of the Data in the message frame
More...
Go to the source code of this file.
Functions | |
| FH_ErrorInfo | FH_CAN_Init_C (FH_RFCommunication_Message *fh_RFCommunication_Message, FH_CAN_Init_FuncPtrModel *fH_CAN_Init_FuncPtr) |
| This function calls the related function in FH_Functions, Section FH_CAN according to the first parameter of the Data in the message frame. | |
File Map:
FH_Root, Section FH_Perif, FH_CAN, Cmd (Command), Init, Init_C (Init Call)
Functions in this file, Call the related function in FH_Functions, Section FH_CAN according to the first parameter of the Data in the message frame
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_Init_C.h.
| FH_ErrorInfo FH_CAN_Init_C | ( | FH_RFCommunication_Message * | fh_RFCommunication_Message, |
| FH_CAN_Init_FuncPtrModel * | fH_CAN_Init_FuncPtr ) |
This function calls the related function in FH_Functions, Section FH_CAN according to the first parameter of the Data in the message frame.
| fh_RFCommunication_Message | The message frame set by RobotFramework |
| fH_CAN_Init_FuncPtr | The array of function pointers |
==============================================================================
##### RobotFramework Example #####
==============================================================================
@{MessageData} = Create List ${CAN01}
&{Message} = Create Dictionary DeviceAddress=${DeviceAddress_01} Function=${Function_CAN} Command=${CAN_Commands_Init} Data=@{MessageData}
${Result} SendMessage &{Message}
Comments:
CAN01 => It indicates the CAN 01
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_Init => It is the command of the function in the message frame
Definition at line 69 of file FH_CAN_Init_C.c.
References CAN_Init_PeripheralNumber, FH_ErrorInfo::error_code, FH_CAN_MaxPeripheralNumber, FH_ERROR_MessageFrame, FH_ERROR_Root, FH_ResetErrorInfo(), fh_RFCommunication_Message, and NULL_PTR.
Referenced by FH_CAN_ProcessCommand_Init().