Synergy Software Package User's Manual
ctsu_instance_ctrl_t Struct Reference

#include <r_ctsuv2.h>

Data Fields

uint32_t open
 Whether or not driver is open.
 
ctsu_state_t state
 CTSU run state.
 
ctsu_md_t md
 CTSU Measurement Mode Select(copy to cfg)
 
ctsu_tuning_t tuning
 CTSU Initial offset tuning status.
 
uint16_t num_elements
 Number of elements to scan.
 
uint16_t wr_index
 Word index into ctsuwr register array.
 
uint16_t rd_index
 Word index into scan data buffer.
 
uint8_t * p_tuning_count
 Pointer to tuning count of each element. g_ctsu_tuning_count[] is set by Open API.
 
int32_t * p_tuning_diff
 Pointer to difference from base value of each element. g_ctsu_tuning_diff[] is set by Open API.
 
uint16_t average
 CTSU Moving average counter.
 
uint16_t num_moving_average
 Copy from config by Open API.
 
uint8_t ctsucr1
 Copy from (atune1 << 3, md << 6) by Open API. CLK, ATUNE0, CSW, and PON is set by HAL driver.
 
ctsu_ctsuwr_tp_ctsuwr
 CTSUWR write register value. g_ctsu_ctsuwr[] is set by Open API.
 
ctsu_self_buf_tp_self_raw
 Pointer to Self raw data. g_ctsu_self_raw[] is set by Open API.
 
uint16_t * p_self_data
 Pointer to Self moving average data. g_ctsu_self_data[] is set by Open API.
 
ctsu_mutual_buf_tp_mutual_raw
 Pointer to Mutual raw data. g_ctsu_mutual_raw[] is set by Open API.
 
uint16_t * p_mutual_pri_data
 Pointer to Mutual primary moving average data. g_ctsu_mutual_pri_data[] is set by Open API.
 
uint16_t * p_mutual_snd_data
 Pointer to Mutual secondary moving average data. g_ctsu_mutual_snd_data[] is set by Open API.
 
ctsu_correction_info_tp_correction_info
 Pointer to correction info.
 
uint8_t ctsuchac0
 TS00-TS07 enable mask.
 
uint8_t ctsuchac1
 TS08-TS15 enable mask.
 
uint8_t ctsuchac2
 TS16-TS23 enable mask.
 
uint8_t ctsuchac3
 TS24-TS31 enable mask.
 
uint8_t ctsuchac4
 TS32-TS39 enable mask.
 
uint8_t ctsuchtrc0
 TS00-TS07 mutual-tx mask.
 
uint8_t ctsuchtrc1
 TS08-TS15 mutual-tx mask.
 
uint8_t ctsuchtrc2
 TS16-TS23 mutual-tx mask.
 
uint8_t ctsuchtrc3
 TS24-TS31 mutual-tx mask.
 
uint8_t ctsuchtrc4
 TS32-TS39 mutual-tx mask.
 
ctsu_cfg_t const * p_ctsu_cfg
 Pointer to initial configurations.
 
IRQn_Type write_irq
 Copy from config by Open API. CTSU_CTSUWR interrupt vector.
 
IRQn_Type read_irq
 Copy from config by Open API. CTSU_CTSURD interrupt vector.
 
IRQn_Type end_irq
 Copy from config by Open API. CTSU_CTSUFN interrupt vector.
 
void(* p_callback )(ctsu_callback_args_t *)
 Callback provided when a CTSUFN occurs.
 
ctsu_callback_args_tp_callback_memory
 Pointer to non-secure memory that can be used to pass arguments to a callback in non-secure memory.
 
void const * p_context
 Placeholder for user data.
 
R_CTSU_Type * p_reg
 Pointer to base register address.
 
uint16_t tuning_self_target_value
 Target self value for initial offset tuning.
 
uint16_t tuning_mutual_target_value
 Target mutual value for initial offset tuning.
 

Detailed Description

CTSU private control block. DO NOT MODIFY. Initialization occurs when R_CTSU_Open() is called.


The documentation for this struct was generated from the following file: