ChibiOS/HAL  6.1.0
PWMDriver Struct Reference

Structure representing a PWM driver. More...

#include <hal_pwm_lld.h>

Collaboration diagram for PWMDriver:
Collaboration graph

Data Fields

pwmstate_t state
 Driver state. More...
 
const PWMConfigconfig
 Current driver configuration data. More...
 
pwmcnt_t period
 Current PWM period in ticks. More...
 
pwmchnmsk_t enabled
 Mask of the enabled channels. More...
 
pwmchannel_t channels
 Number of channels in this instance. More...
 

Detailed Description

Structure representing a PWM driver.

Definition at line 134 of file hal_pwm_lld.h.

Field Documentation

const PWMConfig* PWMDriver::config
pwmcnt_t PWMDriver::period

Current PWM period in ticks.

Definition at line 146 of file hal_pwm_lld.h.

Referenced by pwmStart().

pwmchnmsk_t PWMDriver::enabled

Mask of the enabled channels.

Definition at line 150 of file hal_pwm_lld.h.

Referenced by pwmDisableChannelNotification(), pwmEnableChannelNotification(), pwmObjectInit(), pwmStart(), and pwmStop().

pwmchannel_t PWMDriver::channels

Number of channels in this instance.

Definition at line 154 of file hal_pwm_lld.h.

Referenced by pwmObjectInit().