define the struct of the event setup parameter More...
#include <hpm_mtg_drv.h>
Data Fields | |
| bool | enable |
| bool | irq_en |
| mtg_event_object_t | obj |
| mtg_evnet_object_postion_t | obj_postion |
| mtg_event_mode_t | mode |
| mtg_event_dir_t | dir |
| mtg_event_dir_mode_t | dir_mode |
| mtg_event_over_mode_cmp_t | cmp_mode |
| mtg_event_trig_num_t | trig_num |
| union { | |
| struct { | |
| uint32_t cross_value_h | |
| uint32_t cross_value_l | |
| } cross_param | |
| struct { | |
| uint32_t hold_value_h | |
| uint32_t hold_value_l | |
| uint32_t error_limit | |
| uint32_t hold_clock_cnt | |
| } hold_param | |
| struct { | |
| uint32_t limit_value_h | |
| uint32_t limit_value_l | |
| } over_protect_param | |
| struct { | |
| uint32_t clock_count | |
| } time_param | |
| uint32_t preset [4] | |
| } | preset |
| union { | |
| struct { | |
| uint32_t cross_value_h | |
| uint32_t cross_value_l | |
| } cross_param | |
| struct { | |
| uint32_t hold_value_h | |
| uint32_t hold_value_l | |
| uint32_t error_limit | |
| uint32_t hold_clock_cnt | |
| } hold_param | |
| struct { | |
| uint32_t limit_value_h | |
| uint32_t limit_value_l | |
| } over_protect_param | |
| struct { | |
| uint32_t clock_count | |
| } time_param | |
| uint32_t preset [4] | |
| } | preset |
define the struct of the event setup parameter
| uint32_t mtg_event_param::clock_count |
| mtg_event_over_mode_cmp_t mtg_event_param::cmp_mode |
| struct { ... } mtg_event_param::cross_param |
| struct { ... } mtg_event_param::cross_param |
| uint32_t mtg_event_param::cross_value_h |
| uint32_t mtg_event_param::cross_value_l |
| mtg_event_dir_t mtg_event_param::dir |
| mtg_event_dir_mode_t mtg_event_param::dir_mode |
| bool mtg_event_param::enable |
| uint32_t mtg_event_param::error_limit |
| uint32_t mtg_event_param::hold_clock_cnt |
| struct { ... } mtg_event_param::hold_param |
| struct { ... } mtg_event_param::hold_param |
| uint32_t mtg_event_param::hold_value_h |
| uint32_t mtg_event_param::hold_value_l |
| bool mtg_event_param::irq_en |
| uint32_t mtg_event_param::limit_value_h |
| uint32_t mtg_event_param::limit_value_l |
| mtg_event_mode_t mtg_event_param::mode |
| mtg_event_object_t mtg_event_param::obj |
| mtg_evnet_object_postion_t mtg_event_param::obj_postion |
| struct { ... } mtg_event_param::over_protect_param |
| struct { ... } mtg_event_param::over_protect_param |
| uint32_t mtg_event_param::preset[4] |
| union { ... } mtg_event_param::preset |
| union { ... } mtg_event_param::preset |
| struct { ... } mtg_event_param::time_param |
| struct { ... } mtg_event_param::time_param |
| mtg_event_trig_num_t mtg_event_param::trig_num |