ChibiOS/RT
2.5.1
PWMDriver Struct Reference

Detailed Description

Structure representing a PWM driver.

Definition at line 336 of file pwm_lld.h.

#include <pwm_lld.h>

Collaboration diagram for PWMDriver:

Data Fields

pwmstate_t state
 Driver state.
const PWMConfigconfig
 Current driver configuration data.
pwmcnt_t period
 Current PWM period in ticks.
uint32_t clock
 Timer base clock.
stm32_tim_ttim
 Pointer to the TIMx registers block.

Field Documentation

Current driver configuration data.

Definition at line 344 of file pwm_lld.h.

Referenced by pwm_lld_enable_channel(), pwm_lld_start(), pwmObjectInit(), and pwmStart().

Current PWM period in ticks.

Definition at line 348 of file pwm_lld.h.

Referenced by pwm_lld_start(), and pwmStart().

uint32_t PWMDriver::clock

Timer base clock.

Definition at line 356 of file pwm_lld.h.

Referenced by pwm_lld_start().

Pointer to the TIMx registers block.

Definition at line 360 of file pwm_lld.h.

Referenced by pwm_lld_disable_channel(), pwm_lld_enable_channel(), pwm_lld_init(), pwm_lld_start(), and pwm_lld_stop().