FreeHIL
Loading...
Searching...
No Matches
FH_CAN_Configs.h File Reference

File Map:
FH_Root, Section FH_Perif, FH_CAN, FH_CAN_Configs
In this file, different configurations of FH_CAN could be set More...

Go to the source code of this file.

Macros

#define FH_CAN01
#define FH_CAN02
#define FH_CAN03
#define FH_CAN04
#define FH_CAN05
#define FH_CAN06
#define FH_CAN07
#define FH_CAN08
#define FH_CAN_MinCommandSize_Init   1
#define FH_CAN_MinCommandSize_Send   3
#define FH_CAN_MinCommandSize_Receive   1
#define FH_CAN_MinCommandSize_ReceiveW   6
#define FH_CAN_MinCommandSize_ResetRB   1
#define FH_CAN_MinCommandSize_SSD8   3
#define FH_CAN_MinCommandSize_SSD16   4
#define FH_CAN_MinCommandSize_SSD32   6
#define FH_CAN_MinCommandSize_GSD8   1
#define FH_CAN_MinCommandSize_GSD16   1
#define FH_CAN_MinCommandSize_GSD32   1

Typedefs

typedef FH_ErrorInfo(* FH_CAN_Init_FuncPtrModel) (FH_RFCommunication_Message *fh_RFCommunication_Message)
typedef FH_ErrorInfo(* FH_CAN_Send_FuncPtrModel) (FH_RFCommunication_Message *fh_RFCommunication_Message)
typedef FH_ErrorInfo(* FH_CAN_Receive_FuncPtrModel) (FH_RFCommunication_Message *fh_RFCommunication_Message, uint8_t *FH_CAN_DataSize, uint8_t *FH_CAN_Data)
typedef FH_ErrorInfo(* FH_CAN_ReceiveW_FuncPtrModel) (FH_RFCommunication_Message *fh_RFCommunication_Message, uint8_t *FH_CAN_DataSize, uint8_t *FH_CAN_Data)
typedef FH_ErrorInfo(* FH_CAN_ResetRB_FuncPtrModel) (FH_RFCommunication_Message *fh_RFCommunication_Message)
typedef FH_ErrorInfo(* FH_CAN_SSD8_FuncPtrModel) (FH_RFCommunication_Message *fh_RFCommunication_Message)
typedef FH_ErrorInfo(* FH_CAN_SSD16_FuncPtrModel) (FH_RFCommunication_Message *fh_RFCommunication_Message)
typedef FH_ErrorInfo(* FH_CAN_SSD32_FuncPtrModel) (FH_RFCommunication_Message *fh_RFCommunication_Message)
typedef FH_ErrorInfo(* FH_CAN_GSD8_FuncPtrModel) (FH_RFCommunication_Message *fh_RFCommunication_Message, uint8_t *FH_CAN_DataLength, uint8_t *FH_CAN_FH_CAN_Data)
typedef FH_ErrorInfo(* FH_CAN_GSD16_FuncPtrModel) (FH_RFCommunication_Message *fh_RFCommunication_Message, uint8_t *FH_CAN_DataLength, uint8_t *FH_CAN_FH_CAN_Data)
typedef FH_ErrorInfo(* FH_CAN_GSD32_FuncPtrModel) (FH_RFCommunication_Message *fh_RFCommunication_Message, uint8_t *FH_CAN_DataLength, uint8_t *FH_CAN_FH_CAN_Data)

Enumerations

enum  FH_CAN_Commands {
  FH_CAN_Commands_Init = 0 , FH_CAN_Commands_Send = 1 , FH_CAN_Commands_Receive = 2 , FH_CAN_Commands_ReceiveW = 3 ,
  FH_CAN_Commands_ResetRB = 4 , FH_CAN_Commands_SSD8 = 5 , FH_CAN_Commands_SSD16 = 6 , FH_CAN_Commands_SSD32 = 7 ,
  FH_CAN_Commands_GSD8 = 8 , FH_CAN_Commands_GSD16 = 9 , FH_CAN_Commands_GSD32 = 10
}
enum  FH_CAN_Commandelements_Init { CAN_Init_PeripheralNumber = 0 }
enum  FH_CAN_Commandelements_Send { CAN_Send_PeripheralNumber = 0 , CAN_Send_DataLength = 1 , CAN_Send_Data = 2 }
enum  FH_CAN_Commandelements_Receive { CAN_Receive_PeripheralNumber = 0 }
enum  FH_CAN_Commandelements_ReceiveW { CAN_ReceiveW_PeripheralNumber = 0 , CAN_ReceiveW_ExpectedDataLength = 1 , CAN_ReceiveW_MaxTimerCount = 2 }
enum  FH_CAN_Commandelements_ResetRB { CAN_ResetRB_PeripheralNumber = 0 }
enum  FH_CAN_Commandelements_SSD8 { CAN_SSD8_PeripheralNumber = 0 , CAN_SSD8_SharedDataLength = 1 , CAN_SSD8_SharedData = 2 }
enum  FH_CAN_Commandelements_SSD16 { CAN_SSD16_PeripheralNumber = 0 , CAN_SSD16_SharedDataLength = 1 , CAN_SSD16_SharedData = 2 }
enum  FH_CAN_Commandelements_SSD32 { CAN_SSD32_PeripheralNumber = 0 , CAN_SSD32_SharedDataLength = 1 , CAN_SSD32_SharedData = 2 }
enum  FH_CAN_Commandelements_GSD8 { CAN_GSD8_PeripheralNumber = 0 }
enum  FH_CAN_Commandelements_GSD16 { CAN_GSD16_PeripheralNumber = 0 }
enum  FH_CAN_Commandelements_GSD32 { CAN_GSD32_PeripheralNumber = 0 }

