HPM APP
HPMicro Application solution
hpm_pwm_t Struct Reference

PWM data structure
;PWM 数据结构 More...

#include <mp_common.h>

Data Fields

uint8_t pwm_index
 PWM index number(an abstract MAP sequence number) ;PWM 序号(MAP抽象序号) More...
 
uint8_t pwm_map_index
 PWM MAP index number ;PWM MAP数组序号 More...
 
uint32_t pwm_freq
 PWM frequency ;PWM 频率 More...
 
uint32_t bus_freq
 PWM bus frequncy(internal use) ;PWM 总线频率(内部使用) More...
 
uint32_t reload_count
 PWM reload_count, obtained by 'get default', cannot be changed ;PWM reload_count, get default获得, 不可更改 More...
 
uint32_t duty_count
 PWM duty count, (0..reload_count) ;PWM 占空比, (0..reload_count) More...
 
uint32_t shadow_dutycount
 PWM duty cycle at the moment when the shadow register takes effect, (0..reload_count) ;PWM 影子寄存器生效时刻占空比, (0..reload_count) More...
 
bool fault_enable
 Enable fault protection for the PWM(true-enable; false-disable) ;PWM 故障保护使能(true-使能; false-禁用) More...
 
hpm_pwm_fault_t pwm_fault
 PWM fault protection data structures hpm_pwm_fault_t ;PWM 故障保护数据结构 hpm_pwm_fault_t. More...
 
uint8_t trigger_count
 The sum total of the PWM TRGM ;PWM 互联触发总和 More...
 
uint8_t trigger_enable
 Enable the PWM TRGM(Each bit represents once trigger enable) ;PWM 互联触发使能(每个bit代表一个触发使能) More...
 
uint32_t trigger_dutycount [(8)]
 PWM duty cycle at the moment when the ADC triggered, (0..reload_count) ;PWM 互联触发ADC时刻占空比, (0..reload_count) More...
 
uint8_t adc_count
 The sum of the ADC sampled by the PWM triggered ADC ;PWM 触发ADC采样的ADC总和 More...
 
uint8_t adc_intr_index
 The ADC channel number that enables ADC interrupts after the completion of ADC sampling (regardless of the number of ADC channels sampled, only one interrupt response is required in the end) ;ADC采样结束后使能ADC中断的ADC序号(不论多少个ADC采样, 最后只需一个中断响应即可) More...
 
hpm_adc_tadc_pack
 ADC data structure hpm_adc_t ;ADC 数据结构 hpm_adc_t. More...
 
hpm_mp_adc_over_callback adc_over_callback
 ADC callback after the end of sampling ;ADC采样结束后回调 More...
 
void * adc_handle
 ADC handle(internal use) ;ADC handle(内部使用) More...
 

Detailed Description

PWM data structure
;PWM 数据结构

Field Documentation

◆ adc_count

uint8_t hpm_pwm_t::adc_count

The sum of the ADC sampled by the PWM triggered ADC ;PWM 触发ADC采样的ADC总和

◆ adc_handle

void* hpm_pwm_t::adc_handle

ADC handle(internal use) ;ADC handle(内部使用)

◆ adc_intr_index

uint8_t hpm_pwm_t::adc_intr_index

The ADC channel number that enables ADC interrupts after the completion of ADC sampling (regardless of the number of ADC channels sampled, only one interrupt response is required in the end) ;ADC采样结束后使能ADC中断的ADC序号(不论多少个ADC采样, 最后只需一个中断响应即可)

◆ adc_over_callback

hpm_mp_adc_over_callback hpm_pwm_t::adc_over_callback

ADC callback after the end of sampling ;ADC采样结束后回调

◆ adc_pack

hpm_adc_t* hpm_pwm_t::adc_pack

ADC data structure hpm_adc_t ;ADC 数据结构 hpm_adc_t.

◆ bus_freq

uint32_t hpm_pwm_t::bus_freq

PWM bus frequncy(internal use) ;PWM 总线频率(内部使用)

◆ duty_count

uint32_t hpm_pwm_t::duty_count

PWM duty count, (0..reload_count) ;PWM 占空比, (0..reload_count)

◆ fault_enable

bool hpm_pwm_t::fault_enable

Enable fault protection for the PWM(true-enable; false-disable) ;PWM 故障保护使能(true-使能; false-禁用)

◆ pwm_fault

hpm_pwm_fault_t hpm_pwm_t::pwm_fault

PWM fault protection data structures hpm_pwm_fault_t ;PWM 故障保护数据结构 hpm_pwm_fault_t.

◆ pwm_freq

uint32_t hpm_pwm_t::pwm_freq

PWM frequency ;PWM 频率

◆ pwm_index

uint8_t hpm_pwm_t::pwm_index

PWM index number(an abstract MAP sequence number) ;PWM 序号(MAP抽象序号)

◆ pwm_map_index

uint8_t hpm_pwm_t::pwm_map_index

PWM MAP index number ;PWM MAP数组序号

◆ reload_count

uint32_t hpm_pwm_t::reload_count

PWM reload_count, obtained by 'get default', cannot be changed ;PWM reload_count, get default获得, 不可更改

◆ shadow_dutycount

uint32_t hpm_pwm_t::shadow_dutycount

PWM duty cycle at the moment when the shadow register takes effect, (0..reload_count) ;PWM 影子寄存器生效时刻占空比, (0..reload_count)

◆ trigger_count

uint8_t hpm_pwm_t::trigger_count

The sum total of the PWM TRGM ;PWM 互联触发总和

◆ trigger_dutycount

uint32_t hpm_pwm_t::trigger_dutycount[(8)]

PWM duty cycle at the moment when the ADC triggered, (0..reload_count) ;PWM 互联触发ADC时刻占空比, (0..reload_count)

◆ trigger_enable

uint8_t hpm_pwm_t::trigger_enable

Enable the PWM TRGM(Each bit represents once trigger enable) ;PWM 互联触发使能(每个bit代表一个触发使能)


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