RDC driver APIs. More...
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... | |
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... | |
RDC driver APIs.
| typedef struct rdc_acc_cfg rdc_acc_cfg_t |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Accumulated configuration information.
| typedef enum rdc_acc_stamp_time rdc_acc_stamp_time_t |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Time stamp selection for accumulation.
| typedef enum rdc_input_acc_chn rdc_input_acc_chn_t |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Rdc input channel.
| typedef struct rdc_input_cfg rdc_input_cfg_t |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Rdc input configuration.
| typedef enum rdc_interrupt_stat rdc_interrupt_stat_t |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Rdc status flags.
| typedef struct rdc_output_cfg rdc_output_cfg_t |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Rdc output configuration.
| typedef enum rdc_output_mode rdc_output_mode_t |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Rdc output mode.
| typedef enum rdc_output_precision rdc_output_precision_t |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Rdc output precision, use n points to form an excitation signal period.
| typedef enum rdc_output_pwm_period rdc_output_pwm_period_t |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Pwm output period in samples.
| typedef enum rdc_output_trig_chn rdc_output_trig_chn_t |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Rdc trigger out channel 0 or channel 1.
| typedef enum rdc_rectify_signal rdc_rectify_signal_t |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Select reference point of rectify signal.
| typedef enum rdc_sync_out_src rdc_sync_out_src_t |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Synchronize output trig adc position.
| enum rdc_acc_stamp_time |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Time stamp selection for accumulation.
| Enumerator | |
|---|---|
| rdc_acc_stamp_end_of_acc | End of accumulation |
| rdc_acc_stamp_start_of_acc | Start of accumulation |
| rdc_acc_stamp_center_of_acc | Center of accumulation |
| enum rdc_input_acc_chn |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Rdc input channel.
| Enumerator | |
|---|---|
| rdc_acc_chn_i | |
| rdc_acc_chn_q | |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
| Enumerator | |
|---|---|
| rdc_value_at_adc | |
| rdc_value_at_iir | |
| enum rdc_interrupt_stat |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Rdc status flags.
| enum rdc_output_mode |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Rdc output mode.
| Enumerator | |
|---|---|
| rdc_output_dac | |
| rdc_output_pwm | |
| enum rdc_output_precision |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Rdc output precision, use n points to form an excitation signal period.
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Pwm output period in samples.
| enum rdc_output_trig_chn |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Rdc trigger out channel 0 or channel 1.
| Enumerator | |
|---|---|
| trigger_out_0 | |
| trigger_out_1 | |
| enum rdc_rectify_signal |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Select reference point of rectify signal.
| Enumerator | |
|---|---|
| rdc_rectify_signal_exc_0_ph | |
| rdc_rectify_signal_exc_90_ph | |
| rdc_rectify_signal_exc_180_ph | |
| rdc_rectify_signal_exc_270_ph | |
| rdc_rectify_signal_external | |
| rdc_rectify_signal_external_invert | |
| enum rdc_sync_out_src |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Synchronize output trig adc position.
| Enumerator | |
|---|---|
| rdc_sync_out_exc_0_ph | |
| rdc_sync_out_exc_90_ph | |
| rdc_sync_out_exc_180_ph | |
| rdc_sync_out_exc_270_ph | |
| rdc_sync_out_max | |
| rdc_sync_out_min | |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Get the interrupt status object.
| ptr | RDC_Type base |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Disable accumulate calculation function.
| ptr | RDC_Type base |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Enable accumulate calculation function.
| ptr | RDC_Type base |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Clear Maximum.
| ptr | RDC_Type base |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Clear I-phase minimum.
| ptr | RDC_Type base |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Clear Q-phase maxval.
| ptr | RDC_Type base |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Clear Q-phase Minval.
| ptr | RDC_Type base |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Disable rdc excite signal.
| ptr | RDC_Type base |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Enable rdc excite signal.
| ptr | RDC_Type base |
| uint32_t rdc_get_acc_avl | ( | RDC_Type * | ptr, |
| rdc_input_acc_chn_t | chn | ||
| ) |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Get the accumulate value.
| ptr | RDC_Type base |
| chn | rdc_input_acc_chn_t |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Get sample number during the negtive of rectify signal.
| ptr | RDC_Type base |
| counter |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Get q channel sample number during the negtive of rectify signal.
| ptr | RDC_Type base |
| number |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Get sample number during the positive of rectify signal.
| ptr | RDC_Type base |
| counter |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Get q channel sample number during the positive of rectify signal.
| ptr | RDC_Type base |
| number |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Get delay in clock cycle between excitation synchrnous signal and fall edge of i_channel data.
| ptr | RDC_Type base |
| clock | cycle |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Get delay in clock cycle between excitation synchrnous signal and falling edge of q_channel data.
| ptr | RDC_Type base |
| cycles |
| int32_t rdc_get_i_maxval | ( | RDC_Type * | ptr | ) |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Get I-phase maximum.
| ptr | RDC_Type base |
| - | other max value
|
| int32_t rdc_get_i_minval | ( | RDC_Type * | ptr | ) |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Get I-phase minimum.
| ptr | RDC_Type base |
| - | other max value
|
| int32_t rdc_get_q_maxval | ( | RDC_Type * | ptr | ) |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Get Q-phase maximum.
| ptr | RDC_Type base |
| - | other max value
|
| int32_t rdc_get_q_minval | ( | RDC_Type * | ptr | ) |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Get Q-phase Minval.
| ptr | RDC_Type base |
| - | other max value
|
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Get delay in clock cycle between excitation synchrnous signal and rising edge of i_channel data.
| ptr | RDC_Type base |
| clock | cycle |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Get delay in clock cycle between excitation synchrnous signal and rising edge of q_channel data.
| ptr | RDC_Type base |
| cycles |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Get sample value on falling edge of rectify signal.
| ptr | RDC_Type base |
| clock | cycle |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Get q channel sample value on falling edge of rectify signal.
| ptr | RDC_Type base |
| cycles |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Get sample value on rising edge of rectify signal.
| ptr | RDC_Type base |
| clock | cycle |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Get q channel sample value on rising edge of rectify signal.
| ptr | RDC_Type base |
| cycles |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Get Positive sample counter during negative rectify signal.
| ptr | RDC_Type base |
| counter |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Get q channel sample number during the negtive of rectify signal.
| ptr | RDC_Type base |
| counter |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Get Negative sample counter during positive rectify signal.
| ptr | RDC_Type base |
| counter |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Get q channel negative sample counter during positive rectify signal.
| ptr | RDC_Type base |
| counter |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Delay bettween the delyed trigger and the first pwm pulse in clock cycle.
| ptr | RDC_Type base |
| delay | tick |
| void rdc_input_config | ( | RDC_Type * | ptr, |
| rdc_input_cfg_t * | cfg | ||
| ) |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Rdc input configuration, configuration of adc signal source and calculation parameters.
| ptr | RDC_Type base |
| cfg | rdc_input_cfg_t |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Clear interrupt flag bits.
| ptr | RDC_Type base |
| mask | rdc_interrupt_stat_t |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Enables configured interrupts.
| ptr | RDC_Type base |
| status | rdc_interrupt_stat_t |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Disable rdc interrupt.
| ptr | RDC_Type base |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Enable rdc interrupt.
| ptr | RDC_Type base |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Clear interrupts configured.
| ptr | RDC_Type base |
| status | rdc_interrupt_stat_t |
| void rdc_output_config | ( | RDC_Type * | ptr, |
| rdc_output_cfg_t * | cfg | ||
| ) |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Rdc output configuration, can be configured pwm output or dac output.
| ptr | RDC_Type base |
| cfg | rdc_output_cfg_t |
| void rdc_output_trig_disable | ( | RDC_Type * | ptr, |
| rdc_output_trig_chn_t | chn | ||
| ) |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Disable rdc output trigger configuration.
| ptr | RDC_Type base |
| chn | rdc_output_trig_chn_t |
| void rdc_output_trig_enable | ( | RDC_Type * | ptr, |
| rdc_output_trig_chn_t | chn | ||
| ) |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Enable output trigger configuration.
| ptr | RDC_Type base |
| chn | rdc_output_trig_chn_t |
| void rdc_output_trig_offset_config | ( | RDC_Type * | ptr, |
| rdc_output_trig_chn_t | chn, | ||
| int32_t | offset | ||
| ) |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Output trigger configuration Lead time for trigger out0 or out1 from center of low level , this is a signed value.
| ptr | RDC_Type base |
| chn | rdc_output_trig_chn_t |
| offset | lead_time |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Software triggered excitation signal output.
| ptr | RDC_Type base |
| void rdc_set_acc_config | ( | RDC_Type * | ptr, |
| rdc_acc_cfg_t * | cfg | ||
| ) |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
RDC set accumulate configuration.
| ptr | RDC_Type base |
| cfg | rdc_acc_cfg_t |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Configuration accumulate time, support on the fly change.
| ptr | RDC_Type base |
| len | accumulate time 0-255 |
| void rdc_set_acc_sync_delay | ( | RDC_Type * | ptr, |
| rdc_input_acc_chn_t | chn, | ||
| uint32_t | delay | ||
| ) |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Set Acc sync delay.
| ptr | RDC_Type base |
| chn | rdc_input_acc_chn_t |
| delay | delay tick |
| void rdc_set_edge_detection_offset | ( | RDC_Type * | ptr, |
| rdc_input_acc_chn_t | chn, | ||
| int32_t | offset | ||
| ) |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
The offset setting for edge detection of the i_channel or q_channel.
| ptr | RDC_Type base |
| chn | rdc_input_acc_chn_t |
| offset | offset value |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_rdc_drv.h>
Select output synchornize signal.
| ptr | RDC_Type base |
| sel | rdc_sync_out_src_t |