ChibiOS/HAL 9.0.0
PWMConfig Struct Reference

Type of a PWM driver configuration structure. More...

#include <hal_pwm_lld.h>

Collaboration diagram for PWMConfig:
Collaboration graph

Data Fields

uint32_t frequency
 Timer clock in Hz.
pwmcnt_t period
 PWM period in ticks.
pwmcallback_t callback
 Periodic callback pointer.
PWMChannelConfig channels [PWM_CHANNELS]
 Channels configurations.

Detailed Description

Type of a PWM driver configuration structure.

Definition at line 105 of file hal_pwm_lld.h.

Field Documentation

◆ frequency

uint32_t PWMConfig::frequency

Timer clock in Hz.

Note
The low level can use assertions in order to catch invalid frequency specifications.

Definition at line 111 of file hal_pwm_lld.h.

◆ period

pwmcnt_t PWMConfig::period

PWM period in ticks.

Note
The low level can use assertions in order to catch invalid period specifications.

Definition at line 117 of file hal_pwm_lld.h.

Referenced by pwmStart().

◆ callback

pwmcallback_t PWMConfig::callback

Periodic callback pointer.

Note
This callback is invoked on PWM counter reset. If set to NULL then the callback is disabled.

Definition at line 123 of file hal_pwm_lld.h.

Referenced by pwmDisablePeriodicNotification(), and pwmEnablePeriodicNotification().

◆ channels

PWMChannelConfig PWMConfig::channels[PWM_CHANNELS]

Channels configurations.

Definition at line 127 of file hal_pwm_lld.h.

Referenced by pwmDisableChannelNotification(), and pwmEnableChannelNotification().