HPM SDK
HPMicro Software Development Kit
hpm_sei_drv.h File Reference
#include "hpm_common.h"
#include "hpm_sei_regs.h"
#include "hpm_soc_feature.h"
#include "hpm_soc_ip_feature.h"

Go to the source code of this file.

Data Structures

struct  sei_engine_config_t
 sei engine config structure More...
 
struct  sei_transceiver_synchronous_master_config_t
 sei transceiver synchronous master mode config structure More...
 
struct  sei_transceiver_synchronous_slave_config_t
 sei transceiver synchronous master mode config structure More...
 
struct  sei_transceiver_asynchronous_config_t
 sei transceiver asynchronous mode config structure More...
 
struct  sei_transceiver_config_t
 sei transceiver config structure More...
 
struct  sei_trigger_input_config_t
 sei trigger input config structure More...
 
struct  sei_trigger_output_config_t
 sei trigger output config structure More...
 
struct  sei_data_format_config_t
 sei data format config structure More...
 
struct  sei_command_table_config_t
 sei command table config structure More...
 
struct  sei_state_transition_config_t
 sei state transition config structure More...
 
struct  sei_state_transition_latch_config_t
 sei state transition latch config structure More...
 
struct  sei_sample_config_t
 sei sample config structure More...
 
struct  sei_update_config_t
 sei update config structure More...
 

Macros

#define SEI_SELECT_CMD   true
 sei select command or data More...
 
#define SEI_SELECT_DATA   false
 
#define SEI_DATA_CONST_0   (30UL)
 sei const data register index More...
 
#define SEI_DATA_CONST_1   (31UL)
 
#define SEI_INSTR_OP_HALT   0u
 sei instruction operation command More...
 
#define SEI_INSTR_OP_JUMP   1u
 
#define SEI_INSTR_OP_SEND_WDG   2u
 
#define SEI_INSTR_OP_SEND   3u
 
#define SEI_INSTR_OP_WAIT_WDG   4u
 
#define SEI_INSTR_OP_WAIT   5u
 
#define SEI_INSTR_OP_RECV_WDG   6u
 
#define SEI_INSTR_OP_RECV   7u
 
#define SEI_INSTR_M_CK_LOW   0u
 sei instruction synchronous master clock type More...
 
#define SEI_INSTR_M_CK_RISE_FALL   1u
 
#define SEI_INSTR_M_CK_FALL_RISE   2u
 
#define SEI_INSTR_M_CK_HIGH   3u
 
#define SEI_INSTR_S_CK_DEFAULT   0u
 sei instruction synchronous slave clock type More...
 
#define SEI_INSTR_S_CK_TRX_EXCH   1u
 
#define SEI_INSTR_S_CK_TIMEOUT_EN   2u
 
#define SEI_INSTR_S_CK_TRX_EXCH_TIMEOUT_EN   3u
 
#define SEI_JUMP_INIT_INSTR_IDX   0x00u
 sei instruction jump intructions index More...
 
#define SEI_JUMP_WDG_INSTR_IDX   0x01u
 
#define SEI_JUMP_CMD_TABLE_INSTR_IDX0   0x10u
 
#define SEI_JUMP_CMD_TABLE_INSTR_IDX1   0x11u
 
#define SEI_JUMP_CMD_TABLE_INSTR_IDX2   0x12u
 
#define SEI_JUMP_CMD_TABLE_INSTR_IDX3   0x13u
 
#define SEI_JUMP_CMD_TABLE_INSTR_IDX4   0x14u
 
#define SEI_JUMP_CMD_TABLE_INSTR_IDX5   0x15u
 
#define SEI_JUMP_CMD_TABLE_INSTR_IDX6   0x16u
 
#define SEI_JUMP_CMD_TABLE_INSTR_IDX7   0x17u
 
#define SEI_JUMP_CMD_TABLE_INSTR_IDX8   0x18u
 
#define SEI_JUMP_CMD_TABLE_INSTR_IDX9   0x19u
 
#define SEI_JUMP_CMD_TABLE_INSTR_IDX10   0x1Au
 
#define SEI_JUMP_CMD_TABLE_INSTR_IDX11   0x1Bu
 
#define SEI_JUMP_CMD_TABLE_INSTR_IDX12   0x1Cu
 
#define SEI_JUMP_CMD_TABLE_INSTR_IDX13   0x1Du
 
#define SEI_JUMP_CMD_TABLE_INSTR_IDX14   0x1Eu
 
#define SEI_JUMP_CMD_TABLE_INSTR_IDX15   0x1Fu
 

Enumerations

enum  sei_arming_mode_t { sei_arming_direct_exec = 0 , sei_arming_wait_trigger }
 sei arming action More...
 
enum  sei_wdg_action_t { sei_wdg_exec_next_instr = 0 , sei_wdg_exec_exception_instr }
 sei watchdog action More...
 
enum  sei_transceiver_mode_t { sei_synchronous_master_mode = 0 , sei_synchronous_slave_mode , sei_asynchronous_mode }
 sei transfer mode More...
 
enum  sei_asynchronous_parity_t { sei_asynchronous_parity_even = 0 , sei_asynchronous_parity_odd }
 sei asynchronous mode parity More...
 
enum  sei_idle_state_t { sei_idle_low_state = 0 , sei_idle_high_state }
 sei ilde state More...
 
enum  sei_data_mode_t { sei_data_mode = 0 , sei_check_mode , sei_crc_mode }
 sei data mode More...
 
enum  sei_data_bit_order_t { sei_bit_lsb_first = 0 , sei_bit_msb_first }
 sei data bit order More...
 
enum  sei_data_word_order_t { sei_word_nonreverse = 0 , sei_word_reverse }
 sei data word order More...
 
