ChibiOS 21.11.4
hal_pwm_lld.h File Reference

PLATFORM PWM subsystem low level driver header. More...

Go to the source code of this file.

Data Structures

struct  PWMChannelConfig
 Type of a PWM driver channel configuration structure. More...
struct  PWMConfig
 Type of a PWM driver configuration structure. More...
struct  PWMDriver
 Structure representing a PWM driver. More...

Macros

#define PWM_CHANNELS   4
 Number of PWM channels per PWM driver.
#define pwm_lld_change_period(pwmp, period)
 Changes the period the PWM peripheral.
PLATFORM configuration options
#define PLATFORM_PWM_USE_PWM1   FALSE
 PWMD1 driver enable switch.

Typedefs

typedef uint32_t pwmmode_t
 Type of a PWM mode.
typedef uint8_t pwmchannel_t
 Type of a PWM channel.
typedef uint32_t pwmchnmsk_t
 Type of a channels mask.
typedef uint32_t pwmcnt_t
 Type of a PWM counter.

Functions

void pwm_lld_init (void)
 Low level PWM driver initialization.
void pwm_lld_start (PWMDriver *pwmp)
 Configures and activates the PWM peripheral.
void pwm_lld_stop (PWMDriver *pwmp)
 Deactivates the PWM peripheral.
void pwm_lld_enable_channel (PWMDriver *pwmp, pwmchannel_t channel, pwmcnt_t width)
 Enables a PWM channel.
void pwm_lld_disable_channel (PWMDriver *pwmp, pwmchannel_t channel)
 Disables a PWM channel and its notification.
void pwm_lld_enable_periodic_notification (PWMDriver *pwmp)
 Enables the periodic activation edge notification.
void pwm_lld_disable_periodic_notification (PWMDriver *pwmp)
 Disables the periodic activation edge notification.
void pwm_lld_enable_channel_notification (PWMDriver *pwmp, pwmchannel_t channel)
 Enables a channel de-activation edge notification.
void pwm_lld_disable_channel_notification (PWMDriver *pwmp, pwmchannel_t channel)
 Disables a channel de-activation edge notification.

Detailed Description

PLATFORM PWM subsystem low level driver header.

Definition in file hal_pwm_lld.h.