HPM SDK
HPMicro Software Development Kit
hpm_rdc_drv.c File Reference
#include "hpm_common.h"
#include "hpm_rdc_drv.h"

Functions

void rdc_output_config (RDC_Type *ptr, rdc_output_cfg_t *cfg)
 Rdc output configuration, can be configured pwm output or dac output. More...
 
void rdc_input_config (RDC_Type *ptr, rdc_input_cfg_t *cfg)
 Rdc input configuration, configuration of adc signal source and calculation parameters. More...
 
uint32_t rdc_get_acc_avl (RDC_Type *ptr, rdc_input_acc_chn_t chn)
 Get the accumulate value. More...
 
void rdc_output_trig_offset_config (RDC_Type *ptr, rdc_output_trig_chn_t chn, int32_t offset)
 Output trigger configuration Lead time for trigger out0 or out1 from center of low level , this is a signed value. More...
 
void rdc_output_trig_enable (RDC_Type *ptr, rdc_output_trig_chn_t chn)
 Enable output trigger configuration. More...
 
void rdc_output_trig_disable (RDC_Type *ptr, rdc_output_trig_chn_t chn)
 Disable rdc output trigger configuration. More...
 
int32_t rdc_get_i_maxval (RDC_Type *ptr)
 Get I-phase maximum. More...
 
int32_t rdc_get_i_minval (RDC_Type *ptr)
 Get I-phase minimum. More...
 
int32_t rdc_get_q_maxval (RDC_Type *ptr)
 Get Q-phase maximum. More...
 
int32_t rdc_get_q_minval (RDC_Type *ptr)
 Get Q-phase Minval. More...
 
void rdc_set_edge_detection_offset (RDC_Type *ptr, rdc_input_acc_chn_t chn, int32_t offset)
 The offset setting for edge detection of the i_channel or q_channel. More...
 
void rdc_set_acc_config (RDC_Type *ptr, rdc_acc_cfg_t *cfg)
 RDC set accumulate configuration. More...
 
void rdc_set_acc_sync_delay (RDC_Type *ptr, rdc_input_acc_chn_t chn, uint32_t delay)
 Set Acc sync delay. More...