enum  sei_state_tran_condition_t { sei_state_tran_condition_high_match = 0 , sei_state_tran_condition_low_dismatch , sei_state_tran_condition_rise_entry , sei_state_tran_condition_fall_leave }
 sei state transition condition More...
 
enum  sei_trig_in_type_t { sei_trig_in0 = 0 , sei_trig_in1 , sei_trig_in_period , sei_trig_in_soft }
 sei trig in type More...
 
enum  sei_irq_event_t {
  sei_irq_stall_event = SEI_CTRL_IRQ_INT_FLAG_STALL_MASK , sei_irq_execpt_event = SEI_CTRL_IRQ_INT_FLAG_EXCEPT_MASK , sei_irq_wdog_event = SEI_CTRL_IRQ_INT_FLAG_WDOG_MASK , sei_irq_instr_ptr0_start_event = SEI_CTRL_IRQ_INT_FLAG_PTR0_ST_MASK ,
  sei_irq_instr_ptr1_start_event = SEI_CTRL_IRQ_INT_FLAG_PTR1_ST_MASK , sei_irq_instr_value0_start_event = SEI_CTRL_IRQ_INT_FLAG_INSTR0_ST_MASK , sei_irq_instr_value1_start_event = SEI_CTRL_IRQ_INT_FLAG_INSTR1_ST_MASK , sei_irq_instr_ptr0_end_event = SEI_CTRL_IRQ_INT_FLAG_PTR0_END_MASK ,
  sei_irq_instr_ptr1_end_event = SEI_CTRL_IRQ_INT_FLAG_PTR1_END_MASK , sei_irq_instr_value0_end_event = SEI_CTRL_IRQ_INT_FLAG_INSTR0_END_MASK , sei_irq_instr_value1_end_event = SEI_CTRL_IRQ_INT_FLAG_INSTR1_END_MASK , sei_irq_trx_err_event = SEI_CTRL_IRQ_INT_FLAG_TRX_ERR_MASK ,
  sei_irq_timeout_event = SEI_CTRL_IRQ_INT_FLAG_TIMEOUT_MASK , sei_irq_latch0_event = SEI_CTRL_IRQ_INT_FLAG_LATCH0_MASK , sei_irq_latch1_event = SEI_CTRL_IRQ_INT_FLAG_LATCH1_MASK , sei_irq_latch2_event = SEI_CTRL_IRQ_INT_FLAG_LATCH2_MASK ,
  sei_irq_latch3_event = SEI_CTRL_IRQ_INT_FLAG_LATCH3_MASK , sei_irq_sample_err_event = SEI_CTRL_IRQ_INT_FLAG_SMP_ERR_MASK , sei_irq_trig0_event = SEI_CTRL_IRQ_INT_FLAG_TRIGER0_MASK , sei_irq_trig1_event = SEI_CTRL_IRQ_INT_FLAG_TRIGER1_MASK ,
  sei_irq_trig2_event = SEI_CTRL_IRQ_INT_FLAG_TRIGER2_MASK , sei_irq_trig3_event = SEI_CTRL_IRQ_INT_FLAG_TRIGER3_MASK , sei_irq_trig0_err_event = SEI_CTRL_IRQ_INT_FLAG_TRG_ERR0_MASK , sei_irq_trig1_err_event = SEI_CTRL_IRQ_INT_FLAG_TRG_ERR1_MASK ,
  sei_irq_trig2_err_event = SEI_CTRL_IRQ_INT_FLAG_TRG_ERR2_MASK , sei_irq_trig3_err_event = SEI_CTRL_IRQ_INT_FLAG_TRG_ERR3_MASK
}
 sei irq event More...
 
enum  sei_dma_en_t {
  sei_dma_en_stall_event = SEI_CTRL_DMA_EN_STALL_MASK , sei_dma_en_execpt_event = SEI_CTRL_DMA_EN_EXCEPT_MASK , sei_dma_en_wdog_event = SEI_CTRL_DMA_EN_WDOG_MASK , sei_dma_en_instr_ptr0_start_event = SEI_CTRL_DMA_EN_PTR0_ST_MASK ,
  sei_dma_en_instr_ptr1_start_event = SEI_CTRL_DMA_EN_PTR1_ST_MASK , sei_dma_en_instr_value0_start_event = SEI_CTRL_DMA_EN_INSTR0_ST_MASK , sei_dma_en_instr_value1_start_event = SEI_CTRL_DMA_EN_INSTR1_ST_MASK , sei_dma_en_instr_ptr0_end_event = SEI_CTRL_DMA_EN_PTR0_END_MASK ,
  sei_dma_en_instr_ptr1_end_event = SEI_CTRL_DMA_EN_PTR1_END_MASK , sei_dma_en_instr_value0_end_event = SEI_CTRL_DMA_EN_INSTR0_END_MASK , sei_dma_en_instr_value1_end_event = SEI_CTRL_DMA_EN_INSTR1_END_MASK , sei_dma_en_trx_err_event = SEI_CTRL_DMA_EN_TRX_ERR_MASK ,
  sei_dma_en_timeout_event = SEI_CTRL_DMA_EN_TIMEOUT_MASK , sei_dma_en_latch0_event = SEI_CTRL_DMA_EN_LATCH0_MASK , sei_dma_en_latch1_event = SEI_CTRL_DMA_EN_LATCH1_MASK , sei_dma_en_latch2_event = SEI_CTRL_DMA_EN_LATCH2_MASK ,
  sei_dma_en_latch3_event = SEI_CTRL_DMA_EN_LATCH3_MASK , sei_dma_en_sample_err_event = SEI_CTRL_DMA_EN_SMP_ERR_MASK , sei_dma_en_trig0_event = SEI_CTRL_DMA_EN_TRIGER0_MASK , sei_dma_en_trig1_event = SEI_CTRL_DMA_EN_TRIGER1_MASK ,
  sei_dma_en_trig2_event = SEI_CTRL_DMA_EN_TRIGER2_MASK , sei_dma_en_trig3_event = SEI_CTRL_DMA_EN_TRIGER3_MASK , sei_dma_en_trig0_err_event = SEI_CTRL_DMA_EN_TRG_ERR0_MASK , sei_dma_en_trig1_err_event = SEI_CTRL_DMA_EN_TRG_ERR1_MASK ,
  sei_dma_en_trig2_err_event = SEI_CTRL_DMA_EN_TRG_ERR2_MASK , sei_dma_en_trig3_err_event = SEI_CTRL_DMA_EN_TRG_ERR3_MASK
}
 sei dma enable bit More...
 

Functions

static void sei_set_engine_enable (SEI_Type *ptr, uint8_t idx, bool enable)
 Set the SEI engine enable or disable. More...
 
static void sei_set_engine_rewind (SEI_Type *ptr, uint8_t idx)
 Rewind the SEI engine. More...
 
static void sei_set_trig_input_in0_enable (SEI_Type *ptr, uint8_t idx, bool enable)
 Set the SEI trigger input trig in0 enable or disable. More...
 
static void sei_set_trig_input_in1_enable (SEI_Type *ptr, uint8_t idx, bool enable)
 Set the SEI trigger input trig in1 enable or disable. More...
 
static void sei_set_trig_input_period_enable (SEI_Type *ptr, uint8_t idx, bool enable)
 Set the SEI trigger input period enable or disable. More...
 
static void sei_set_trig_input_soft_enable (SEI_Type *ptr, uint8_t idx)
 Set the SEI trigger input soft enable or disable. More...
 
static void sei_set_trig_input_command_value (SEI_Type *ptr, uint8_t idx, sei_trig_in_type_t type, uint32_t data)
 Set the SEI trigger input command value. More...
 
static uint32_t sei_get_trig_input_time (SEI_Type *ptr, uint8_t idx, sei_trig_in_type_t type)
 Get the SEI trigger input time. More...
 
static uint32_t sei_get_latch_time (SEI_Type *ptr, uint8_t idx, uint8_t latch_idx)
 Get the SEI latch time. More...
 
static void sei_set_xcvr_rx_point (SEI_Type *ptr, uint8_t idx, uint16_t point)
 Set the SEI transceiver rx point. More...
 
static void sei_set_xcvr_tx_point (SEI_Type *ptr, uint8_t idx, uint16_t point)
 Set the SEI transceiver tx point. More...
 
static void sei_set_xcvr_ck0_point (SEI_Type *ptr, uint8_t idx, uint16_t point)
 Set the SEI transceiver ck0 point. More...
 
static void sei_set_xcvr_ck1_point (SEI_Type *ptr, uint8_t idx, uint16_t point)
 Set the SEI transceiver ck1 point. More...
 
static uint16_t sei_get_xcvr_ck0_point (SEI_Type *ptr, uint8_t idx)
 Get the SEI transceiver ck0 point. More...
 
static uint16_t sei_get_xcvr_ck1_point (SEI_Type *ptr, uint8_t idx)
 Get the SEI transceiver ck1 point. More...
 
static void sei_set_command_value (SEI_Type *ptr, uint8_t idx, uint32_t cmd)
 Set the SEI command value. More...
 
static uint32_t sei_get_command_value (SEI_Type *ptr, uint8_t idx)
 Get the SEI command value. More...
 
static void sei_set_command_rewind (SEI_Type *ptr, uint8_t idx)
 Rewind the SEI command. More...
 
static void sei_set_data_value (SEI_Type *ptr, uint8_t idx, uint32_t data)
 Set the SEI data value. More...
 
static uint32_t sei_get_data_value (SEI_Type *ptr, uint8_t idx)
 Get the SEI data value. More...
 
static void sei_set_data_rewind (SEI_Type *ptr, uint8_t idx)
 Rewind the SEI data. More...
 
static void sei_set_sample_pos_override_value (SEI_Type *ptr, uint8_t idx, uint32_t data)
 Set the SEI sample position (singleturn) override value. More...
 
static void sei_set_sample_rev_override_value (SEI_Type *ptr, uint8_t idx, uint32_t data)
 Set the SEI sample revolution (multiturn) override value. More...
 
static void sei_set_sample_spd_override_value (SEI_Type *ptr, uint8_t idx, uint32_t data)
 Set the SEI sample speed override value. More...
 
static void sei_set_sample_acc_override_value (SEI_Type *ptr, uint8_t idx, uint32_t data)
 Set the SEI sample acceleration override value. More...
 
static void sei_set_update_pos_override_value (SEI_Type *ptr, uint8_t idx, uint32_t data)
 Set the SEI update position (singleturn) override value. More...
 
static void sei_set_update_rev_override_value (SEI_Type *ptr, uint8_t idx, uint32_t data)
 Set the SEI update revolution (multiturn) override value. More...
 
static void sei_set_update_spd_override_value (SEI_Type *ptr, uint8_t idx, uint32_t data)
 Set the SEI update speed override value. More...
 
static void sei_set_update_acc_override_value (SEI_Type *ptr, uint8_t idx, uint32_t data)
 Set the SEI update acceleration override value. More...
 
static void sei_set_update_time_override_value (SEI_Type *ptr, uint8_t idx, uint32_t data)
 Set the SEI update time override value. More...
 
static void sei_set_irq_match_instr0_ptr (SEI_Type *ptr, uint8_t idx, uint8_t instr_idx)
 Set the SEI irq match pointer0. More...
 
static void sei_set_irq_match_instr1_ptr (SEI_Type *ptr, uint8_t idx, uint8_t instr_idx)
 Set the SEI irq match pointer1. More...
 
static void sei_set_irq_match_instr0_value (SEI_Type *ptr, uint8_t idx, uint32_t instr_value)
 Set the SEI irq match instr0. More...
 
static void sei_set_irq_match_instr1_value (SEI_Type *ptr, uint8_t idx, uint32_t instr_value)
 Set the SEI irq match instr1. More...
 
static void sei_set_irq_enable (SEI_Type *ptr, uint8_t idx, uint32_t irq_mask, bool enable)
 Set the SEI irq enable or disable. More...
 
static bool sei_get_irq_status (SEI_Type *ptr, uint8_t idx, uint32_t irq_mask)
 Get the SEI irq status. More...
 
static void sei_clear_irq_flag (SEI_Type *ptr, uint8_t idx, uint32_t irq_mask)
 Clear the SEI irq flag. More...
 
static void sei_set_dma_req_enable (SEI_Type *ptr, uint8_t idx, uint32_t dma_en_mask, bool enable)
 Set the SEI DMA request enable or disable. More...
 
hpm_stat_t sei_transceiver_config_init (SEI_Type *ptr, uint8_t idx, sei_transceiver_config_t *config)
 Init SEI transceiver configuration. More...
 
hpm_stat_t sei_cmd_data_format_config_init (SEI_Type *ptr, bool cmd_data_select, uint8_t idx, sei_data_format_config_t *config)
 Init SEI command or data format configuration. More...
 
hpm_stat_t sei_cmd_table_config_init (SEI_Type *ptr, uint8_t idx, uint8_t table_idx, sei_command_table_config_t *config)
 Init SEI command table configuration. More...
 
hpm_stat_t sei_state_transition_config_init (SEI_Type *ptr, uint8_t idx, uint8_t latch_idx, uint8_t state, sei_state_transition_config_t *config)
 Init SEI state transition configuration. More...
 
hpm_stat_t sei_state_transition_latch_config_init (SEI_Type *ptr, uint8_t idx, uint8_t latch_idx, sei_state_transition_latch_config_t *config)
 Init SEI state transition latch configuration. More...
 
hpm_stat_t sei_sample_config_init (SEI_Type *ptr, uint8_t idx, sei_sample_config_t *config)
 Init SEI sample configuration. More...
 
hpm_stat_t sei_update_config_init (SEI_Type *ptr, uint8_t idx, sei_update_config_t *config)
 Init SEI update configuration. More...
 
hpm_stat_t sei_trigger_input_config_init (SEI_Type *ptr, uint8_t idx, sei_trigger_input_config_t *config)
 Init SEI trigger input configuration. More...
 
hpm_stat_t sei_trigger_output_config_init (SEI_Type *ptr, uint8_t idx, sei_trigger_output_config_t *config)
 Init SEI trigger output configuration. More...
 
hpm_stat_t sei_engine_config_init (SEI_Type *ptr, uint8_t idx, sei_engine_config_t *config)
 Init SEI engine configuration. More...
 
void sei_set_instr (SEI_Type *ptr, uint8_t idx, uint8_t op, uint8_t ck, uint8_t crc, uint8_t data, uint8_t opr)
 Set SEI Intsructions. More...
 

Macro Definition Documentation

◆ SEI_DATA_CONST_0

#define SEI_DATA_CONST_0   (30UL)

sei const data register index

◆ SEI_DATA_CONST_1

#define SEI_DATA_CONST_1   (31UL)

◆ SEI_INSTR_M_CK_FALL_RISE

#define SEI_INSTR_M_CK_FALL_RISE   2u

clock fall rise

◆ SEI_INSTR_M_CK_HIGH

#define SEI_INSTR_M_CK_HIGH   3u

clock high

◆ SEI_INSTR_M_CK_LOW

#define SEI_INSTR_M_CK_LOW   0u

sei instruction synchronous master clock type

clock low

◆ SEI_INSTR_M_CK_RISE_FALL

#define SEI_INSTR_M_CK_RISE_FALL   1u

clock rise fall

◆ SEI_INSTR_OP_HALT

#define SEI_INSTR_OP_HALT   0u

sei instruction operation command

op halt

◆ SEI_INSTR_OP_JUMP

#define SEI_INSTR_OP_JUMP   1u

op jump

◆ SEI_INSTR_OP_RECV

#define SEI_INSTR_OP_RECV   7u

op recv

◆ SEI_INSTR_OP_RECV_WDG

#define SEI_INSTR_OP_RECV_WDG   6u

op recv with watchdog

◆ SEI_INSTR_OP_SEND

#define SEI_INSTR_OP_SEND   3u

op send

◆ SEI_INSTR_OP_SEND_WDG

#define SEI_INSTR_OP_SEND_WDG   2u

op send with watchdog

◆ SEI_INSTR_OP_WAIT

#define SEI_INSTR_OP_WAIT   5u

op wait

◆ SEI_INSTR_OP_WAIT_WDG

#define SEI_INSTR_OP_WAIT_WDG   4u

op wait with watchdog

◆ SEI_INSTR_S_CK_DEFAULT

#define SEI_INSTR_S_CK_DEFAULT   0u

sei instruction synchronous slave clock type

default

◆ SEI_INSTR_S_CK_TIMEOUT_EN

#define SEI_INSTR_S_CK_TIMEOUT_EN   2u

enable timeout

◆ SEI_INSTR_S_CK_TRX_EXCH

#define SEI_INSTR_S_CK_TRX_EXCH   1u

rx tx exchange

◆ SEI_INSTR_S_CK_TRX_EXCH_TIMEOUT_EN

#define SEI_INSTR_S_CK_TRX_EXCH_TIMEOUT_EN   3u

rx tx exchange and enable timeout