Detailed Description

File Map:
FH_Root, Section FH_Perif, FH_CAN, FH_CAN_Configs
In this file, different configurations of FH_CAN could be set

Attention
FH user could left this file intact

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_Configs.h.

Macro Definition Documentation

◆ FH_CAN01

#define FH_CAN01

FH_CAN01 - FH_CAN08 shall be defined here to be utilized in different parts of the FH source code
FH_CAN_MaxPeripheralNumber is the maximum number of the FH_CAN

Definition at line 47 of file FH_CAN_Configs.h.

◆ FH_CAN02

#define FH_CAN02

Definition at line 50 of file FH_CAN_Configs.h.

◆ FH_CAN03

#define FH_CAN03

Definition at line 53 of file FH_CAN_Configs.h.

◆ FH_CAN04

#define FH_CAN04

Definition at line 56 of file FH_CAN_Configs.h.

◆ FH_CAN05

#define FH_CAN05

Definition at line 59 of file FH_CAN_Configs.h.

◆ FH_CAN06

#define FH_CAN06

Definition at line 62 of file FH_CAN_Configs.h.

◆ FH_CAN07

#define FH_CAN07

Definition at line 65 of file FH_CAN_Configs.h.

◆ FH_CAN08

#define FH_CAN08

Definition at line 68 of file FH_CAN_Configs.h.

◆ FH_CAN_MinCommandSize_GSD16

#define FH_CAN_MinCommandSize_GSD16   1

Minimum size of the Data part in the message frame (FH_RFCommunication_Message) for the GSD16 command of CAN Function, are defined here

Definition at line 194 of file FH_CAN_Configs.h.

◆ FH_CAN_MinCommandSize_GSD32

#define FH_CAN_MinCommandSize_GSD32   1

Minimum size of the Data part in the message frame (FH_RFCommunication_Message) for the GSD32 command of CAN Function, are defined here

Definition at line 199 of file FH_CAN_Configs.h.

◆ FH_CAN_MinCommandSize_GSD8

#define FH_CAN_MinCommandSize_GSD8   1

Minimum size of the Data part in the message frame (FH_RFCommunication_Message) for the GSD8 command of CAN Function, are defined here

Definition at line 189 of file FH_CAN_Configs.h.

Referenced by FH_CAN_GSD8_H().

◆ FH_CAN_MinCommandSize_Init

#define FH_CAN_MinCommandSize_Init   1

Minimum size of the Data part in the message frame (FH_RFCommunication_Message) for the Init command of CAN Function, are defined here

Definition at line 149 of file FH_CAN_Configs.h.

Referenced by FH_CAN_Init_H().

◆ FH_CAN_MinCommandSize_Receive

#define FH_CAN_MinCommandSize_Receive   1

Minimum size of the Data part in the message frame (FH_RFCommunication_Message) for the Receive command of CAN Function, are defined here

Definition at line 159 of file FH_CAN_Configs.h.

◆ FH_CAN_MinCommandSize_ReceiveW

#define FH_CAN_MinCommandSize_ReceiveW   6

Minimum size of the Data part in the message frame (FH_RFCommunication_Message) for the ReceiveW command of CAN Function, are defined here

Definition at line 164 of file FH_CAN_Configs.h.

◆ FH_CAN_MinCommandSize_ResetRB

#define FH_CAN_MinCommandSize_ResetRB   1

Minimum size of the Data part in the message frame (FH_RFCommunication_Message) for the ResetRB command of CAN Function, are defined here

Definition at line 169 of file FH_CAN_Configs.h.

◆ FH_CAN_MinCommandSize_Send

#define FH_CAN_MinCommandSize_Send   3

Minimum size of the Data part in the message frame (FH_RFCommunication_Message) for the Send command of CAN Function, are defined here

Definition at line 154 of file FH_CAN_Configs.h.

Referenced by FH_CAN_Send_H().

