Loading...
Searching...
No Matches
furi_hal_pwm.h File Reference

PWM contol HAL. More...

#include <stdint.h>
#include <stdbool.h>

Go to the source code of this file.

Enumerations

enum  FuriHalPwmOutputId { FuriHalPwmOutputIdTim1PA7 , FuriHalPwmOutputIdLptim2PA4 }
 

Functions

void furi_hal_pwm_start (FuriHalPwmOutputId channel, uint32_t freq, uint8_t duty)
 Enable PWM channel and set parameters.
 
void furi_hal_pwm_stop (FuriHalPwmOutputId channel)
 Disable PWM channel.
 
void furi_hal_pwm_set_params (FuriHalPwmOutputId channel, uint32_t freq, uint8_t duty)
 Set PWM channel parameters.
 
bool furi_hal_pwm_is_running (FuriHalPwmOutputId channel)
 Is PWM channel running?
 

Detailed Description

PWM contol HAL.

Function Documentation

◆ furi_hal_pwm_is_running()

bool furi_hal_pwm_is_running ( FuriHalPwmOutputId channel)

Is PWM channel running?

Parameters
[in]channelPWM channel (FuriHalPwmOutputId)
Returns
bool - true if running

◆ furi_hal_pwm_set_params()

void furi_hal_pwm_set_params ( FuriHalPwmOutputId channel,
uint32_t freq,
uint8_t duty )

Set PWM channel parameters.

Parameters
[in]channelPWM channel (FuriHalPwmOutputId)
[in]freqFrequency in Hz
[in]dutyDuty cycle value in %

◆ furi_hal_pwm_start()

void furi_hal_pwm_start ( FuriHalPwmOutputId channel,
uint32_t freq,
uint8_t duty )

Enable PWM channel and set parameters.

Parameters
[in]channelPWM channel (FuriHalPwmOutputId)
[in]freqFrequency in Hz
[in]dutyDuty cycle value in %

◆ furi_hal_pwm_stop()

void furi_hal_pwm_stop ( FuriHalPwmOutputId channel)

Disable PWM channel.

Parameters
[in]channelPWM channel (FuriHalPwmOutputId)