MTG driver APIs. More...
Data Structures | |
| struct | mtg_result |
| define the struct of mtg lock values More... | |
| struct | mtg_event_param |
| define the struct of the event setup parameter More... | |
| struct | mtg_tra_limit_param |
| struct | mtg_hardware_force_one_way_mode |
| define the struct of the hardware force one way mode More... | |
| struct | mtg_filter_param |
| struct | mtg_time_init_param |
| define the struct of the trajectory predictor time initialization More... | |
| struct | mtg_timeout_param |
| define the struct of the trajectory predictor timeout More... | |
| struct | mtg_tra_shift |
| define the struct of the trajectory shift struct More... | |
| struct | mtg_tra_cmd_cfg |
| define the struct of the trajectory predictor command More... | |
Typedefs | |
| typedef struct mtg_result | mtg_lock_value_t |
| define the struct of mtg lock values More... | |
| typedef enum mtg_evnet_object_postion | mtg_evnet_object_postion_t |
| define the enum of the postion of the observed object More... | |
| typedef enum mtg_event_object | mtg_event_object_t |
| define the enum of the observed object More... | |
| typedef enum mtg_event_mode | mtg_event_mode_t |
| define the enum of the event detection mode More... | |
| typedef enum mtg_event_dir | mtg_event_dir_t |
| define the enum of the event detection direction More... | |
| typedef enum mtg_event_dir_mode | mtg_event_dir_mode_t |
| define the enum of the event detection direction calculation mode More... | |
| typedef enum mtg_event_over_mode_cmp | mtg_event_over_mode_cmp_t |
| define the enum of the event detection over protect mode More... | |
| typedef enum mtg_event_trig_num | mtg_event_trig_num_t |
| define the enum of the event trigger number More... | |
| typedef struct mtg_event_param | mtg_event_param_t |
| define the struct of the event setup parameter More... | |
| typedef struct mtg_tra_limit_param | mtg_tra_limit_param_t |
| typedef enum mtg_software_force_one_way_mode | mtg_software_force_one_way_mode_t |
| define the enum of the software force one way mode More... | |
| typedef enum vel_one_way_mode | vel_one_way_mode_t |
| define the enum of the hardware force one way mode More... | |
| typedef struct mtg_hardware_force_one_way_mode | mtg_hardware_force_one_way_mode_t |
| define the struct of the hardware force one way mode More... | |
| typedef enum mtg_filter_rev_init_mode | mtg_filter_rev_init_mode_t |
| define the enum of the filter initialization mode More... | |
| typedef enum mtg_filter_rev_judge_mode | mtg_filter_rev_judge_mode_t |
| define the enum of the filter judge mode It affects the judgment conditions for changes in the number of revolution More... | |
| typedef enum mtg_filter_ff_mode | mtg_filter_ff_mode_t |
| define the enum of the filter ff mode More... | |
| typedef struct mtg_filter_param | mtg_filter_param_t |
| typedef enum mtg_time_input_source | mtg_time_input_source_t |
| define the enum of the trajectory predictor time input source More... | |
| typedef struct mtg_time_init_param | mtg_time_init_param_t |
| define the struct of the trajectory predictor time initialization More... | |
| typedef struct mtg_timeout_param | mtg_timeout_param_t |
| define the struct of the trajectory predictor timeout More... | |
| typedef enum mtg_link_cfg | mtg_link_cfg_t |
| define the enum of the trajectory predictor link event link the trigger source and the cmd object, it describes the trigger source More... | |
| typedef struct mtg_tra_shift | mtg_tra_shift_t |
| define the struct of the trajectory shift struct More... | |
| typedef struct mtg_tra_cmd_cfg | mtg_tra_cmd_cfg_t |
| define the struct of the trajectory predictor command More... | |
| typedef enum mtg_irq_enable | mtg_irq_enable_t |
| typedef struct mtg_result | mtg_lock_value_t |
| define the struct of mtg lock values More... | |
| typedef enum mtg_evnet_object_postion | mtg_evnet_object_postion_t |
| define the enum of the postion of the observed object More... | |
| typedef enum mtg_event_object | mtg_event_object_t |
| define the enum of the observed object More... | |
| typedef enum mtg_event_mode | mtg_event_mode_t |
| define the enum of the event detection mode More... | |
| typedef enum mtg_event_dir | mtg_event_dir_t |
| define the enum of the event detection direction More... | |
| typedef enum mtg_event_dir_mode | mtg_event_dir_mode_t |
| define the enum of the event detection direction calculation mode More... | |
| typedef enum mtg_event_over_mode_cmp | mtg_event_over_mode_cmp_t |
| define the enum of the event detection over protect mode More... | |
| typedef enum mtg_event_trig_num | mtg_event_trig_num_t |
| define the enum of the event trigger number More... | |
| typedef struct mtg_event_param | mtg_event_param_t |
| define the struct of the event setup parameter More... | |
| typedef struct mtg_tra_limit_param | mtg_tra_limit_param_t |
| typedef enum mtg_software_force_one_way_mode | mtg_software_force_one_way_mode_t |
| define the enum of the software force one way mode More... | |
| typedef enum vel_one_way_mode | vel_one_way_mode_t |
| define the enum of the hardware force one way mode More... | |
| typedef struct mtg_hardware_force_one_way_mode | mtg_hardware_force_one_way_mode_t |
| define the struct of the hardware force one way mode More... | |
| typedef enum mtg_filter_ff_mode | mtg_filter_ff_mode_t |
| define the enum of the filter ff mode More... | |
| typedef enum mtg_filter_first_load_mode | mtg_filter_first_load_mode_t |
| define the enum of the filter first load mode More... | |
| typedef enum mtg_filter_err_bypass_mode | mtg_filter_err_bypass_mode_t |
| define the enum of the filter first load mode More... | |
| typedef struct mtg_filter_param | mtg_filter_param_t |
| typedef enum mtg_time_input_source | mtg_time_input_source_t |
| define the enum of the trajectory predictor time input source More... | |
| typedef struct mtg_time_init_param | mtg_time_init_param_t |
| define the struct of the trajectory predictor time initialization More... | |
| typedef struct mtg_timeout_param | mtg_timeout_param_t |
| define the struct of the trajectory predictor timeout More... | |
| typedef enum mtg_link_cfg | mtg_link_cfg_t |
| define the enum of the trajectory predictor link event link the trigger source and the cmd object, it describes the trigger source More... | |
| typedef struct mtg_tra_shift | mtg_tra_shift_t |
| define the struct of the trajectory shift struct More... | |
| typedef struct mtg_tra_cmd_cfg | mtg_tra_cmd_cfg_t |
| define the struct of the trajectory predictor command More... | |
Functions | |
| static uint32_t | mtg_get_tra_control_status (MTG_Type *base, uint8_t tra_index) |
| MTG get trajectory predictor control register value. More... | |
| static uint32_t | mtg_get_tra_cmd_control_status (MTG_Type *base, uint8_t tra_index, uint8_t cmd_index) |
| MTG get trajectory predictor commond control register value. More... | |
| static void | mtg_trig_tra_lock (MTG_Type *base, uint8_t tra_index) |
| MTG trigger trajectory predictor lock current values. More... | |
| static void | mtg_clear_tra_lock (MTG_Type *base, uint8_t tra_index) |
| MTG clear trajectory predictor lock status. More... | |
| static int32_t | mtg_get_tra_rev_lock_value (MTG_Type *base, uint8_t tra_index) |
| MTG get trajectory predictor revolution lock value. More... | |
| static uint32_t | mtg_get_tra_pos_lock_value (MTG_Type *base, uint8_t tra_index) |
| MTG get trajectory predictor postion lock value. More... | |
| static int32_t | mtg_get_tra_vel_lock_value (MTG_Type *base, uint8_t tra_index) |
| MTG get trajectory predictor velocity lock value. More... | |
| static int32_t | mtg_get_tra_acc_lock_value (MTG_Type *base, uint8_t tra_index) |
| MTG get trajectory predictor acceleration lock value. More... | |
| static void | mtg_filter_set_err_bypass_limit (MTG_Type *base, uint32_t limit) |
| MTG setup filter error bypass limit. More... | |
| static void | mtg_filter_set_bypass_switch_filter_limit (MTG_Type *base, uint32_t limit) |
| MTG setup hardware switch from bypass status to filter status's limit When the difference between input and filter's pos result is smaller than the limit, the filter will use the filter's result inside of the input. More... | |
| static void | mtg_filter_enable_bypass (MTG_Type *base) |
| MTG enable filter error bypass When difference between input and filter's pos result is bigger than the limit, the filter output will be bypass and input will be output to the filter's port. More... | |
| static void | mtg_filter_disable_bypass (MTG_Type *base) |
| MTG disable filter error bypass When difference between input and filter's pos result is bigger than the limit, the filter output will be bypass and input will be output to the filter's port. More... | |
| static void | mtg_filter_enable_reset_init (MTG_Type *base) |
| MTG reset filter enable error reset. More... | |
| static void | mtg_filter_disable_reset_init (MTG_Type *base) |
| MTG reset filter disable error reset. More... | |
| static void | mtg_filter_switch_filter_result (MTG_Type *base) |
| MTG enable hardware switch from bypass status to filter status's limit When the difference between input and filter's pos result is smaller than the limit, the filter will use the filter's result inside of the input. The switch result can be defined by reading the switch status register. More... | |
| static void | mtg_filter_stop_auto_switch_filter_result (MTG_Type *base) |
| MTG disable hardware switch from bypass status to filter status's limit When the difference between input and filter's pos result is smaller than the limit, the filter will use the filter's result inside of the input. The switch result can be defined by reading the switch status register. More... | |
| static bool | mtg_get_err_bypass_status (MTG_Type *base) |
| MTG setup hardware switch from bypass status to filter status's limit When the difference between input and filter's pos result is smaller than the limit, the filter will use the filter's result inside of the input. More... | |
| static void | mtg_set_time0_adjust_value (MTG_Type *base, uint32_t value) |
| MTG set time0 adjust value. More... | |
| static void | mtg_set_time1_adjust_value (MTG_Type *base, uint32_t value) |
| MTG set time1 adjust value. More... | |
| static void | mtg_tra_set_shift (MTG_Type *base, uint8_t index, uint8_t jer_shift, uint8_t acc_shift, uint8_t vel_shift) |
| MTG set time shift value. More... | |
| static void | mtg_set_global_reset (MTG_Type *base) |
| MTG global reset. More... | |
| static void | mtg_stop_global_reset (MTG_Type *base) |
| MTG stop global reset. More... | |
| void | mtg_get_tra_lock_result (MTG_Type *base, uint8_t tra_index, mtg_lock_value_t *para) |
| MTG predictor get lock result. More... | |
| hpm_stat_t | mtg_setup_event (MTG_Type *base, uint8_t event_index, mtg_event_param_t *param) |
| MTG setup event params. More... | |
| hpm_stat_t | mtg_setup_tra_limit (MTG_Type *base, uint8_t tra_index, mtg_tra_limit_param_t *param) |
| MTG setup trajectory limit params. More... | |
| void | mtg_setup_tra_software_pos_one_way_mode (MTG_Type *base, uint8_t tra_index, mtg_software_force_one_way_mode_t param) |
| MTG setup trajectory software one_way mode. More... | |
| void | mtg_setup_tra_hardware_pos_one_way_mode (MTG_Type *base, uint8_t tra_index, mtg_hardware_force_one_way_mode_t *param) |
| MTG setup trajectory hardware one_way mode. More... | |
| void | mtg_disable_tra_pos_one_way_mode (MTG_Type *base, uint8_t tra_index) |
| MTG disable trajectory postion one_way mode. More... | |
| void | mtg_setup_tra_vel_one_way (MTG_Type *base, uint8_t tra_index, vel_one_way_mode_t mode, bool enable) |
| MTG setup trajectory velocity one_way mode. More... | |
| void | mtg_filter_get_default_filter_stage_param (mtg_filter_param_t *param) |
| MTG setup filter. More... | |
| void | mtg_setup_time (MTG_Type *base, mtg_time_init_param_t *param) |
| MTG setup time compensation module. More... | |
| void | mtg_setup_filter (MTG_Type *base, mtg_filter_param_t *param) |
| MTG setup filter. More... | |
| void | mtg_setup_timeout (MTG_Type *base, mtg_timeout_param_t *param) |
| MTG setup timeout. More... | |
| void | mtg_setup_link_cfg (MTG_Type *base, uint8_t tra_index, mtg_link_cfg_t link_cfg, mtg_tra_cmd_cfg_t *cmd_cfg) |
| MTG link trigger source and trajectory command. More... | |
| void | mtg_soft_event_trigger (MTG_Type *base) |
| MTG software trigger trajectory command. More... | |
| void | mtg_get_default_tra_shift (mtg_tra_shift_t *cfg) |
| Get default trajectory shift. More... | |
| static bool | mtg_get_irq_status (MTG_Type *ptr, uint8_t idx) |
| Get the event irq status. More... | |
| static void | mtg_clear_irq_status (MTG_Type *ptr, uint8_t idx) |
| Clear the event irq status. More... | |
| int32_t | mtg_calc_vel_preset (MTG_Type *base, clock_name_t clock, uint8_t tra_index, float speed) |
| calculate the vel preset More... | |
| int32_t | mtg_calc_acc_preset (MTG_Type *base, clock_name_t clock, uint8_t tra_index, float acc) |
| calculate the acc preset More... | |
| int32_t | mtg_calc_jer_preset (MTG_Type *base, clock_name_t clock, uint8_t tra_index, float jer) |
| MTG link trigger source and trajectory command. More... | |
| static uint32_t | mtg_get_tra_control_status (MTGV2_Type *base, uint8_t tra_index) |
| MTG get trajectory predictor control register value. More... | |
| static uint32_t | mtg_get_tra_cmd_control_status (MTGV2_Type *base, uint8_t tra_index, uint8_t cmd_index) |
| MTG get trajectory predictor commond control register value. More... | |
| static void | mtg_trig_tra_lock (MTGV2_Type *base, uint8_t tra_index) |
| MTG trigger trajectory predictor lock current values. More... | |
| static void | mtg_clear_tra_lock (MTGV2_Type *base, uint8_t tra_index) |
| MTG clear trajectory predictor lock status. More... | |
| static int32_t | mtg_get_tra_rev_lock_value (MTGV2_Type *base, uint8_t tra_index) |
| MTG get trajectory predictor revolution lock value. More... | |
| static uint32_t | mtg_get_tra_pos_lock_value (MTGV2_Type *base, uint8_t tra_index) |
| MTG get trajectory predictor postion lock value. More... | |
| static int32_t | mtg_get_tra_vel_lock_value (MTGV2_Type *base, uint8_t tra_index) |
| MTG get trajectory predictor velocity lock value. More... | |
| static int32_t | mtg_get_tra_acc_lock_value (MTGV2_Type *base, uint8_t tra_index) |
| MTG get trajectory predictor acceleration lock value. More... | |
| static void | mtg_filter_enable_bypass (MTGV2_Type *base) |
| MTG enable filter error bypass When difference between input and filter's pos result is bigger than the limit, the filter output will be bypass and input will be output to the filter's port. More... | |
| static void | mtg_filter_disable_bypass (MTGV2_Type *base) |
| MTG disable filter error bypass When difference between input and filter's pos result is bigger than the limit, the filter output will be bypass and input will be output to the filter's port. More... | |
| static void | mtg_filter_switch_filter_result (MTGV2_Type *base) |
| MTG enable hardware switch from bypass status to filter status's limit When the difference between input and filter's pos result is smaller than the limit, the filter will use the filter's result inside of the input. The switch result can be defined by reading the switch status register. More... | |
| static void | mtg_filter_stop_auto_switch_filter_result (MTGV2_Type *base) |
| MTG disable hardware switch from bypass status to filter status's limit When the difference between input and filter's pos result is smaller than the limit, the filter will use the filter's result inside of the input. The switch result can be defined by reading the switch status register. More... | |
| static bool | mtg_get_err_bypass_status (MTGV2_Type *base) |
| MTG setup hardware switch from bypass status to filter status's limit When the difference between input and filter's pos result is smaller than the limit, the filter will use the filter's result inside of the input. More... | |
| static void | mtg_set_time0_adjust_value (MTGV2_Type *base, uint32_t value) |
| MTG set time0 adjust value. More... | |
| static void | mtg_set_time1_adjust_value (MTGV2_Type *base, uint32_t value) |
| MTG set time1 adjust value. More... | |
| static void | mtg_tra_set_shift (MTGV2_Type *base, uint8_t index, uint8_t jer_shift, uint8_t acc_shift, uint8_t vel_shift) |
| MTG set time shift value. More... | |
| static void | mtg_set_global_reset (MTGV2_Type *base) |
| MTG global reset. More... | |
| static void | mtg_stop_global_reset (MTGV2_Type *base) |
| MTG stop global reset. More... | |
| void | mtg_get_tra_lock_result (MTGV2_Type *base, uint8_t tra_index, mtg_lock_value_t *para) |
| MTG predictor get lock result. More... | |
| hpm_stat_t | mtg_setup_event (MTGV2_Type *base, uint8_t event_index, mtg_event_param_t *param) |
| MTG setup event params. More... | |
| hpm_stat_t | mtg_setup_tra_limit (MTGV2_Type *base, uint8_t tra_index, mtg_tra_limit_param_t *param) |
| MTG setup trajectory limit params. More... | |
| void | mtg_setup_tra_software_pos_one_way_mode (MTGV2_Type *base, uint8_t tra_index, mtg_software_force_one_way_mode_t param) |
| MTG setup trajectory software one_way mode. More... | |
| void | mtg_setup_tra_hardware_pos_one_way_mode (MTGV2_Type *base, uint8_t tra_index, mtg_hardware_force_one_way_mode_t *param) |
| MTG setup trajectory hardware one_way mode. More... | |
| void | mtg_disable_tra_pos_one_way_mode (MTGV2_Type *base, uint8_t tra_index) |
| MTG disable trajectory postion one_way mode. More... | |
| void | mtg_setup_tra_vel_one_way (MTGV2_Type *base, uint8_t tra_index, vel_one_way_mode_t mode, bool enable) |
| MTG setup trajectory velocity one_way mode. More... | |
| void | mtg_setup_time (MTGV2_Type *base, mtg_time_init_param_t *param) |
| MTG setup time compensation module. More... | |
| void | mtg_setup_filter (MTGV2_Type *base, mtg_filter_param_t *param) |
| MTG setup filter. More... | |
| void | mtg_setup_timeout (MTGV2_Type *base, mtg_timeout_param_t *param) |
| MTG setup timeout. More... | |
| void | mtg_setup_link_cfg (MTGV2_Type *base, uint8_t tra_index, mtg_link_cfg_t link_cfg, mtg_tra_cmd_cfg_t *cmd_cfg) |
| MTG link trigger source and trajectory command. More... | |
| void | mtg_soft_event_trigger (MTGV2_Type *base) |
| MTG software trigger trajectory command. More... | |
| static uint32_t | mtg_get_irq_status (MTGV2_Type *ptr) |
| Get the event irq status. More... | |
| static void | mtg_enable_irq (MTGV2_Type *ptr, mtg_irq_enable_t irq) |
| Enable irq. More... | |
| static void | mtg_clear_irq_status (MTGV2_Type *ptr, uint32_t irq) |
| Clear the event irq status. More... | |
| int32_t | mtg_calc_vel_preset (MTGV2_Type *base, clock_name_t clock, uint8_t tra_index, float speed) |
| calculate the vel preset More... | |
| int32_t | mtg_calc_acc_preset (MTGV2_Type *base, clock_name_t clock, uint8_t tra_index, float acc) |
| calculate the acc preset More... | |
| int32_t | mtg_calc_jer_preset (MTGV2_Type *base, clock_name_t clock, uint8_t tra_index, float jer) |
| MTG link trigger source and trajectory command. More... | |
MTG driver APIs.
| typedef enum mtg_event_dir_mode mtg_event_dir_mode_t |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the event detection direction calculation mode
| typedef enum mtg_event_dir_mode mtg_event_dir_mode_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the event detection direction calculation mode
| typedef enum mtg_event_dir mtg_event_dir_t |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the event detection direction
| typedef enum mtg_event_dir mtg_event_dir_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the event detection direction
| typedef enum mtg_event_mode mtg_event_mode_t |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the event detection mode
| typedef enum mtg_event_mode mtg_event_mode_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the event detection mode
| typedef enum mtg_event_object mtg_event_object_t |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the observed object
| typedef enum mtg_event_object mtg_event_object_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the observed object
| typedef enum mtg_event_over_mode_cmp mtg_event_over_mode_cmp_t |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the event detection over protect mode
| typedef enum mtg_event_over_mode_cmp mtg_event_over_mode_cmp_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the event detection over protect mode
| typedef struct mtg_event_param mtg_event_param_t |
#include <drivers/inc/hpm_mtg_drv.h>
define the struct of the event setup parameter
| typedef struct mtg_event_param mtg_event_param_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the struct of the event setup parameter
| typedef enum mtg_event_trig_num mtg_event_trig_num_t |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the event trigger number
| typedef enum mtg_event_trig_num mtg_event_trig_num_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the event trigger number
| typedef enum mtg_evnet_object_postion mtg_evnet_object_postion_t |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the postion of the observed object
| typedef enum mtg_evnet_object_postion mtg_evnet_object_postion_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the postion of the observed object
| typedef enum mtg_filter_err_bypass_mode mtg_filter_err_bypass_mode_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the filter first load mode
| typedef enum mtg_filter_ff_mode mtg_filter_ff_mode_t |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the filter ff mode
| typedef enum mtg_filter_ff_mode mtg_filter_ff_mode_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the filter ff mode
| typedef enum mtg_filter_first_load_mode mtg_filter_first_load_mode_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the filter first load mode
| typedef struct mtg_filter_param mtg_filter_param_t |
#include <drivers/inc/hpm_mtg_drv.h>
| typedef struct mtg_filter_param mtg_filter_param_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
| typedef enum mtg_filter_rev_init_mode mtg_filter_rev_init_mode_t |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the filter initialization mode
| typedef enum mtg_filter_rev_judge_mode mtg_filter_rev_judge_mode_t |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the filter judge mode It affects the judgment conditions for changes in the number of revolution
| typedef struct mtg_hardware_force_one_way_mode mtg_hardware_force_one_way_mode_t |
#include <drivers/inc/hpm_mtg_drv.h>
define the struct of the hardware force one way mode
| typedef struct mtg_hardware_force_one_way_mode mtg_hardware_force_one_way_mode_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the struct of the hardware force one way mode
| typedef enum mtg_irq_enable mtg_irq_enable_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
| typedef enum mtg_link_cfg mtg_link_cfg_t |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the trajectory predictor link event link the trigger source and the cmd object, it describes the trigger source
| typedef enum mtg_link_cfg mtg_link_cfg_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the trajectory predictor link event link the trigger source and the cmd object, it describes the trigger source
| typedef struct mtg_result mtg_lock_value_t |
#include <drivers/inc/hpm_mtg_drv.h>
define the struct of mtg lock values
| typedef struct mtg_result mtg_lock_value_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the struct of mtg lock values
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the software force one way mode
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the software force one way mode
| typedef struct mtg_time_init_param mtg_time_init_param_t |
#include <drivers/inc/hpm_mtg_drv.h>
define the struct of the trajectory predictor time initialization
| typedef struct mtg_time_init_param mtg_time_init_param_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the struct of the trajectory predictor time initialization
| typedef enum mtg_time_input_source mtg_time_input_source_t |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the trajectory predictor time input source
| typedef enum mtg_time_input_source mtg_time_input_source_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the trajectory predictor time input source
| typedef struct mtg_timeout_param mtg_timeout_param_t |
#include <drivers/inc/hpm_mtg_drv.h>
define the struct of the trajectory predictor timeout
| typedef struct mtg_timeout_param mtg_timeout_param_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the struct of the trajectory predictor timeout
| typedef struct mtg_tra_cmd_cfg mtg_tra_cmd_cfg_t |
#include <drivers/inc/hpm_mtg_drv.h>
define the struct of the trajectory predictor command
| typedef struct mtg_tra_cmd_cfg mtg_tra_cmd_cfg_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the struct of the trajectory predictor command
| typedef struct mtg_tra_limit_param mtg_tra_limit_param_t |
#include <drivers/inc/hpm_mtg_drv.h>
| typedef struct mtg_tra_limit_param mtg_tra_limit_param_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
| typedef struct mtg_tra_shift mtg_tra_shift_t |
#include <drivers/inc/hpm_mtg_drv.h>
define the struct of the trajectory shift struct
| typedef struct mtg_tra_shift mtg_tra_shift_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the struct of the trajectory shift struct
| typedef enum vel_one_way_mode vel_one_way_mode_t |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the hardware force one way mode
| typedef enum vel_one_way_mode vel_one_way_mode_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the hardware force one way mode
| enum mtg_event_dir |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the event detection direction
| Enumerator | |
|---|---|
| event_dir_negative | |
| event_dir_positive | |
| event_dir_both | |
| event_dir_negative | |
| event_dir_positive | |
| event_dir_both | |
| enum mtg_event_dir |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the event detection direction
| Enumerator | |
|---|---|
| event_dir_negative | |
| event_dir_positive | |
| event_dir_both | |
| event_dir_negative | |
| event_dir_positive | |
| event_dir_both | |
| enum mtg_event_dir_mode |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the event detection direction calculation mode
| Enumerator | |
|---|---|
| event_dir_mode_dy | |
| event_dir_mode_y1_y0 | |
| event_dir_mode_dy | |
| event_dir_mode_y1_y0 | |
| enum mtg_event_dir_mode |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the event detection direction calculation mode
| Enumerator | |
|---|---|
| event_dir_mode_dy | |
| event_dir_mode_y1_y0 | |
| event_dir_mode_dy | |
| event_dir_mode_y1_y0 | |
| enum mtg_event_mode |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the event detection mode
| Enumerator | |
|---|---|
| event_mode_across | |
| event_mode_hold | |
| event_mode_over_protect | |
| event_mode_time_match | |
| event_mode_across | |
| event_mode_hold | |
| event_mode_over_protect | |
| event_mode_time_match | |
| enum mtg_event_mode |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the event detection mode
| Enumerator | |
|---|---|
| event_mode_across | |
| event_mode_hold | |
| event_mode_over_protect | |
| event_mode_time_match | |
| event_mode_across | |
| event_mode_hold | |
| event_mode_over_protect | |
| event_mode_time_match | |
| enum mtg_event_object |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the observed object
| Enumerator | |
|---|---|
| event_object_rev_pos | |
| event_object_vel | |
| event_object_acc | |
| event_object_pos | |
| event_object_rev_pos | |
| event_object_vel | |
| event_object_acc | |
| event_object_pos | |
| enum mtg_event_object |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the observed object
| Enumerator | |
|---|---|
| event_object_rev_pos | |
| event_object_vel | |
| event_object_acc | |
| event_object_pos | |
| event_object_rev_pos | |
| event_object_vel | |
| event_object_acc | |
| event_object_pos | |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the event detection over protect mode
| Enumerator | |
|---|---|
| event_over_cmp_mode_smaller | |
| event_over_cmp_mode_bigger | |
| event_over_cmp_mode_smaller | |
| event_over_cmp_mode_bigger | |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the event detection over protect mode
| Enumerator | |
|---|---|
| event_over_cmp_mode_smaller | |
| event_over_cmp_mode_bigger | |
| event_over_cmp_mode_smaller | |
| event_over_cmp_mode_bigger | |
| enum mtg_event_trig_num |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the event trigger number
| Enumerator | |
|---|---|
| event_trig_once | |
| event_trig_repeat | |
| event_trig_once | |
| event_trig_repeat | |
| enum mtg_event_trig_num |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the event trigger number
| Enumerator | |
|---|---|
| event_trig_once | |
| event_trig_repeat | |
| event_trig_once | |
| event_trig_repeat | |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the postion of the observed object
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the postion of the observed object
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the filter first load mode
| Enumerator | |
|---|---|
| mtg_filter_err_bypass_mode_hw | |
| mtg_filter_err_bypass_mode_sw | |
| enum mtg_filter_ff_mode |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the filter ff mode
| Enumerator | |
|---|---|
| mtg_filter_ff_mode_from_register | |
| mtg_filter_ff_mode_from_input | |
| mtg_filter_ff_mode_from_register | |
| mtg_filter_ff_mode_from_input | |
| enum mtg_filter_ff_mode |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the filter ff mode
| Enumerator | |
|---|---|
| mtg_filter_ff_mode_from_register | |
| mtg_filter_ff_mode_from_input | |
| mtg_filter_ff_mode_from_register | |
| mtg_filter_ff_mode_from_input | |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the filter first load mode
| Enumerator | |
|---|---|
| mtg_filter_first_load_mode_without_acc | |
| mtg_filter_first_load_mode_include_acc | |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the filter initialization mode
| Enumerator | |
|---|---|
| rev_init_mode_from_first_input_value | |
| rev_init_mode_from_register | |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the filter judge mode It affects the judgment conditions for changes in the number of revolution
| Enumerator | |
|---|---|
| mtg_rev_judge_mode_new_sub_old | |
| mtg_rev_judge_mode_encoder_lines | |
| enum mtg_irq_enable |
#include <drivers/inc/hpm_mtgv2_drv.h>
| enum mtg_link_cfg |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the trajectory predictor link event link the trigger source and the cmd object, it describes the trigger source
| enum mtg_link_cfg |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the trajectory predictor link event link the trigger source and the cmd object, it describes the trigger source
| enum mtg_link_cmd_mode_t |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the trajectory predictor command mode
| Enumerator | |
|---|---|
| cmd_mode_new_value | |
| cmd_mode_old_delta | |
| cmd_mode_new_value | |
| cmd_mode_old_delta | |
| enum mtg_link_cmd_mode_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the trajectory predictor command mode
| Enumerator | |
|---|---|
| cmd_mode_new_value | |
| cmd_mode_old_delta | |
| cmd_mode_new_value | |
| cmd_mode_old_delta | |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the software force one way mode
| Enumerator | |
|---|---|
| sw_force_negative | |
| sw_force_positive | |
| sw_force_negative | |
| sw_force_positive | |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the software force one way mode
| Enumerator | |
|---|---|
| sw_force_negative | |
| sw_force_positive | |
| sw_force_negative | |
| sw_force_positive | |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the trajectory predictor time input source
| Enumerator | |
|---|---|
| mtg_time_input_from_filter | |
| mtg_time_input_from_input | |
| mtg_time_input_from_filter | |
| mtg_time_input_from_input | |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the trajectory predictor time input source
| Enumerator | |
|---|---|
| mtg_time_input_from_filter | |
| mtg_time_input_from_input | |
| mtg_time_input_from_filter | |
| mtg_time_input_from_input | |
| enum mtg_tra_cmd_object_t |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the trajectory predictor command object
| Enumerator | |
|---|---|
| cmd_object_rev | |
| cmd_object_pos | |
| cmd_object_vel | |
| cmd_object_acc | |
| cmd_object_jer | |
| cmd_object_rev | |
| cmd_object_pos | |
| cmd_object_vel | |
| cmd_object_acc | |
| cmd_object_jer | |
| enum mtg_tra_cmd_object_t |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the trajectory predictor command object
| Enumerator | |
|---|---|
| cmd_object_rev | |
| cmd_object_pos | |
| cmd_object_vel | |
| cmd_object_acc | |
| cmd_object_jer | |
| cmd_object_rev | |
| cmd_object_pos | |
| cmd_object_vel | |
| cmd_object_acc | |
| cmd_object_jer | |
| enum vel_one_way_mode |
#include <drivers/inc/hpm_mtg_drv.h>
define the enum of the hardware force one way mode
| Enumerator | |
|---|---|
| bigger_or_eq_zero | |
| smaller_or_eq_zero | |
| bigger_or_eq_zero | |
| smaller_or_eq_zero | |
| enum vel_one_way_mode |
#include <drivers/inc/hpm_mtgv2_drv.h>
define the enum of the hardware force one way mode
| Enumerator | |
|---|---|
| bigger_or_eq_zero | |
| smaller_or_eq_zero | |
| bigger_or_eq_zero | |
| smaller_or_eq_zero | |
| int32_t mtg_calc_acc_preset | ( | MTG_Type * | base, |
| clock_name_t | clock, | ||
| uint8_t | tra_index, | ||
| float | acc | ||
| ) |
#include <drivers/inc/hpm_mtg_drv.h>
calculate the acc preset
| [in] | base | MTG base address |
| [in] | clock | MTG clock name |
| [in] | tra_index | - trajectory index |
| [in] | acc | - acc in r/s2 |
| int32_t mtg_calc_acc_preset | ( | MTGV2_Type * | base, |
| clock_name_t | clock, | ||
| uint8_t | tra_index, | ||
| float | acc | ||
| ) |
#include <drivers/inc/hpm_mtgv2_drv.h>
calculate the acc preset
| [in] | base | MTG base address |
| [in] | clock | MTG clock name |
| [in] | tra_index | - trajectory index |
| [in] | acc | - acc in r/s2 |
| int32_t mtg_calc_jer_preset | ( | MTG_Type * | base, |
| clock_name_t | clock, | ||
| uint8_t | tra_index, | ||
| float | jer | ||
| ) |
#include <drivers/inc/hpm_mtg_drv.h>
MTG link trigger source and trajectory command.
| [in] | base | MTG base address |
| [in] | clock | MTG clock name |
| [in] | tra_index | - trajectory index |
| [in] | jer | - jer in r/s3 |
| int32_t mtg_calc_jer_preset | ( | MTGV2_Type * | base, |
| clock_name_t | clock, | ||
| uint8_t | tra_index, | ||
| float | jer | ||
| ) |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG link trigger source and trajectory command.
| [in] | base | MTG base address |
| [in] | clock | MTG clock name |
| [in] | tra_index | - trajectory index |
| [in] | jer | - jer in r/s3 |
| int32_t mtg_calc_vel_preset | ( | MTG_Type * | base, |
| clock_name_t | clock, | ||
| uint8_t | tra_index, | ||
| float | speed | ||
| ) |
#include <drivers/inc/hpm_mtg_drv.h>
calculate the vel preset
| [in] | base | MTG base address |
| [in] | clock | MTG clock name |
| [in] | tra_index | - trajectory index |
| [in] | speed | - speed in r/s |
| int32_t mtg_calc_vel_preset | ( | MTGV2_Type * | base, |
| clock_name_t | clock, | ||
| uint8_t | tra_index, | ||
| float | speed | ||
| ) |
#include <drivers/inc/hpm_mtgv2_drv.h>
calculate the vel preset
| [in] | base | MTG base address |
| [in] | clock | MTG clock name |
| [in] | tra_index | - trajectory index |
| [in] | speed | - speed in r/s |
|
inlinestatic |
#include <drivers/inc/hpm_mtg_drv.h>
Clear the event irq status.
| [in] | ptr | the mtg base |
| [in] | idx | the event index |
|
inlinestatic |
#include <drivers/inc/hpm_mtgv2_drv.h>
Clear the event irq status.
| [in] | ptr | the mtg base |
| [in] | irq | the irq index |
|
inlinestatic |
#include <drivers/inc/hpm_mtg_drv.h>
MTG clear trajectory predictor lock status.
| [in] | base | - MTG base address |
| [in] | tra_index | - trajectory predictor index |
|
inlinestatic |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG clear trajectory predictor lock status.
| [in] | base | - MTG base address |
| [in] | tra_index | - trajectory predictor index |
| void mtg_disable_tra_pos_one_way_mode | ( | MTG_Type * | base, |
| uint8_t | tra_index | ||
| ) |
#include <drivers/inc/hpm_mtg_drv.h>
MTG disable trajectory postion one_way mode.
| [in] | base | MTG base address |
| [in] | tra_index | - trajectory index |
| void mtg_disable_tra_pos_one_way_mode | ( | MTGV2_Type * | base, |
| uint8_t | tra_index | ||
| ) |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG disable trajectory postion one_way mode.
| [in] | base | MTG base address |
| [in] | tra_index | - trajectory index |
|
inlinestatic |
#include <drivers/inc/hpm_mtgv2_drv.h>
Enable irq.
| [in] | ptr | the mtg base |
| [in] | irq | the irq mask |
|
inlinestatic |
#include <drivers/inc/hpm_mtg_drv.h>
MTG disable filter error bypass When difference between input and filter's pos result is bigger than the limit, the filter output will be bypass and input will be output to the filter's port.
| [in] | base | MTG base address |
| [in] | limit | - bypass limit |
|
inlinestatic |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG disable filter error bypass When difference between input and filter's pos result is bigger than the limit, the filter output will be bypass and input will be output to the filter's port.
| [in] | base | MTG base address |
| [in] | limit | - bypass limit |
|
inlinestatic |
#include <drivers/inc/hpm_mtg_drv.h>
MTG reset filter disable error reset.
| [in] | base | MTG base address |
|
inlinestatic |
#include <drivers/inc/hpm_mtg_drv.h>
MTG enable filter error bypass When difference between input and filter's pos result is bigger than the limit, the filter output will be bypass and input will be output to the filter's port.
| [in] | base | MTG base address |
| [in] | limit | - bypass limit |
|
inlinestatic |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG enable filter error bypass When difference between input and filter's pos result is bigger than the limit, the filter output will be bypass and input will be output to the filter's port.
| [in] | base | MTG base address |
| [in] | limit | - bypass limit |
|
inlinestatic |
#include <drivers/inc/hpm_mtg_drv.h>
MTG reset filter enable error reset.
| [in] | base | MTG base address |
| void mtg_filter_get_default_filter_stage_param | ( | mtg_filter_param_t * | param | ) |
#include <drivers/inc/hpm_mtg_drv.h>
MTG setup filter.
| [in] | base | MTG base address |
| [in] | param | - filter params |
|
inlinestatic |
#include <drivers/inc/hpm_mtg_drv.h>
MTG setup hardware switch from bypass status to filter status's limit When the difference between input and filter's pos result is smaller than the limit, the filter will use the filter's result inside of the input.
| [in] | base | MTG base address |
| [in] | param | - filter params |
|
inlinestatic |
#include <drivers/inc/hpm_mtg_drv.h>
MTG setup filter error bypass limit.
| [in] | base | MTG base address |
| [in] | limit | - bypass limit |
|
inlinestatic |
#include <drivers/inc/hpm_mtg_drv.h>
MTG disable hardware switch from bypass status to filter status's limit When the difference between input and filter's pos result is smaller than the limit, the filter will use the filter's result inside of the input. The switch result can be defined by reading the switch status register.
| [in] | base | MTG base address |
| [in] | param | - filter params |
|
inlinestatic |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG disable hardware switch from bypass status to filter status's limit When the difference between input and filter's pos result is smaller than the limit, the filter will use the filter's result inside of the input. The switch result can be defined by reading the switch status register.
| [in] | base | MTG base address |
| [in] | param | - filter params |
|
inlinestatic |
#include <drivers/inc/hpm_mtg_drv.h>
MTG enable hardware switch from bypass status to filter status's limit When the difference between input and filter's pos result is smaller than the limit, the filter will use the filter's result inside of the input. The switch result can be defined by reading the switch status register.
| [in] | base | MTG base address |
| [in] | param | - filter params |
|
inlinestatic |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG enable hardware switch from bypass status to filter status's limit When the difference between input and filter's pos result is smaller than the limit, the filter will use the filter's result inside of the input. The switch result can be defined by reading the switch status register.
| [in] | base | MTG base address |
| [in] | param | - filter params |
| void mtg_get_default_tra_shift | ( | mtg_tra_shift_t * | cfg | ) |
#include <drivers/inc/hpm_mtg_drv.h>
Get default trajectory shift.
| [out] | cfg | pointer to the tra shift var |
|
inlinestatic |
#include <drivers/inc/hpm_mtg_drv.h>
MTG setup hardware switch from bypass status to filter status's limit When the difference between input and filter's pos result is smaller than the limit, the filter will use the filter's result inside of the input.
| [in] | base | - MTG base address |
| bypass | status |
|
inlinestatic |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG setup hardware switch from bypass status to filter status's limit When the difference between input and filter's pos result is smaller than the limit, the filter will use the filter's result inside of the input.
| [in] | base | - MTG base address |
| bypass | status |
|
inlinestatic |
#include <drivers/inc/hpm_mtg_drv.h>
Get the event irq status.
| [in] | ptr | the mtg base |
| [in] | idx | the event index |
|
inlinestatic |
#include <drivers/inc/hpm_mtgv2_drv.h>
Get the event irq status.
| [in] | ptr | the mtg base |
| [in] | idx | the event index |
|
inlinestatic |
#include <drivers/inc/hpm_mtg_drv.h>
MTG get trajectory predictor acceleration lock value.
| [in] | base | - MTG base address |
| [in] | tra_index | - trajectory predictor index |
| trajectory | predictor acceleration value |
|
inlinestatic |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG get trajectory predictor acceleration lock value.
| [in] | base | - MTG base address |
| [in] | tra_index | - trajectory predictor index |
| trajectory | predictor acceleration value |
|
inlinestatic |
#include <drivers/inc/hpm_mtg_drv.h>
MTG get trajectory predictor commond control register value.
| [in] | base | - MTG base address |
| [in] | tra_index | - trajectory predictor index |
| [in] | cmd_index | - trajectory predicotr command index |
| control | register value |
|
inlinestatic |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG get trajectory predictor commond control register value.
| [in] | base | - MTG base address |
| [in] | tra_index | - trajectory predictor index |
| [in] | cmd_index | - trajectory predicotr command index |
| control | register value |
|
inlinestatic |
#include <drivers/inc/hpm_mtg_drv.h>
MTG get trajectory predictor control register value.
| [in] | base | - MTG base address |
| [in] | tra_index | - trajectory predictor index |
| control | register value |
|
inlinestatic |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG get trajectory predictor control register value.
| [in] | base | - MTG base address |
| [in] | tra_index | - trajectory predictor index |
| control | register value |
| void mtg_get_tra_lock_result | ( | MTG_Type * | base, |
| uint8_t | tra_index, | ||
| mtg_lock_value_t * | para | ||
| ) |
#include <drivers/inc/hpm_mtg_drv.h>
MTG predictor get lock result.
| [in] | base | MTG base address |
| [in] | tra_index | - trajectory predictor index |
| [out] | para | mtg_lock_value_t |
| void mtg_get_tra_lock_result | ( | MTGV2_Type * | base, |
| uint8_t | tra_index, | ||
| mtg_lock_value_t * | para | ||
| ) |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG predictor get lock result.
| [in] | base | MTG base address |
| [in] | tra_index | - trajectory predictor index |
| [out] | para | mtg_lock_value_t |
|
inlinestatic |
#include <drivers/inc/hpm_mtg_drv.h>
MTG get trajectory predictor postion lock value.
| [in] | base | - MTG base address |
| [in] | tra_index | - trajectory predictor index |
| trajectory | predictor postion value |
|
inlinestatic |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG get trajectory predictor postion lock value.
| [in] | base | - MTG base address |
| [in] | tra_index | - trajectory predictor index |
| trajectory | predictor postion value |
|
inlinestatic |
#include <drivers/inc/hpm_mtg_drv.h>
MTG get trajectory predictor revolution lock value.
| [in] | base | - MTG base address |
| [in] | tra_index | - trajectory predictor index |
| trajectory | predictor revolution value |
|
inlinestatic |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG get trajectory predictor revolution lock value.
| [in] | base | - MTG base address |
| [in] | tra_index | - trajectory predictor index |
| trajectory | predictor revolution value |
|
inlinestatic |
#include <drivers/inc/hpm_mtg_drv.h>
MTG get trajectory predictor velocity lock value.
| [in] | base | - MTG base address |
| [in] | tra_index | - trajectory predictor index |
| trajectory | predictor velocity value |
|
inlinestatic |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG get trajectory predictor velocity lock value.
| [in] | base | - MTG base address |
| [in] | tra_index | - trajectory predictor index |
| trajectory | predictor velocity value |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
#include <drivers/inc/hpm_mtg_drv.h>
MTG set time0 adjust value.
| [in] | base | - MTG base address |
| [in] | value | - adjust value |
|
inlinestatic |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG set time0 adjust value.
| [in] | base | - MTG base address |
| [in] | value | - adjust value |
|
inlinestatic |
#include <drivers/inc/hpm_mtg_drv.h>
MTG set time1 adjust value.
| [in] | base | - MTG base address |
| [in] | value | - adjust value |
|
inlinestatic |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG set time1 adjust value.
| [in] | base | - MTG base address |
| [in] | value | - adjust value |
| hpm_stat_t mtg_setup_event | ( | MTG_Type * | base, |
| uint8_t | event_index, | ||
| mtg_event_param_t * | param | ||
| ) |
#include <drivers/inc/hpm_mtg_drv.h>
MTG setup event params.
| [in] | base | MTG base address |
| [in] | event_index | - event index |
| [in] | param | - event params |
| [out] | setup | status |
| hpm_stat_t mtg_setup_event | ( | MTGV2_Type * | base, |
| uint8_t | event_index, | ||
| mtg_event_param_t * | param | ||
| ) |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG setup event params.
| [in] | base | MTG base address |
| [in] | event_index | - event index |
| [in] | param | - event params |
| [out] | setup | status |
| void mtg_setup_filter | ( | MTG_Type * | base, |
| mtg_filter_param_t * | param | ||
| ) |
#include <drivers/inc/hpm_mtg_drv.h>
MTG setup filter.
| [in] | base | MTG base address |
| [in] | param | - filter params |
| void mtg_setup_filter | ( | MTGV2_Type * | base, |
| mtg_filter_param_t * | param | ||
| ) |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG setup filter.
| [in] | base | MTG base address |
| [in] | param | - filter params |
| void mtg_setup_link_cfg | ( | MTG_Type * | base, |
| uint8_t | tra_index, | ||
| mtg_link_cfg_t | link_cfg, | ||
| mtg_tra_cmd_cfg_t * | cmd_cfg | ||
| ) |
#include <drivers/inc/hpm_mtg_drv.h>
MTG link trigger source and trajectory command.
| [in] | base | MTG base address |
| [in] | tra_index | - trajectory index |
| [in] | link_cfg | - link config |
| [in] | cmd_cfg | - command config |
| void mtg_setup_link_cfg | ( | MTGV2_Type * | base, |
| uint8_t | tra_index, | ||
| mtg_link_cfg_t | link_cfg, | ||
| mtg_tra_cmd_cfg_t * | cmd_cfg | ||
| ) |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG link trigger source and trajectory command.
| [in] | base | MTG base address |
| [in] | tra_index | - trajectory index |
| [in] | link_cfg | - link config |
| [in] | cmd_cfg | - command config |
| void mtg_setup_time | ( | MTG_Type * | base, |
| mtg_time_init_param_t * | param | ||
| ) |
#include <drivers/inc/hpm_mtg_drv.h>
MTG setup time compensation module.
| [in] | base | MTG base address |
| [in] | param | - time compensation params |
| void mtg_setup_time | ( | MTGV2_Type * | base, |
| mtg_time_init_param_t * | param | ||
| ) |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG setup time compensation module.
| [in] | base | MTG base address |
| [in] | param | - time compensation params |
| void mtg_setup_timeout | ( | MTG_Type * | base, |
| mtg_timeout_param_t * | param | ||
| ) |
#include <drivers/inc/hpm_mtg_drv.h>
MTG setup timeout.
| [in] | base | MTG base address |
| [in] | param | - timeout params |
| void mtg_setup_timeout | ( | MTGV2_Type * | base, |
| mtg_timeout_param_t * | param | ||
| ) |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG setup timeout.
| [in] | base | MTG base address |
| [in] | param | - timeout params |
| void mtg_setup_tra_hardware_pos_one_way_mode | ( | MTG_Type * | base, |
| uint8_t | tra_index, | ||
| mtg_hardware_force_one_way_mode_t * | param | ||
| ) |
#include <drivers/inc/hpm_mtg_drv.h>
MTG setup trajectory hardware one_way mode.
| [in] | base | MTG base address |
| [in] | tra_index | - trajectory index |
| [in] | param | - 0:force + , 1:force - |
| [out] | setup | status |
| void mtg_setup_tra_hardware_pos_one_way_mode | ( | MTGV2_Type * | base, |
| uint8_t | tra_index, | ||
| mtg_hardware_force_one_way_mode_t * | param | ||
| ) |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG setup trajectory hardware one_way mode.
| [in] | base | MTG base address |
| [in] | tra_index | - trajectory index |
| [in] | param | - 0:force + , 1:force - |
| [out] | setup | status |
| hpm_stat_t mtg_setup_tra_limit | ( | MTG_Type * | base, |
| uint8_t | tra_index, | ||
| mtg_tra_limit_param_t * | param | ||
| ) |
#include <drivers/inc/hpm_mtg_drv.h>
MTG setup trajectory limit params.
| [in] | base | MTG base address |
| [in] | tra_index | - trajectory index |
| [in] | param | - trajectory limit params |
| [out] | setup | status |
| hpm_stat_t mtg_setup_tra_limit | ( | MTGV2_Type * | base, |
| uint8_t | tra_index, | ||
| mtg_tra_limit_param_t * | param | ||
| ) |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG setup trajectory limit params.
| [in] | base | MTG base address |
| [in] | tra_index | - trajectory index |
| [in] | param | - trajectory limit params |
| [out] | setup | status |
| void mtg_setup_tra_software_pos_one_way_mode | ( | MTG_Type * | base, |
| uint8_t | tra_index, | ||
| mtg_software_force_one_way_mode_t | param | ||
| ) |
#include <drivers/inc/hpm_mtg_drv.h>
MTG setup trajectory software one_way mode.
| [in] | base | MTG base address |
| [in] | tra_index | - trajectory index |
| [in] | param | - 0:force + , 1:force - |
| [out] | setup | status |
| void mtg_setup_tra_software_pos_one_way_mode | ( | MTGV2_Type * | base, |
| uint8_t | tra_index, | ||
| mtg_software_force_one_way_mode_t | param | ||
| ) |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG setup trajectory software one_way mode.
| [in] | base | MTG base address |
| [in] | tra_index | - trajectory index |
| [in] | param | - 0:force + , 1:force - |
| [out] | setup | status |
| void mtg_setup_tra_vel_one_way | ( | MTG_Type * | base, |
| uint8_t | tra_index, | ||
| vel_one_way_mode_t | mode, | ||
| bool | enable | ||
| ) |
#include <drivers/inc/hpm_mtg_drv.h>
MTG setup trajectory velocity one_way mode.
| [in] | base | MTG base address |
| [in] | tra_index | - trajectory index |
| [in] | mode | - 0:bigger_or_eq_zero , 1:smaller_or_eq_zero |
| void mtg_setup_tra_vel_one_way | ( | MTGV2_Type * | base, |
| uint8_t | tra_index, | ||
| vel_one_way_mode_t | mode, | ||
| bool | enable | ||
| ) |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG setup trajectory velocity one_way mode.
| [in] | base | MTG base address |
| [in] | tra_index | - trajectory index |
| [in] | mode | - 0:bigger_or_eq_zero , 1:smaller_or_eq_zero |
| void mtg_soft_event_trigger | ( | MTG_Type * | base | ) |
#include <drivers/inc/hpm_mtg_drv.h>
MTG software trigger trajectory command.
| [in] | base | MTG base address |
| void mtg_soft_event_trigger | ( | MTGV2_Type * | base | ) |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG software trigger trajectory command.
| [in] | base | MTG base address |
|
inlinestatic |
#include <drivers/inc/hpm_mtg_drv.h>
MTG stop global reset.
|
inlinestatic |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG stop global reset.
|
inlinestatic |
#include <drivers/inc/hpm_mtg_drv.h>
MTG set time shift value.
| [in] | base | - MTG base address |
| [in] | index | - tra index |
| [in] | jer_shift | - jerk shift |
| [in] | acc_shift | - acceleration shift |
| [in] | vel_shift | - velocity shift |
|
inlinestatic |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG set time shift value.
| [in] | base | - MTG base address |
| [in] | index | - tra index |
| [in] | jer_shift | - jerk shift |
| [in] | acc_shift | - acceleration shift |
| [in] | vel_shift | - velocity shift |
|
inlinestatic |
#include <drivers/inc/hpm_mtg_drv.h>
MTG trigger trajectory predictor lock current values.
| [in] | base | - MTG base address |
| [in] | tra_index | - trajectory predictor index |
|
inlinestatic |
#include <drivers/inc/hpm_mtgv2_drv.h>
MTG trigger trajectory predictor lock current values.
| [in] | base | - MTG base address |
| [in] | tra_index | - trajectory predictor index |