◆ FH_CAN_MinCommandSize_SSD16

#define FH_CAN_MinCommandSize_SSD16   4

Minimum size of the Data part in the message frame (FH_RFCommunication_Message) for the SSD16 command of CAN Function, are defined here

Definition at line 179 of file FH_CAN_Configs.h.

◆ FH_CAN_MinCommandSize_SSD32

#define FH_CAN_MinCommandSize_SSD32   6

Minimum size of the Data part in the message frame (FH_RFCommunication_Message) for the SSD32 command of CAN Function, are defined here

Definition at line 184 of file FH_CAN_Configs.h.

◆ FH_CAN_MinCommandSize_SSD8

#define FH_CAN_MinCommandSize_SSD8   3

Minimum size of the Data part in the message frame (FH_RFCommunication_Message) for the SSD8 command of CAN Function, are defined here

Definition at line 174 of file FH_CAN_Configs.h.

Referenced by FH_CAN_SSD8_H().

Typedef Documentation

◆ FH_CAN_GSD16_FuncPtrModel

typedef FH_ErrorInfo(* FH_CAN_GSD16_FuncPtrModel) (FH_RFCommunication_Message *fh_RFCommunication_Message, uint8_t *FH_CAN_DataLength, uint8_t *FH_CAN_FH_CAN_Data)

FH_CAN_GSD16_FuncPtrModel Function pointer definition

Definition at line 121 of file FH_CAN_Configs.h.

◆ FH_CAN_GSD32_FuncPtrModel

typedef FH_ErrorInfo(* FH_CAN_GSD32_FuncPtrModel) (FH_RFCommunication_Message *fh_RFCommunication_Message, uint8_t *FH_CAN_DataLength, uint8_t *FH_CAN_FH_CAN_Data)

FH_CAN_GSD32_FuncPtrModel Function pointer definition

Definition at line 126 of file FH_CAN_Configs.h.

◆ FH_CAN_GSD8_FuncPtrModel

typedef FH_ErrorInfo(* FH_CAN_GSD8_FuncPtrModel) (FH_RFCommunication_Message *fh_RFCommunication_Message, uint8_t *FH_CAN_DataLength, uint8_t *FH_CAN_FH_CAN_Data)

FH_CAN_GSD8_FuncPtrModel Function pointer definition

Definition at line 116 of file FH_CAN_Configs.h.

◆ FH_CAN_Init_FuncPtrModel

typedef FH_ErrorInfo(* FH_CAN_Init_FuncPtrModel) (FH_RFCommunication_Message *fh_RFCommunication_Message)

FH_CAN_Init_FuncPtrModel Function pointer definition

Definition at line 76 of file FH_CAN_Configs.h.

◆ FH_CAN_Receive_FuncPtrModel

typedef FH_ErrorInfo(* FH_CAN_Receive_FuncPtrModel) (FH_RFCommunication_Message *fh_RFCommunication_Message, uint8_t *FH_CAN_DataSize, uint8_t *FH_CAN_Data)

FH_CAN_Receive_FuncPtrModel Function pointer definition

Definition at line 86 of file FH_CAN_Configs.h.

◆ FH_CAN_ReceiveW_FuncPtrModel

typedef FH_ErrorInfo(* FH_CAN_ReceiveW_FuncPtrModel) (FH_RFCommunication_Message *fh_RFCommunication_Message, uint8_t *FH_CAN_DataSize, uint8_t *FH_CAN_Data)

FH_CAN_ReceiveW_FuncPtrModel Function pointer definition

Definition at line 91 of file FH_CAN_Configs.h.

◆ FH_CAN_ResetRB_FuncPtrModel

typedef FH_ErrorInfo(* FH_CAN_ResetRB_FuncPtrModel) (FH_RFCommunication_Message *fh_RFCommunication_Message)

FH_CAN_ResetRB_FuncPtrModel Function pointer definition

Definition at line 96 of file FH_CAN_Configs.h.

◆ FH_CAN_Send_FuncPtrModel

typedef FH_ErrorInfo(* FH_CAN_Send_FuncPtrModel) (FH_RFCommunication_Message *fh_RFCommunication_Message)

FH_CAN_Send_FuncPtrModel Function pointer definition

Definition at line 81 of file FH_CAN_Configs.h.

◆ FH_CAN_SSD16_FuncPtrModel

typedef FH_ErrorInfo(* FH_CAN_SSD16_FuncPtrModel) (FH_RFCommunication_Message *fh_RFCommunication_Message)

FH_CAN_SSD16_FuncPtrModel Function pointer definition

Definition at line 106 of file FH_CAN_Configs.h.

◆ FH_CAN_SSD32_FuncPtrModel

typedef FH_ErrorInfo(* FH_CAN_SSD32_FuncPtrModel) (FH_RFCommunication_Message *fh_RFCommunication_Message)

