pub struct SENS { /* private fields */ }
Expand description
SENS Peripheral
Implementations§
source§impl SENS
impl SENS
sourcepub const PTR: *const RegisterBlock = {0x3ff48800 as *const sens::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x3ff48800 as *const sens::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
sourcepub fn sar_read_ctrl(&self) -> &SAR_READ_CTRL
pub fn sar_read_ctrl(&self) -> &SAR_READ_CTRL
0x00 -
sourcepub fn sar_read_status1(&self) -> &SAR_READ_STATUS1
pub fn sar_read_status1(&self) -> &SAR_READ_STATUS1
0x04 -
sourcepub fn sar_meas_wait1(&self) -> &SAR_MEAS_WAIT1
pub fn sar_meas_wait1(&self) -> &SAR_MEAS_WAIT1
0x08 -
sourcepub fn sar_meas_wait2(&self) -> &SAR_MEAS_WAIT2
pub fn sar_meas_wait2(&self) -> &SAR_MEAS_WAIT2
0x0c -
sourcepub fn sar_meas_ctrl(&self) -> &SAR_MEAS_CTRL
pub fn sar_meas_ctrl(&self) -> &SAR_MEAS_CTRL
0x10 -
sourcepub fn sar_read_status2(&self) -> &SAR_READ_STATUS2
pub fn sar_read_status2(&self) -> &SAR_READ_STATUS2
0x14 -
sourcepub fn ulp_cp_sleep_cyc0(&self) -> &ULP_CP_SLEEP_CYC0
pub fn ulp_cp_sleep_cyc0(&self) -> &ULP_CP_SLEEP_CYC0
0x18 -
sourcepub fn ulp_cp_sleep_cyc1(&self) -> &ULP_CP_SLEEP_CYC1
pub fn ulp_cp_sleep_cyc1(&self) -> &ULP_CP_SLEEP_CYC1
0x1c -
sourcepub fn ulp_cp_sleep_cyc2(&self) -> &ULP_CP_SLEEP_CYC2
pub fn ulp_cp_sleep_cyc2(&self) -> &ULP_CP_SLEEP_CYC2
0x20 -
sourcepub fn ulp_cp_sleep_cyc3(&self) -> &ULP_CP_SLEEP_CYC3
pub fn ulp_cp_sleep_cyc3(&self) -> &ULP_CP_SLEEP_CYC3
0x24 -
sourcepub fn ulp_cp_sleep_cyc4(&self) -> &ULP_CP_SLEEP_CYC4
pub fn ulp_cp_sleep_cyc4(&self) -> &ULP_CP_SLEEP_CYC4
0x28 -
sourcepub fn sar_start_force(&self) -> &SAR_START_FORCE
pub fn sar_start_force(&self) -> &SAR_START_FORCE
0x2c -
sourcepub fn sar_mem_wr_ctrl(&self) -> &SAR_MEM_WR_CTRL
pub fn sar_mem_wr_ctrl(&self) -> &SAR_MEM_WR_CTRL
0x30 -
sourcepub fn sar_atten1(&self) -> &SAR_ATTEN1
pub fn sar_atten1(&self) -> &SAR_ATTEN1
0x34 -
sourcepub fn sar_atten2(&self) -> &SAR_ATTEN2
pub fn sar_atten2(&self) -> &SAR_ATTEN2
0x38 -
sourcepub fn sar_slave_addr1(&self) -> &SAR_SLAVE_ADDR1
pub fn sar_slave_addr1(&self) -> &SAR_SLAVE_ADDR1
0x3c -
sourcepub fn sar_slave_addr2(&self) -> &SAR_SLAVE_ADDR2
pub fn sar_slave_addr2(&self) -> &SAR_SLAVE_ADDR2
0x40 -
sourcepub fn sar_slave_addr3(&self) -> &SAR_SLAVE_ADDR3
pub fn sar_slave_addr3(&self) -> &SAR_SLAVE_ADDR3
0x44 -
sourcepub fn sar_slave_addr4(&self) -> &SAR_SLAVE_ADDR4
pub fn sar_slave_addr4(&self) -> &SAR_SLAVE_ADDR4
0x48 -
sourcepub fn sar_tsens_ctrl(&self) -> &SAR_TSENS_CTRL
pub fn sar_tsens_ctrl(&self) -> &SAR_TSENS_CTRL
0x4c -
sourcepub fn sar_i2c_ctrl(&self) -> &SAR_I2C_CTRL
pub fn sar_i2c_ctrl(&self) -> &SAR_I2C_CTRL
0x50 -
sourcepub fn sar_meas_start1(&self) -> &SAR_MEAS_START1
pub fn sar_meas_start1(&self) -> &SAR_MEAS_START1
0x54 -
sourcepub fn sar_touch_ctrl1(&self) -> &SAR_TOUCH_CTRL1
pub fn sar_touch_ctrl1(&self) -> &SAR_TOUCH_CTRL1
0x58 -
sourcepub fn sar_touch_thres1(&self) -> &SAR_TOUCH_THRES1
pub fn sar_touch_thres1(&self) -> &SAR_TOUCH_THRES1
0x5c -
sourcepub fn sar_touch_thres2(&self) -> &SAR_TOUCH_THRES2
pub fn sar_touch_thres2(&self) -> &SAR_TOUCH_THRES2
0x60 -
sourcepub fn sar_touch_thres3(&self) -> &SAR_TOUCH_THRES3
pub fn sar_touch_thres3(&self) -> &SAR_TOUCH_THRES3
0x64 -
sourcepub fn sar_touch_thres4(&self) -> &SAR_TOUCH_THRES4
pub fn sar_touch_thres4(&self) -> &SAR_TOUCH_THRES4
0x68 -
sourcepub fn sar_touch_thres5(&self) -> &SAR_TOUCH_THRES5
pub fn sar_touch_thres5(&self) -> &SAR_TOUCH_THRES5
0x6c -
sourcepub fn sar_touch_out1(&self) -> &SAR_TOUCH_OUT1
pub fn sar_touch_out1(&self) -> &SAR_TOUCH_OUT1
0x70 -
sourcepub fn sar_touch_out2(&self) -> &SAR_TOUCH_OUT2
pub fn sar_touch_out2(&self) -> &SAR_TOUCH_OUT2
0x74 -
sourcepub fn sar_touch_out3(&self) -> &SAR_TOUCH_OUT3
pub fn sar_touch_out3(&self) -> &SAR_TOUCH_OUT3
0x78 -
sourcepub fn sar_touch_out4(&self) -> &SAR_TOUCH_OUT4
pub fn sar_touch_out4(&self) -> &SAR_TOUCH_OUT4
0x7c -
sourcepub fn sar_touch_out5(&self) -> &SAR_TOUCH_OUT5
pub fn sar_touch_out5(&self) -> &SAR_TOUCH_OUT5
0x80 -
sourcepub fn sar_touch_ctrl2(&self) -> &SAR_TOUCH_CTRL2
pub fn sar_touch_ctrl2(&self) -> &SAR_TOUCH_CTRL2
0x84 -
sourcepub fn sar_touch_enable(&self) -> &SAR_TOUCH_ENABLE
pub fn sar_touch_enable(&self) -> &SAR_TOUCH_ENABLE
0x8c -
sourcepub fn sar_read_ctrl2(&self) -> &SAR_READ_CTRL2
pub fn sar_read_ctrl2(&self) -> &SAR_READ_CTRL2
0x90 -
sourcepub fn sar_meas_start2(&self) -> &SAR_MEAS_START2
pub fn sar_meas_start2(&self) -> &SAR_MEAS_START2
0x94 -
sourcepub fn sar_dac_ctrl1(&self) -> &SAR_DAC_CTRL1
pub fn sar_dac_ctrl1(&self) -> &SAR_DAC_CTRL1
0x98 -
sourcepub fn sar_dac_ctrl2(&self) -> &SAR_DAC_CTRL2
pub fn sar_dac_ctrl2(&self) -> &SAR_DAC_CTRL2
0x9c -
sourcepub fn sar_meas_ctrl2(&self) -> &SAR_MEAS_CTRL2
pub fn sar_meas_ctrl2(&self) -> &SAR_MEAS_CTRL2
0xa0 -