HPM APP
HPMicro Application solution
mp_pwm.h File Reference
#include "mp_common.h"

Go to the source code of this file.

Functions

uint8_t mp_pwm_pair_get_mapindex (uint8_t pair_index)
 Get the PWM MAP index number of a pair of PWM ;获取PWM对 MAP数组序号 More...
 
uint8_t mp_pwm_get_mapindex (uint8_t index)
 Get the PWM MAP index number of the PWM ;获取PWM MAP数组序号 More...
 
uint32_t mp_pwm_pair_get_busfreq (uint8_t pair_index)
 Get the bus frequency of a pair of PWM ;获取PWM对总线频率 More...
 
uint32_t mp_pwm_get_busfreq (uint8_t index)
 Get the bus frequency of the PWM ;获取PWM总线频率 More...
 
uint32_t mp_pwm_pair_get_reload (uint8_t pair_index, uint32_t freq)
 Get the reload_count of a pair of PWM ;获取PWM对重载值reload_count. More...
 
uint32_t mp_pwm_get_reload (uint8_t index, uint32_t freq)
 Get the reload_count of the PWM ;获取PWM重载值reload_count. More...
 
int mp_pwm_pair_config (hpm_pwm_pair_t *pwm_pair_t)
 A pair of PWM init config
;PWM对初始配置 More...
 
int mp_pwm_config (hpm_pwm_t *pwm_t)
 PWM init config ;PWM初始配置 More...
 
int mp_pwm_pair_output_enable (hpm_pwm_pair_t *pwm_pair_t, bool enable)
 Enable a pair of PWM waveform outputs ;PWM对波形输出使能 More...
 
int mp_pwm_output_enable (hpm_pwm_t *pwm_t, bool enable)
 Enable the PWM waveform outputs ;PWM波形输出使能 More...
 
int mp_pwm_enable_counter (hpm_pwm_t *pwm_t, bool enable)
 The PWM counter enables counting ;PWM计数器使能计数 More...
 
int mp_pwm_fault_mux_config (uint8_t type, void *handle)
 PWM TRGM for fault protection ;PWM故障保护互联配置 More...
 
int mp_pwm_trigger_mux_config (uint8_t type, void *handle)
 PWM TRGM (trigger ADC sampling at a specific moment during PWM, etc) ;PWM互联触发配置(PWM某一时刻触发ADC采样等) More...
 
const mp_pwm_trigger_map_tmp_pwm_get_trigger_map (uint8_t type, uint8_t index)
 Get the PWM TRGM for MAP table ;获取PWM互联触发MAP表 More...
 
int mp_pwm_sync_config (hpm_mp_t *mp_t)
 PWM synchronous configuration Note: PWM synchronization only supports different PWM controllers ;PWM同步配置 注意: PWM同步只支持不同的PWM控制器 More...