◆ SEI_JUMP_CMD_TABLE_INSTR_IDX0

#define SEI_JUMP_CMD_TABLE_INSTR_IDX0   0x10u

jump command table instr ptr0

◆ SEI_JUMP_CMD_TABLE_INSTR_IDX1

#define SEI_JUMP_CMD_TABLE_INSTR_IDX1   0x11u

jump command table instr ptr1

◆ SEI_JUMP_CMD_TABLE_INSTR_IDX10

#define SEI_JUMP_CMD_TABLE_INSTR_IDX10   0x1Au

jump command table instr ptr10

◆ SEI_JUMP_CMD_TABLE_INSTR_IDX11

#define SEI_JUMP_CMD_TABLE_INSTR_IDX11   0x1Bu

jump command table instr ptr11

◆ SEI_JUMP_CMD_TABLE_INSTR_IDX12

#define SEI_JUMP_CMD_TABLE_INSTR_IDX12   0x1Cu

jump command table instr ptr12

◆ SEI_JUMP_CMD_TABLE_INSTR_IDX13

#define SEI_JUMP_CMD_TABLE_INSTR_IDX13   0x1Du

jump command table instr ptr13

◆ SEI_JUMP_CMD_TABLE_INSTR_IDX14

#define SEI_JUMP_CMD_TABLE_INSTR_IDX14   0x1Eu

jump command table instr ptr14

◆ SEI_JUMP_CMD_TABLE_INSTR_IDX15

#define SEI_JUMP_CMD_TABLE_INSTR_IDX15   0x1Fu

jump command table instr ptr15

◆ SEI_JUMP_CMD_TABLE_INSTR_IDX2

#define SEI_JUMP_CMD_TABLE_INSTR_IDX2   0x12u

jump command table instr ptr2

◆ SEI_JUMP_CMD_TABLE_INSTR_IDX3

#define SEI_JUMP_CMD_TABLE_INSTR_IDX3   0x13u

jump command table instr ptr3

◆ SEI_JUMP_CMD_TABLE_INSTR_IDX4

#define SEI_JUMP_CMD_TABLE_INSTR_IDX4   0x14u

jump command table instr ptr4

◆ SEI_JUMP_CMD_TABLE_INSTR_IDX5

#define SEI_JUMP_CMD_TABLE_INSTR_IDX5   0x15u

jump command table instr ptr5

◆ SEI_JUMP_CMD_TABLE_INSTR_IDX6

#define SEI_JUMP_CMD_TABLE_INSTR_IDX6   0x16u

jump command table instr ptr6

◆ SEI_JUMP_CMD_TABLE_INSTR_IDX7

#define SEI_JUMP_CMD_TABLE_INSTR_IDX7   0x17u

jump command table instr ptr7

◆ SEI_JUMP_CMD_TABLE_INSTR_IDX8

#define SEI_JUMP_CMD_TABLE_INSTR_IDX8   0x18u

jump command table instr ptr8

◆ SEI_JUMP_CMD_TABLE_INSTR_IDX9

#define SEI_JUMP_CMD_TABLE_INSTR_IDX9   0x19u

jump command table instr ptr9

◆ SEI_JUMP_INIT_INSTR_IDX

#define SEI_JUMP_INIT_INSTR_IDX   0x00u

sei instruction jump intructions index

jump init instr index

◆ SEI_JUMP_WDG_INSTR_IDX

#define SEI_JUMP_WDG_INSTR_IDX   0x01u

jump watchdog instr index

◆ SEI_SELECT_CMD

#define SEI_SELECT_CMD   true

sei select command or data

select cmd

◆ SEI_SELECT_DATA

#define SEI_SELECT_DATA   false

select data

Enumeration Type Documentation

◆ sei_arming_mode_t

sei arming action

Enumerator
sei_arming_direct_exec 
sei_arming_wait_trigger 

◆ sei_asynchronous_parity_t

sei asynchronous mode parity

Enumerator
sei_asynchronous_parity_even 
sei_asynchronous_parity_odd 

◆ sei_data_bit_order_t

sei data bit order

Enumerator
sei_bit_lsb_first 
sei_bit_msb_first 

◆ sei_data_mode_t

sei data mode

Enumerator
sei_data_mode 
sei_check_mode 
sei_crc_mode 

◆ sei_data_word_order_t

sei data word order

Enumerator
sei_word_nonreverse 
sei_word_reverse 

◆ sei_dma_en_t

sei dma enable bit

Enumerator
sei_dma_en_stall_event 
sei_dma_en_execpt_event 
sei_dma_en_wdog_event 
sei_dma_en_instr_ptr0_start_event 
sei_dma_en_instr_ptr1_start_event 
sei_dma_en_instr_value0_start_event 
sei_dma_en_instr_value1_start_event 
sei_dma_en_instr_ptr0_end_event 
sei_dma_en_instr_ptr1_end_event 
sei_dma_en_instr_value0_end_event 
sei_dma_en_instr_value1_end_event 
sei_dma_en_trx_err_event 
sei_dma_en_timeout_event 
sei_dma_en_latch0_event 
sei_dma_en_latch1_event 
sei_dma_en_latch2_event 
sei_dma_en_latch3_event 
sei_dma_en_sample_err_event 
sei_dma_en_trig0_event 
sei_dma_en_trig1_event 
sei_dma_en_trig2_event 
sei_dma_en_trig3_event 
sei_dma_en_trig0_err_event 
sei_dma_en_trig1_err_event 
sei_dma_en_trig2_err_event 
sei_dma_en_trig3_err_event 

◆ sei_idle_state_t

sei ilde state

Enumerator
sei_idle_low_state 
sei_idle_high_state 

◆ sei_irq_event_t

sei irq event

