ChibiOS/HAL  6.1.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. More...
 
pwmcnt_t period
 PWM period in ticks. More...
 
pwmcallback_t callback
 Periodic callback pointer. More...
 
PWMChannelConfig channels [PWM_CHANNELS]
 Channels configurations. More...
 

Detailed Description

Type of a PWM driver configuration structure.

Definition at line 105 of file hal_pwm_lld.h.

Field Documentation

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.

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().

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().

PWMChannelConfig PWMConfig::channels[PWM_CHANNELS]

Channels configurations.

Definition at line 127 of file hal_pwm_lld.h.

Referenced by pwmDisableChannelNotification(), and pwmEnableChannelNotification().