|
FreeHIL
|
File Map:
FH_Functions, Section FH_AO (Analog Output), Peripheral FH_AO54 (Analog Output 54)
(The AO54 (Analog Output 54) could be any interested Analog Output of the micro-controller on which FH source code is ported)
More...
#include "../../../../FH_Embedded/FH_Functions/FH_AO/FH_AO54/FH_AO54.h"#include "../../../../FH_Embedded/FH_Root/FH_Perif/FH_AO/FH_AO.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_AO_Init_AO54 (FH_RFCommunication_Message *fh_RFCommunication_Message) |
| This function initializes the Analog Output 54 The Analog Output 54 could be any interested Analog Output of the micro-controller on which FH source code is ported FH user should call the initialization function of the interested Analog Output here. | |
| FH_ErrorInfo | FH_AO_SetStatus_AO54 (FH_RFCommunication_Message *fh_RFCommunication_Message) |
| This function sets the Analog Output 54 The Analog Output 54 could be any interested Analog Output of the micro-controller on which FH source code is ported FH user should call the set function of the interested Analog Output here. | |
File Map:
FH_Functions, Section FH_AO (Analog Output), Peripheral FH_AO54 (Analog Output 54)
(The AO54 (Analog Output 54) could be any interested Analog Output 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_AO54.c.
| FH_ErrorInfo FH_AO_Init_AO54 | ( | FH_RFCommunication_Message * | fh_RFCommunication_Message | ) |
This function initializes the Analog Output 54
The Analog Output 54 could be any interested Analog Output of the micro-controller on which FH source code is ported
FH user should call the initialization function of the interested Analog Output here.
| None |
==============================================================================
##### RobotFramework Example #####
==============================================================================
@{MessageData} = Create List ${AO54}
&{Message} = Create Dictionary DeviceAddress=${DeviceAddress_01} Function=${Function_AO} Command=${AO_Commands_Init} Data=@{MessageData}
${Result} SendMessage &{Message}
Comments:
AO54 => It indicates the Analog Output 54
DeviceAddress_01 => It shall be equal to the address of the device: FH_RFCommunication_DeviceAddress
Function_AO => It is the function in the message frame
AO_Commands_Init => It is the command of the function in the message frame
Definition at line 89 of file FH_AO54.c.
References FH_ResetErrorInfo(), and fh_RFCommunication_Message.
Referenced by FH_AO_Init_S().
| FH_ErrorInfo FH_AO_SetStatus_AO54 | ( | FH_RFCommunication_Message * | fh_RFCommunication_Message | ) |
This function sets the Analog Output 54
The Analog Output 54 could be any interested Analog Output of the micro-controller on which FH source code is ported
FH user should call the set function of the interested Analog Output here.
| fh_RFCommunication_Message | The message frame set by RobotFramework |
==============================================================================
##### RobotFramework Example #####
==============================================================================
@{MessageData} = Create List ${AO54} F1 C2 01 08
&{Message} = Create Dictionary DeviceAddress=${DeviceAddress_01} Function=${Function_AO} Command=${AO_Commands_SetStatus} Data=@{MessageData}
${Result} SendMessage &{Message}
Comments:
AO54 => It indicates the Analog Output 54
F1 C2 01 08 => Example data as analog value (0xF1C20108) to be set through the <b>Analog Output 54</b>\n
DeviceAddress_01 => It shall be equal to the address of the device: FH_RFCommunication_DeviceAddress
Function_AO => It is the function in the message frame
AO_Commands_SetStatus => It is the command of the function in the message frame
Definition at line 141 of file FH_AO54.c.
References FH_ResetErrorInfo(), and fh_RFCommunication_Message.