Enumerator
sei_irq_stall_event 
sei_irq_execpt_event 
sei_irq_wdog_event 
sei_irq_instr_ptr0_start_event 
sei_irq_instr_ptr1_start_event 
sei_irq_instr_value0_start_event 
sei_irq_instr_value1_start_event 
sei_irq_instr_ptr0_end_event 
sei_irq_instr_ptr1_end_event 
sei_irq_instr_value0_end_event 
sei_irq_instr_value1_end_event 
sei_irq_trx_err_event 
sei_irq_timeout_event 
sei_irq_latch0_event 
sei_irq_latch1_event 
sei_irq_latch2_event 
sei_irq_latch3_event 
sei_irq_sample_err_event 
sei_irq_trig0_event 
sei_irq_trig1_event 
sei_irq_trig2_event 
sei_irq_trig3_event 
sei_irq_trig0_err_event 
sei_irq_trig1_err_event 
sei_irq_trig2_err_event 
sei_irq_trig3_err_event 

◆ sei_state_tran_condition_t

sei state transition condition

Enumerator
sei_state_tran_condition_high_match 
sei_state_tran_condition_low_dismatch 
sei_state_tran_condition_rise_entry 
sei_state_tran_condition_fall_leave 

◆ sei_transceiver_mode_t

sei transfer mode

Enumerator
sei_synchronous_master_mode 
sei_synchronous_slave_mode 
sei_asynchronous_mode 

◆ sei_trig_in_type_t

sei trig in type

Enumerator
sei_trig_in0 
sei_trig_in1 
sei_trig_in_period 
sei_trig_in_soft 

◆ sei_wdg_action_t

sei watchdog action

Enumerator
sei_wdg_exec_next_instr 
sei_wdg_exec_exception_instr 

Function Documentation

◆ sei_clear_irq_flag()

static void sei_clear_irq_flag ( SEI_Type ptr,
uint8_t  idx,
uint32_t  irq_mask 
)
inlinestatic

Clear the SEI irq flag.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]irq_maskirq mask, sei_irq_event_t

◆ sei_cmd_data_format_config_init()

hpm_stat_t sei_cmd_data_format_config_init ( SEI_Type ptr,
bool  cmd_data_select,
uint8_t  idx,
sei_data_format_config_t config 
)

Init SEI command or data format configuration.

Parameters
[in]ptrSEI base address
[in]cmd_data_select
[in]idxSEI ctrl index or data index, decided by cmd_data_select, such as SEI_CTRL_0, SEI_CTRL_1, SEI_DAT_2, SEI_DAT_3, etc.
[in]configcommand or data format configuration sei_data_format_config_t
Return values
APIexecution status

◆ sei_cmd_table_config_init()

hpm_stat_t sei_cmd_table_config_init ( SEI_Type ptr,
uint8_t  idx,
uint8_t  table_idx,
sei_command_table_config_t config 
)

Init SEI command table configuration.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]table_idxcommand table index, 0 - 7
[in]configcommand table configuration sei_command_table_config_t
Return values
APIexecution status

◆ sei_engine_config_init()

hpm_stat_t sei_engine_config_init ( SEI_Type ptr,
uint8_t  idx,
sei_engine_config_t config 
)

Init SEI engine configuration.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]configengine configuration sei_engine_config_t
Return values
APIexecution status

◆ sei_get_command_value()

static uint32_t sei_get_command_value ( SEI_Type ptr,
uint8_t  idx 
)
inlinestatic

Get the SEI command value.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
Return values
commandvalue

◆ sei_get_data_value()

static uint32_t sei_get_data_value ( SEI_Type ptr,
uint8_t  idx 
)
inlinestatic

Get the SEI data value.

Parameters
[in]ptrSEI base address
[in]idxSEI data index, such as SEI_DAT_2, SEI_DAT_3, etc.
Return values
datavalue

◆ sei_get_irq_status()

static bool sei_get_irq_status ( SEI_Type ptr,
uint8_t  idx,
uint32_t  irq_mask 
)
inlinestatic

Get the SEI irq status.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]irq_maskirq mask, sei_irq_event_t
Return values
true-hasirq req, false-no irq req.

◆ sei_get_latch_time()

static uint32_t sei_get_latch_time ( SEI_Type ptr,
uint8_t  idx,
uint8_t  latch_idx 
)
inlinestatic

Get the SEI latch time.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]latch_idx
  • SEI_LATCH_0
  • SEI_LATCH_1
  • SEI_LATCH_2
  • SEI_LATCH_3
Return values
latchtime

◆ sei_get_trig_input_time()

static uint32_t sei_get_trig_input_time ( SEI_Type ptr,
uint8_t  idx,
sei_trig_in_type_t  type 
)
inlinestatic

Get the SEI trigger input time.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]typetrigger input type sei_trig_in_type_t
Return values
triggerinput time

◆ sei_get_xcvr_ck0_point()

static uint16_t sei_get_xcvr_ck0_point ( SEI_Type ptr,
uint8_t  idx 
)
inlinestatic

Get the SEI transceiver ck0 point.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
Return values
ck0point value

◆ sei_get_xcvr_ck1_point()

static uint16_t sei_get_xcvr_ck1_point ( SEI_Type ptr,
uint8_t  idx 
)
inlinestatic

Get the SEI transceiver ck1 point.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
Return values
ck1point value

◆ sei_sample_config_init()

hpm_stat_t sei_sample_config_init ( SEI_Type ptr,
uint8_t  idx,
sei_sample_config_t config 
)

Init SEI sample configuration.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]configsample configuration sei_sample_config_t
Return values
APIexecution status

◆ sei_set_command_rewind()

static void sei_set_command_rewind ( SEI_Type ptr,
uint8_t  idx 
)
inlinestatic

Rewind the SEI command.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.

◆ sei_set_command_value()

static void sei_set_command_value ( SEI_Type ptr,
uint8_t  idx,
uint32_t  cmd 
)
inlinestatic

Set the SEI command value.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]cmdcommand value

◆ sei_set_data_rewind()

static void sei_set_data_rewind ( SEI_Type ptr,
uint8_t  idx 
)
inlinestatic

Rewind the SEI data.

Parameters
[in]ptrSEI base address
[in]idxSEI data index, such as SEI_DAT_2, SEI_DAT_3, etc.

◆ sei_set_data_value()

static void sei_set_data_value ( SEI_Type ptr,
uint8_t  idx,
uint32_t  data 
)
inlinestatic

Set the SEI data value.

Parameters
[in]ptrSEI base address
[in]idxSEI data index, such as SEI_DAT_2, SEI_DAT_3, etc.
[in]datadata value

◆ sei_set_dma_req_enable()

static void sei_set_dma_req_enable ( SEI_Type ptr,
uint8_t  idx,
uint32_t  dma_en_mask,
bool  enable 
)
inlinestatic

Set the SEI DMA request enable or disable.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]dma_en_maskdma enable bit mask, sei_dma_en_t
[in]enableenable or disable
  • true enable
  • false disable

◆ sei_set_engine_enable()

static void sei_set_engine_enable ( SEI_Type ptr,
uint8_t  idx,
bool  enable 
)
inlinestatic

Set the SEI engine enable or disable.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]enableenable or disable
  • true enable
  • false disable

◆ sei_set_engine_rewind()

static void sei_set_engine_rewind ( SEI_Type ptr,
uint8_t  idx 
)
inlinestatic

Rewind the SEI engine.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.

◆ sei_set_instr()

void sei_set_instr ( SEI_Type ptr,
uint8_t  idx,
uint8_t  op,
uint8_t  ck,
uint8_t  crc,
uint8_t  data,
uint8_t  opr 
)

Set SEI Intsructions.

Parameters
[in]ptrSEI base address
[in]idxSEI instruction index.
[in]opSEI instruction operation
[in]ckSEI instruction clock [1] synchronous master clock type
[in]crcSEI instruction crc register, such as SEI_DAT_0, SEI_DAT_1, etc.
[in]dataSEI instruction data register, such as SEI_DAT_0, SEI_DAT_1, etc.
[in]oprSEI instruction operand. [1] When OP is SEI_INSTR_OP_HALT, opr is the halt time in baudrate, 0 represents infinite time. [2] When OP is SEI_INSTR_OP_JUMP, opr is command table pointer, init pointer or wdg pointer.

◆ sei_set_irq_enable()

static void sei_set_irq_enable ( SEI_Type ptr,
uint8_t  idx,
uint32_t  irq_mask,
bool  enable 
)
inlinestatic

Set the SEI irq enable or disable.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]irq_maskirq mask, sei_irq_event_t
[in]enableenable or disable
  • true enable
  • false disable

◆ sei_set_irq_match_instr0_ptr()

static void sei_set_irq_match_instr0_ptr ( SEI_Type ptr,
uint8_t  idx,
uint8_t  instr_idx 
)
inlinestatic

Set the SEI irq match pointer0.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]instr_idxmatch instr0 index

◆ sei_set_irq_match_instr0_value()

static void sei_set_irq_match_instr0_value ( SEI_Type ptr,
uint8_t  idx,
uint32_t  instr_value 
)
inlinestatic

Set the SEI irq match instr0.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]instr_valuematch instr0 value

◆ sei_set_irq_match_instr1_ptr()

static void sei_set_irq_match_instr1_ptr ( SEI_Type ptr,
uint8_t  idx,
uint8_t  instr_idx 
)
inlinestatic

Set the SEI irq match pointer1.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]instr_idxmatch instr1 index

◆ sei_set_irq_match_instr1_value()

static void sei_set_irq_match_instr1_value ( SEI_Type ptr,
uint8_t  idx,
uint32_t  instr_value 
)
inlinestatic

Set the SEI irq match instr1.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]instr_valuematch instr1 value

◆ sei_set_sample_acc_override_value()

static void sei_set_sample_acc_override_value ( SEI_Type ptr,
uint8_t  idx,
uint32_t  data 
)
inlinestatic

Set the SEI sample acceleration override value.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]dataacceleration override value

◆ sei_set_sample_pos_override_value()

static void sei_set_sample_pos_override_value ( SEI_Type ptr,
uint8_t  idx,
uint32_t  data 
)
inlinestatic

Set the SEI sample position (singleturn) override value.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]dataposition (singleturn) override value

◆ sei_set_sample_rev_override_value()

static void sei_set_sample_rev_override_value ( SEI_Type ptr,
uint8_t  idx,
uint32_t  data 
)
inlinestatic

Set the SEI sample revolution (multiturn) override value.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]datarevolution (multiturn) override value

◆ sei_set_sample_spd_override_value()

static void sei_set_sample_spd_override_value ( SEI_Type ptr,
uint8_t  idx,
uint32_t  data 
)
inlinestatic

Set the SEI sample speed override value.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]dataspeed override value

◆ sei_set_trig_input_command_value()

static void sei_set_trig_input_command_value ( SEI_Type ptr,
uint8_t  idx,
sei_trig_in_type_t  type,
uint32_t  data 
)
inlinestatic

Set the SEI trigger input command value.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]typetrigger input type sei_trig_in_type_t
[in]datacommand data

◆ sei_set_trig_input_in0_enable()

static void sei_set_trig_input_in0_enable ( SEI_Type ptr,
uint8_t  idx,
bool  enable 
)
inlinestatic

Set the SEI trigger input trig in0 enable or disable.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]enableenable or disable
  • true enable
  • false disable

