|
FreeHIL
|
File Map:
FH_Functions, Section FH_DI (Digital Input), Peripheral FH_DI22 (Digital Input 22)
(The DI22 (Digital Input 22) could be any interested Digital Input of the micro-controller on which FH source code is ported)
More...
#include "../../../../FH_Embedded/FH_Functions/FH_DI/FH_DI22/FH_DI22.h"#include "../../../../FH_Embedded/FH_Root/FH_Perif/FH_DI/FH_DI.h"#include "../../../../FH_Embedded/FH_Root/FH_General/FH_GlobalTimerCount/FH_GlobalTimerCount.h"#include "../../../../FH_Embedded/FH_Root/FH_General/FH_GeneralFunctions/FH_GeneralFunctions.h"Go to the source code of this file.
Functions | |
| FH_ErrorInfo | FH_DI_Init_DI22 () |
| This function initializes the Digital Input 22 The Digital Input 22 could be any interested Digital Input of the micro-controller on which FH source code is ported FH user should call the initialization function of the interested Digital Input here. | |
| FH_ErrorInfo | FH_DI_GetStatus_DI22 (uint8_t *Data) |
| This function reads the Digital Input 22 The Digital Input 22 could be any interested Digital Input of the micro-controller on which FH source code is ported FH user should call the read function of the interested Digital Input here. | |
File Map:
FH_Functions, Section FH_DI (Digital Input), Peripheral FH_DI22 (Digital Input 22)
(The DI22 (Digital Input 22) could be any interested Digital Input 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_DI22.c.
| FH_ErrorInfo FH_DI_GetStatus_DI22 | ( | uint8_t * | Data | ) |
This function reads the Digital Input 22
The Digital Input 22 could be any interested Digital Input of the micro-controller on which FH source code is ported
FH user should call the read function of the interested Digital Input here.
| Data | If the read data of the Digital Input 22 is 1, *Data will be set to 1 If the read data of the Digital Input 22 is 0, *Data will be set to 0 |
==============================================================================
##### RobotFramework Example #####
==============================================================================
@{MessageData} = Create List ${DI22}
&{Message} = Create Dictionary DeviceAddress=${DeviceAddress_01} Function=${Function_DI} Command=${DI_Commands_GetStatus} Data=@{MessageData}
${Result} SendMessage &{Message}
Comments:
DI22 => It indicates the Digital Input 22
DeviceAddress_01 => It shall be equal to the address of the device: FH_RFCommunication_DeviceAddress
Function_DI => It is the function in the message frame
DI_Commands_GetStatus => It is the command of the function in the message frame
Definition at line 141 of file FH_DI22.c.
References FH_ResetErrorInfo().
| FH_ErrorInfo FH_DI_Init_DI22 | ( | ) |
This function initializes the Digital Input 22
The Digital Input 22 could be any interested Digital Input of the micro-controller on which FH source code is ported
FH user should call the initialization function of the interested Digital Input here.
| None |
==============================================================================
##### RobotFramework Example #####
==============================================================================
@{MessageData} = Create List ${DI22}
&{Message} = Create Dictionary DeviceAddress=${DeviceAddress_01} Function=${Function_DI} Command=${DI_Commands_Init} Data=@{MessageData}
${Result} SendMessage &{Message}
Comments:
DI22 => It indicates the Digital Input 22
DeviceAddress_01 => It shall be equal to the address of the device: FH_RFCommunication_DeviceAddress
Function_DI => It is the function in the message frame
DI_Commands_Init => It is the command of the function in the message frame
Definition at line 89 of file FH_DI22.c.
References FH_ResetErrorInfo().
Referenced by FH_DI_Init_S().