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

File Map:
FH_Setup, Section FH_DevicePeripherals
FH user should set the maximum number of peripherals for his/her interested HIL Simulator here
More...

Go to the source code of this file.

Macros

#define FH_DO_MaxPeripheralNumber   64
#define FH_DI_MaxPeripheralNumber   64
#define FH_AO_MaxPeripheralNumber   64
#define FH_AI_MaxPeripheralNumber   64
#define FH_PWMO_MaxPeripheralNumber   64
#define FH_PWMI_MaxPeripheralNumber   64
#define FH_UART_MaxPeripheralNumber   8
#define FH_CAN_MaxPeripheralNumber   8

Detailed Description

File Map:
FH_Setup, Section FH_DevicePeripherals
FH user should set the maximum number of peripherals for his/her interested HIL Simulator here

Note
Regarding the limitations of the interested micro-controller on which FH source code is ported (Memory, Peripherals , ...),
The number of the peripherals could be decreased to the minimum possible values
Attention
There are a total number of 1 attention (Attention 1) (FH user defined data) in this file where FH user shall insert some data
Other parts could be left 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_DevicePeripherals.h.

Macro Definition Documentation

◆ FH_AI_MaxPeripheralNumber

#define FH_AI_MaxPeripheralNumber   64

FH_AI_MaxPeripheralNumber is the maximum number of the AI (Analog Input)
Minimum Possible Value is 0 and Maximum Possible Value is 64

Definition at line 65 of file FH_DevicePeripherals.h.

Referenced by FH_AI_Init_C(), FH_AI_Init_H(), FH_AI_Init_S(), FH_AI_ProcessCommand_GetStatus(), and FH_AI_ProcessCommand_Init().

◆ FH_AO_MaxPeripheralNumber

#define FH_AO_MaxPeripheralNumber   64

FH_AO_MaxPeripheralNumber is the maximum number of the AO (Analog Output)
Minimum Possible Value is 0 and Maximum Possible Value is 64

Definition at line 59 of file FH_DevicePeripherals.h.

Referenced by FH_AO_Init_C(), FH_AO_Init_H(), FH_AO_Init_S(), FH_AO_ProcessCommand_Init(), and FH_AO_ProcessCommand_SetStatus().

◆ FH_CAN_MaxPeripheralNumber

◆ FH_DI_MaxPeripheralNumber

#define FH_DI_MaxPeripheralNumber   64

FH_DI_MaxPeripheralNumber is the maximum number of the DI (Digital Input)
Minimum Possible Value is 0 and Maximum Possible Value is 64

Definition at line 53 of file FH_DevicePeripherals.h.

Referenced by FH_DI_Init_C(), FH_DI_Init_H(), FH_DI_Init_S(), FH_DI_InitMULTI_C(), FH_DI_ProcessCommand_GetStatus(), FH_DI_ProcessCommand_GetStatusMULTI(), FH_DI_ProcessCommand_Init(), and FH_DI_ProcessCommand_InitMULTI().

◆ FH_DO_MaxPeripheralNumber

#define FH_DO_MaxPeripheralNumber   64

FH_DO_MaxPeripheralNumber is the maximum number of the DO (Digital Output)
Minimum Possible Value is 0 and Maximum Possible Value is 64

Definition at line 47 of file FH_DevicePeripherals.h.

Referenced by FH_DO_Init_C(), FH_DO_Init_H(), FH_DO_Init_S(), FH_DO_InitMULTI_C(), FH_DO_ProcessCommand_Init(), FH_DO_ProcessCommand_InitMULTI(), FH_DO_ProcessCommand_SetStatus(), and FH_DO_ProcessCommand_SetStatusMULTI().

◆ FH_PWMI_MaxPeripheralNumber

#define FH_PWMI_MaxPeripheralNumber   64

FH_PWMI_MaxPeripheralNumber is the maximum number of the PWMI (PWM Input)
Minimum Possible Value is 0 and Maximum Possible Value is 64

Definition at line 77 of file FH_DevicePeripherals.h.

Referenced by FH_PWMI_ProcessCommand_GetStatus(), and FH_PWMI_ProcessCommand_Init().

◆ FH_PWMO_MaxPeripheralNumber

#define FH_PWMO_MaxPeripheralNumber   64

FH_PWMO_MaxPeripheralNumber is the maximum number of the PWMO (PWM Output)
Minimum Possible Value is 0 and Maximum Possible Value is 64

Definition at line 71 of file FH_DevicePeripherals.h.

Referenced by FH_PWMO_ProcessCommand_Init(), and FH_PWMO_ProcessCommand_SetStatus().

◆ FH_UART_MaxPeripheralNumber