◆ sei_set_trig_input_in1_enable()

static void sei_set_trig_input_in1_enable ( SEI_Type ptr,
uint8_t  idx,
bool  enable 
)
inlinestatic

Set the SEI trigger input trig in1 enable or disable.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]enableenable or disable
  • true enable
  • false disable

◆ sei_set_trig_input_period_enable()

static void sei_set_trig_input_period_enable ( SEI_Type ptr,
uint8_t  idx,
bool  enable 
)
inlinestatic

Set the SEI trigger input period enable or disable.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]enableenable or disable
  • true enable
  • false disable

◆ sei_set_trig_input_soft_enable()

static void sei_set_trig_input_soft_enable ( SEI_Type ptr,
uint8_t  idx 
)
inlinestatic

Set the SEI trigger input soft enable or disable.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
  • true enable
  • false disable

◆ sei_set_update_acc_override_value()

static void sei_set_update_acc_override_value ( SEI_Type ptr,
uint8_t  idx,
uint32_t  data 
)
inlinestatic

Set the SEI update acceleration override value.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]dataacceleration override value

◆ sei_set_update_pos_override_value()

static void sei_set_update_pos_override_value ( SEI_Type ptr,
uint8_t  idx,
uint32_t  data 
)
inlinestatic

Set the SEI update position (singleturn) override value.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]dataposition (singleturn) override value

◆ sei_set_update_rev_override_value()

static void sei_set_update_rev_override_value ( SEI_Type ptr,
uint8_t  idx,
uint32_t  data 
)
inlinestatic

Set the SEI update revolution (multiturn) override value.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]datarevolution (multiturn) override value

◆ sei_set_update_spd_override_value()

static void sei_set_update_spd_override_value ( SEI_Type ptr,
uint8_t  idx,
uint32_t  data 
)
inlinestatic

Set the SEI update speed override value.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]dataspeed override value

◆ sei_set_update_time_override_value()

static void sei_set_update_time_override_value ( SEI_Type ptr,
uint8_t  idx,
uint32_t  data 
)
inlinestatic

Set the SEI update time override value.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]datatime override value

◆ sei_set_xcvr_ck0_point()

static void sei_set_xcvr_ck0_point ( SEI_Type ptr,
uint8_t  idx,
uint16_t  point 
)
inlinestatic

Set the SEI transceiver ck0 point.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]pointck0 point value

◆ sei_set_xcvr_ck1_point()

static void sei_set_xcvr_ck1_point ( SEI_Type ptr,
uint8_t  idx,
uint16_t  point 
)
inlinestatic

Set the SEI transceiver ck1 point.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]pointck1 point value

◆ sei_set_xcvr_rx_point()

static void sei_set_xcvr_rx_point ( SEI_Type ptr,
uint8_t  idx,
uint16_t  point 
)
inlinestatic

Set the SEI transceiver rx point.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]pointrx point value

◆ sei_set_xcvr_tx_point()

static void sei_set_xcvr_tx_point ( SEI_Type ptr,
uint8_t  idx,
uint16_t  point 
)
inlinestatic

Set the SEI transceiver tx point.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]pointtx point value

◆ sei_state_transition_config_init()

hpm_stat_t sei_state_transition_config_init ( SEI_Type ptr,
uint8_t  idx,
uint8_t  latch_idx,
uint8_t  state,
sei_state_transition_config_t config 
)

Init SEI state transition configuration.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]latch_idxlatch index
  • SEI_LATCH_0
  • SEI_LATCH_1
  • SEI_LATCH_2
  • SEI_LATCH_3
[in]statetransition state
  • SEI_CTRL_LATCH_TRAN_0_1
  • SEI_CTRL_LATCH_TRAN_1_2
  • SEI_CTRL_LATCH_TRAN_2_3
  • SEI_CTRL_LATCH_TRAN_3_0
[in]configstate transition configuration sei_state_transition_config_t
Return values
APIexecution status

◆ sei_state_transition_latch_config_init()

hpm_stat_t sei_state_transition_latch_config_init ( SEI_Type ptr,
uint8_t  idx,
uint8_t  latch_idx,
sei_state_transition_latch_config_t config 
)

Init SEI state transition latch configuration.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]latch_idxlatch index
  • SEI_LATCH_0
  • SEI_LATCH_1
  • SEI_LATCH_2
  • SEI_LATCH_3
[in]configstate transition latch configuration sei_state_transition_latch_config_t
Return values
APIexecution status

◆ sei_transceiver_config_init()

hpm_stat_t sei_transceiver_config_init ( SEI_Type ptr,
uint8_t  idx,
sei_transceiver_config_t config 
)

Init SEI transceiver configuration.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]configtransceiver configuration sei_transceiver_config_t
Return values
APIexecution status

◆ sei_trigger_input_config_init()

hpm_stat_t sei_trigger_input_config_init ( SEI_Type ptr,
uint8_t  idx,
sei_trigger_input_config_t config 
)

Init SEI trigger input configuration.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]configtrigger input configuration sei_trigger_input_config_t
Return values
APIexecution status

◆ sei_trigger_output_config_init()

hpm_stat_t sei_trigger_output_config_init ( SEI_Type ptr,
uint8_t  idx,
sei_trigger_output_config_t config 
)

Init SEI trigger output configuration.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]configtrigger output configuration sei_trigger_output_config_t
Return values
APIexecution status

◆ sei_update_config_init()

hpm_stat_t sei_update_config_init ( SEI_Type ptr,
uint8_t  idx,
sei_update_config_t config 
)

Init SEI update configuration.

Parameters
[in]ptrSEI base address
[in]idxSEI ctrl index, such as SEI_CTRL_0, SEI_CTRL_1, etc.
[in]configupdate configuration sei_update_config_t
Return values
APIexecution status