|
FreeHIL
|
File Map:
FH_Functions, Section FH_PWMO (PWM Output), Peripheral FH_PWMO63 (PWM Output 63)
(The PWMO01 (PWM Output 63) could be any interested PWM Output of the micro-controller on which FH source code is ported)
More...
#include "../../../../FH_Embedded/FH_Root/FH_Perif/FH_PWMO/FH_PWMO_Configs/FH_PWMO_Configs.h"#include "../../../../FH_Embedded/FH_Setup/FH_RFCommunication/FH_RFCommunication_GlobalVariables.h"Go to the source code of this file.
Functions | |
| FH_ErrorInfo | FH_PWMO_Init_PWMO63 (FH_RFCommunication_Message *fh_RFCommunication_Message) |
| This function initializes the PWM Output 63 The PWM Output 63 could be any interested PWM Output of the micro-controller on which FH source code is ported FH user should call the initialization function of the interested PWM Output here. | |
| FH_ErrorInfo | FH_PWMO_SetStatus_PWMO63 (FH_RFCommunication_Message *fh_RFCommunication_Message) |
| This function sets the PWM Output 63 The PWM Output 63 could be any interested PWM Output of the micro-controller on which FH source code is ported FH user should call the set function of the interested PWM Output here. | |
File Map:
FH_Functions, Section FH_PWMO (PWM Output), Peripheral FH_PWMO63 (PWM Output 63)
(The PWMO01 (PWM Output 63) could be any interested PWM 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_PWMO63.h.
| FH_ErrorInfo FH_PWMO_Init_PWMO63 | ( | FH_RFCommunication_Message * | fh_RFCommunication_Message | ) |
This function initializes the PWM Output 63
The PWM Output 63 could be any interested PWM Output of the micro-controller on which FH source code is ported
FH user should call the initialization function of the interested PWM Output here.
| None |
==============================================================================
##### RobotFramework Example #####
==============================================================================
@{MessageData} = Create List ${PWMO63}
&{Message} = Create Dictionary DeviceAddress=${DeviceAddress_01} Function=${Function_PWMO} Command=${PWMO_Commands_Init} Data=@{MessageData}
${Result} SendMessage &{Message}
Comments:
PWMO63 => It indicates the PWM Output 63
DeviceAddress_01 => It shall be equal to the address of the device: FH_RFCommunication_DeviceAddress
Function_PWMO => It is the function in the message frame
PWMO_Commands_Init => It is the command of the function in the message frame
Definition at line 89 of file FH_PWMO63.c.
References FH_ResetErrorInfo(), and fh_RFCommunication_Message.
| FH_ErrorInfo FH_PWMO_SetStatus_PWMO63 | ( | FH_RFCommunication_Message * | fh_RFCommunication_Message | ) |
This function sets the PWM Output 63
The PWM Output 63 could be any interested PWM Output of the micro-controller on which FH source code is ported
FH user should call the set function of the interested PWM Output here.
| fh_RFCommunication_Message | The message frame set by RobotFramework |
==============================================================================
##### RobotFramework Example #####
==============================================================================
@{MessageData} = Create List ${PWMO63} 00 00 00 F0 32
&{Message} = Create Dictionary DeviceAddress=${DeviceAddress_01} Function=${Function_PWMO} Command=${PWMO_Commands_SetStatus} Data=@{MessageData}
${Result} SendMessage &{Message}
Comments:
PWMO63 => It indicates the PWM Output 63
00 00 00 F0 => Example data as PWM frequency (0x000000F0) to be set through the <b>PWM Output 63</b>\n
32 => Example data as PWM duty cycle (0x32 => as 50% duty cycle) to be set through the <b>PWM Output 63</b>\n
DeviceAddress_01 => It shall be equal to the address of the device: FH_RFCommunication_DeviceAddress
Function_PWMO => It is the function in the message frame
PWMO_Commands_SetStatus => It is the command of the function in the message frame
Definition at line 142 of file FH_PWMO63.c.
References FH_ResetErrorInfo(), and fh_RFCommunication_Message.