FH_CAN_SSD32_FuncPtrModel Function pointer definition

Definition at line 111 of file FH_CAN_Configs.h.

◆ FH_CAN_SSD8_FuncPtrModel

typedef FH_ErrorInfo(* FH_CAN_SSD8_FuncPtrModel) (FH_RFCommunication_Message *fh_RFCommunication_Message)

FH_CAN_SSD8_FuncPtrModel Function pointer definition

Definition at line 101 of file FH_CAN_Configs.h.

Enumeration Type Documentation

◆ FH_CAN_Commandelements_GSD16

Different elements of the Data part in the message frame (FH_RFCommunication_Message) for the GSD16 command of CAN Function, are defined here

Enumerator
CAN_GSD16_PeripheralNumber 

Definition at line 286 of file FH_CAN_Configs.h.

◆ FH_CAN_Commandelements_GSD32

Different elements of the Data part in the message frame (FH_RFCommunication_Message) for the GSD32 command of CAN Function, are defined here

Enumerator
CAN_GSD32_PeripheralNumber 

Definition at line 294 of file FH_CAN_Configs.h.

◆ FH_CAN_Commandelements_GSD8

Different elements of the Data part in the message frame (FH_RFCommunication_Message) for the GSD8 command of CAN Function, are defined here

Enumerator
CAN_GSD8_PeripheralNumber 

Definition at line 278 of file FH_CAN_Configs.h.

◆ FH_CAN_Commandelements_Init

Different elements of the Data part in the message frame (FH_RFCommunication_Message) for the Init command of CAN Function, are defined here

Enumerator
CAN_Init_PeripheralNumber 

Definition at line 204 of file FH_CAN_Configs.h.

◆ FH_CAN_Commandelements_Receive

Different elements of the Data part in the message frame (FH_RFCommunication_Message) for the Receive command of CAN Function, are defined here

Enumerator
CAN_Receive_PeripheralNumber 

Definition at line 222 of file FH_CAN_Configs.h.

◆ FH_CAN_Commandelements_ReceiveW

Different elements of the Data part in the message frame (FH_RFCommunication_Message) for the ReceiveW command of CAN Function, are defined here

Enumerator
CAN_ReceiveW_PeripheralNumber 
CAN_ReceiveW_ExpectedDataLength 
CAN_ReceiveW_MaxTimerCount 

Definition at line 230 of file FH_CAN_Configs.h.

◆ FH_CAN_Commandelements_ResetRB

Different elements of the Data part in the message frame (FH_RFCommunication_Message) for the ResetRB command of CAN Function, are defined here

Enumerator
CAN_ResetRB_PeripheralNumber 

Definition at line 240 of file FH_CAN_Configs.h.

◆ FH_CAN_Commandelements_Send

Different elements of the Data part in the message frame (FH_RFCommunication_Message) for the Send command of CAN Function, are defined here

Enumerator
CAN_Send_PeripheralNumber 
CAN_Send_DataLength 
CAN_Send_Data 

Definition at line 212 of file FH_CAN_Configs.h.

◆ FH_CAN_Commandelements_SSD16

Different elements of the Data part in the message frame (FH_RFCommunication_Message) for the SSD16 command of CAN Function, are defined here

Enumerator
CAN_SSD16_PeripheralNumber 
CAN_SSD16_SharedDataLength 
CAN_SSD16_SharedData 

Definition at line 258 of file FH_CAN_Configs.h.

◆ FH_CAN_Commandelements_SSD32

Different elements of the Data part in the message frame (FH_RFCommunication_Message) for the SSD32 command of CAN Function, are defined here

Enumerator
CAN_SSD32_PeripheralNumber 
CAN_SSD32_SharedDataLength 
CAN_SSD32_SharedData 

Definition at line 268 of file FH_CAN_Configs.h.

◆ FH_CAN_Commandelements_SSD8

Different elements of the Data part in the message frame (FH_RFCommunication_Message) for the SSD8 command of CAN Function, are defined here

Enumerator
CAN_SSD8_PeripheralNumber 
CAN_SSD8_SharedDataLength 
CAN_SSD8_SharedData 

Definition at line 248 of file FH_CAN_Configs.h.

◆ FH_CAN_Commands

Different commands for CAN Function

Enumerator
FH_CAN_Commands_Init 
FH_CAN_Commands_Send 
FH_CAN_Commands_Receive 
FH_CAN_Commands_ReceiveW 
FH_CAN_Commands_ResetRB 
FH_CAN_Commands_SSD8 
FH_CAN_Commands_SSD16 
FH_CAN_Commands_SSD32 
FH_CAN_Commands_GSD8 
FH_CAN_Commands_GSD16 
FH_CAN_Commands_GSD32 

Definition at line 131 of file FH_CAN_Configs.h.