Go to the source code of this file.
Data Structures | |
| struct | rdc_output_cfg |
| Rdc output configuration. More... | |
| struct | rdc_input_cfg |
| Rdc input configuration. More... | |
| struct | rdc_acc_cfg |
| Accumulated configuration information. More... | |
Functions | |
RDC Control | |
| 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... | |
| static void | rdc_set_acc_len (RDC_Type *ptr, uint8_t len) |
| Configuration accumulate time, support on the fly change. More... | |
| static void | rdc_acc_enable (RDC_Type *ptr) |
| Enable accumulate calculation function. More... | |
| static void | rdc_acc_disable (RDC_Type *ptr) |
| Disable accumulate calculation function. 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... | |
| static void | rdc_sync_output_trig_adc_cfg (RDC_Type *ptr, rdc_sync_out_src_t sel) |
| Select output synchornize signal. More... | |
| static void | rdc_exc_enable (RDC_Type *ptr) |
| Enable rdc excite signal. More... | |
| static void | rdc_exc_disable (RDC_Type *ptr) |
| Disable rdc excite signal. More... | |
| static void | rdc_output_trig_sw (RDC_Type *ptr) |
| Software triggered excitation signal output. More... | |
| int32_t | rdc_get_i_maxval (RDC_Type *ptr) |
| Get I-phase maximum. More... | |
| static void | rdc_clear_i_maxval (RDC_Type *ptr) |
| Clear Maximum. More... | |
| int32_t | rdc_get_i_minval (RDC_Type *ptr) |
| Get I-phase minimum. More... | |
| static void | rdc_clear_i_minval (RDC_Type *ptr) |
| Clear I-phase minimum. More... | |
| void | rdc_set_acc_sync_delay (RDC_Type *ptr, rdc_input_acc_chn_t chn, uint32_t delay) |
| Set Acc sync delay. More... | |
| static uint32_t | rdc_get_sync_output_delay (RDC_Type *ptr) |
| Delay bettween the delyed trigger and the first pwm pulse in clock cycle. More... | |
| int32_t | rdc_get_q_maxval (RDC_Type *ptr) |
| Get Q-phase maximum. More... | |
| static void | rdc_clear_q_maxval (RDC_Type *ptr) |
| Clear Q-phase maxval. More... | |
| int32_t | rdc_get_q_minval (RDC_Type *ptr) |
| Get Q-phase Minval. More... | |
| static void | rdc_clear_q_minval (RDC_Type *ptr) |
| Clear 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... | |
| static uint32_t | rdc_get_rise_delay_i (RDC_Type *ptr) |
| Get delay in clock cycle between excitation synchrnous signal and rising edge of i_channel data. More... | |
| static uint32_t | rdc_get_fall_delay_i (RDC_Type *ptr) |
| Get delay in clock cycle between excitation synchrnous signal and fall edge of i_channel data. More... | |
| static uint32_t | rdc_get_sample_rise_i (RDC_Type *ptr) |
| Get sample value on rising edge of rectify signal. More... | |
| static uint32_t | rdc_get_sample_fall_i (RDC_Type *ptr) |
| Get sample value on falling edge of rectify signal. More... | |
| static uint32_t | rdc_get_acc_cnt_positive_i (RDC_Type *ptr) |
| Get sample number during the positive of rectify signal. More... | |
| static uint32_t | rdc_get_acc_cnt_negative_i (RDC_Type *ptr) |
| Get sample number during the negtive of rectify signal. More... | |
| static uint32_t | rdc_get_sign_cnt_poitive_i (RDC_Type *ptr) |
| Get Negative sample counter during positive rectify signal. More... | |
| static uint32_t | rdc_get_sign_cnt_negative_i (RDC_Type *ptr) |
| Get Positive sample counter during negative rectify signal. More... | |
| static uint32_t | rdc_get_rise_delay_q (RDC_Type *ptr) |
| Get delay in clock cycle between excitation synchrnous signal and rising edge of q_channel data. More... | |
| static uint32_t | rdc_get_fall_delay_q (RDC_Type *ptr) |
| Get delay in clock cycle between excitation synchrnous signal and falling edge of q_channel data. More... | |
| static uint32_t | rdc_get_sample_rise_q (RDC_Type *ptr) |
| Get q channel sample value on rising edge of rectify signal. More... | |
| static uint32_t | rdc_get_sample_fall_q (RDC_Type *ptr) |
| Get q channel sample value on falling edge of rectify signal. More... | |
| static uint32_t | rdc_get_acc_cnt_positive_q (RDC_Type *ptr) |
| Get q channel sample number during the positive of rectify signal. More... | |
| static uint32_t | rdc_get_acc_cnt_negative_q (RDC_Type *ptr) |
| Get q channel sample number during the negtive of rectify signal. More... | |
| static uint32_t | rdc_get_sign_cnt_poitive_q (RDC_Type *ptr) |
| Get q channel negative sample counter during positive rectify signal. More... | |
| static uint32_t | rdc_get_sign_cnt_negative_q (RDC_Type *ptr) |
| Get q channel sample number during the negtive of rectify signal. More... | |
| static void | rdc_interrupt_config (RDC_Type *ptr, uint32_t status) |
| Enables configured interrupts. More... | |
| static void | rdc_interrupt_reset_config (RDC_Type *ptr, uint32_t status) |
| Clear interrupts configured. More... | |
| static void | rdc_interrupt_enable (RDC_Type *ptr) |
| Enable rdc interrupt. More... | |
| static void | rdc_interrupt_disable (RDC_Type *ptr) |
| Disable rdc interrupt. More... | |
| static void | rdc_interrupt_clear_flag_bits (RDC_Type *ptr, uint32_t mask) |
| Clear interrupt flag bits. More... | |
| static uint32_t | get_interrupt_status (RDC_Type *ptr) |
| Get the interrupt status object. More... | |