pwm_init_t Struct Reference

PWM init Structure definition. More...

#include <gr55xx_hal_pwm.h>

Data Fields

uint32_t mode
 
uint32_t align
 
uint32_t freq
 
uint32_t bperiod
 
uint32_t hperiod
 
pwm_channel_init_t channel_a
 
pwm_channel_init_t channel_b
 
pwm_channel_init_t channel_c
 

Detailed Description

PWM init Structure definition.

Field Documentation

◆ align

uint32_t pwm_init_t::align

Specifies the PWM alignment mode with three channels This parameter can be a value of PWM Pulses Aligned.

◆ bperiod

uint32_t pwm_init_t::bperiod

Specifies the PWM breath period in breath mode. Unit: ms. This parameter must be a number between 0 ~ 0xFFFFFFFF/SystemFreq*1000.

◆ channel_a

pwm_channel_init_t pwm_init_t::channel_a

Specifies the configuration parameters of channel A.

◆ channel_b

pwm_channel_init_t pwm_init_t::channel_b

Specifies the configuration parameters of channel B.

◆ channel_c

pwm_channel_init_t pwm_init_t::channel_c

Specifies the configuration parameters of channel C.

◆ freq

uint32_t pwm_init_t::freq

Specifies the PWM frequency. This parameter must be a number between 0 ~ SystemFreq/2 (max = 32Mhz).

◆ hperiod

uint32_t pwm_init_t::hperiod

Specifies the PWM hold period in breath mode. Unit: ms. This parameter must be a number between 0 ~ 0xFFFFFF/SystemFreq*1000.

◆ mode

uint32_t pwm_init_t::mode

Specifies the PWM output mode state. This parameter can be a value of PWM Mode


The documentation for this struct was generated from the following file: