A pair of PWM data structure ;PWM 对数据结构 More...
#include <mp_common.h>
Data Fields | |
| uint8_t | pwm_pair_index |
| A pair of PWM index number(an abstract MAP sequence number) ;PWM 对序号(MAP抽象序号) More... | |
| uint8_t | pwm_map_index |
| A pair of PWM MAP index number ;PWM 对MAP数组序号 More... | |
| uint8_t | pwm_pair_mode |
| A pair of PWM mode mp_pwm_pair_mode ;PWM 对模式 mp_pwm_pair_mode. More... | |
| uint8_t | phase_angle |
| A pair of PWM phase angles(used in phase center aligned mode and edge aligned mode) mp_pwm_pair_phase_angle ;PWM 对相位角度(中心对齐和边沿对齐时用到) mp_pwm_pair_phase_angle. More... | |
| uint32_t | deadzone_start_halfcycle |
| Starting time for a pair of PWM dead zone insertions. The unit is half of the PWM bus frequency ;PWM 对死区插入起始时间,单位为PWM总线的半周期 More... | |
| uint32_t | deadzone_end_halfcycle |
| Ending time for a pair of PWM dead zone insertions. The unit is half of the PWM bus frequency ;PWM 对死区插入结束时间,单位为PWM总线的半周期 More... | |
| uint32_t | pwm_freq |
| a pair of PWM frequncy ;PWM 对频率 More... | |
| uint32_t | bus_freq |
| a pair of PWM bus frequncy(internal use) ;PWM 对总线频率(内部使用) More... | |
| uint32_t | reload_count |
| A pair of PWM reload_count, obtained by 'get default', cannot be changed ;PWM 对reload_count, get default获得, 不可更改 More... | |
| uint32_t | duty_count |
| A pair of 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 a pair of PWM(true-enable; false-disable) ;PWM 对故障保护使能(true-使能; false-禁用) More... | |
| hpm_pwm_fault_t | pwm_fault [2] |
| A pair of PWM fault protection data structures hpm_pwm_fault_t ;PWM 对故障保护数据结构 hpm_pwm_fault_t. More... | |
| uint8_t | trigger_count |
| The sum total of a pair of PWM TRGM ;PWM 对互联触发总和 More... | |
| uint8_t | trigger_enable |
| Enable a pair of 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_t * | adc_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... | |
A pair of PWM data structure ;PWM 对数据结构
| uint8_t hpm_pwm_pair_t::adc_count |
The sum of the ADC sampled by the PWM triggered ADC ;PWM 触发ADC采样的ADC总和
| void* hpm_pwm_pair_t::adc_handle |
ADC handle(internal use) ;ADC handle(内部使用)
| uint8_t hpm_pwm_pair_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采样, 最后只需一个中断响应即可)
| hpm_mp_adc_over_callback hpm_pwm_pair_t::adc_over_callback |
ADC callback after the end of sampling ;ADC采样结束后回调
| uint32_t hpm_pwm_pair_t::bus_freq |
a pair of PWM bus frequncy(internal use) ;PWM 对总线频率(内部使用)
| uint32_t hpm_pwm_pair_t::deadzone_end_halfcycle |
Ending time for a pair of PWM dead zone insertions. The unit is half of the PWM bus frequency ;PWM 对死区插入结束时间,单位为PWM总线的半周期
| uint32_t hpm_pwm_pair_t::deadzone_start_halfcycle |
Starting time for a pair of PWM dead zone insertions. The unit is half of the PWM bus frequency ;PWM 对死区插入起始时间,单位为PWM总线的半周期
| uint32_t hpm_pwm_pair_t::duty_count |
A pair of PWM duty count, (0..reload_count) ;PWM 对占空比, (0..reload_count)
| bool hpm_pwm_pair_t::fault_enable |
Enable fault protection for a pair of PWM(true-enable; false-disable) ;PWM 对故障保护使能(true-使能; false-禁用)
| uint8_t hpm_pwm_pair_t::phase_angle |
A pair of PWM phase angles(used in phase center aligned mode and edge aligned mode) mp_pwm_pair_phase_angle ;PWM 对相位角度(中心对齐和边沿对齐时用到) mp_pwm_pair_phase_angle.
| hpm_pwm_fault_t hpm_pwm_pair_t::pwm_fault[2] |
A pair of PWM fault protection data structures hpm_pwm_fault_t ;PWM 对故障保护数据结构 hpm_pwm_fault_t.
| uint32_t hpm_pwm_pair_t::pwm_freq |
a pair of PWM frequncy ;PWM 对频率
| uint8_t hpm_pwm_pair_t::pwm_map_index |
A pair of PWM MAP index number ;PWM 对MAP数组序号
| uint8_t hpm_pwm_pair_t::pwm_pair_index |
A pair of PWM index number(an abstract MAP sequence number) ;PWM 对序号(MAP抽象序号)
| uint8_t hpm_pwm_pair_t::pwm_pair_mode |
A pair of PWM mode mp_pwm_pair_mode ;PWM 对模式 mp_pwm_pair_mode.
| uint32_t hpm_pwm_pair_t::reload_count |
A pair of PWM reload_count, obtained by 'get default', cannot be changed ;PWM 对reload_count, get default获得, 不可更改
| uint32_t hpm_pwm_pair_t::shadow_dutycount |
PWM duty cycle at the moment when the shadow register takes effect, (0..reload_count) ;PWM 影子寄存器生效时刻占空比, (0..reload_count)
| uint8_t hpm_pwm_pair_t::trigger_count |
The sum total of a pair of PWM TRGM ;PWM 对互联触发总和
| uint32_t hpm_pwm_pair_t::trigger_dutycount[(8)] |
PWM duty cycle at the moment when the ADC triggered, (0..reload_count) ;PWM 互联触发ADC时刻占空比, (0..reload_count)
| uint8_t hpm_pwm_pair_t::trigger_enable |
Enable a pair of PWM TRGM(Each bit represents once trigger enable) ;PWM 对互联触发使能(每个bit代表一个触发使能)