HPM APP
HPMicro Application solution
mp_api.c File Reference
#include "mp_adc.h"
#include "mp_pwm.h"
#include "mp_timer.h"
#include "mp_api.h"

Functions

int hpm_mp_api_get_default (hpm_mp_t *mp_t)
 Get the default value of the power data structure ;电源数据结构默认值获取 More...
 
int hpm_mp_pwm_pair_get_default (uint8_t pwm_pair_index, uint32_t freq, hpm_pwm_pair_t *pwm_pair_t)
 Get the default value of a pair of PWM (two PWM channels as a pair) data structure
;获取PWM对(两路PWM成一对)数据结构默认值 More...
 
int hpm_mp_pwm_get_default (uint8_t pwm_index, uint32_t freq, hpm_pwm_t *pwm_t)
 Get the default value of the single PWM data structure ;获取PWM(单路)数据结构默认值 More...
 
int hpm_mp_adc_get_default (uint8_t adc_index, hpm_adc_t *adc_t)
 Get the default value of the ADC data structure ;获取ADC数据结构默认值 More...
 
int hpm_mp_api_init (hpm_mp_t *mp_t)
 Power API initialization ;电源API初始化 More...