pub struct LP_I2C0 { /* private fields */ }Expand description
Low-power I2C (Inter-Integrated Circuit) Controller 0
Implementations§
source§impl LP_I2C0
impl LP_I2C0
sourcepub const PTR: *const RegisterBlock = {0x600b1800 as *const lp_i2c0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x600b1800 as *const lp_i2c0::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 i2c_scl_low_period(&self) -> &I2C_SCL_LOW_PERIOD
pub fn i2c_scl_low_period(&self) -> &I2C_SCL_LOW_PERIOD
0x00 - Configures the low level width of the SCL Clock
sourcepub fn i2c_fifo_st(&self) -> &I2C_FIFO_ST
pub fn i2c_fifo_st(&self) -> &I2C_FIFO_ST
0x14 - FIFO status register.
sourcepub fn i2c_int_raw(&self) -> &I2C_INT_RAW
pub fn i2c_int_raw(&self) -> &I2C_INT_RAW
0x20 - Raw interrupt status
sourcepub fn i2c_int_clr(&self) -> &I2C_INT_CLR
pub fn i2c_int_clr(&self) -> &I2C_INT_CLR
0x24 - Interrupt clear bits
sourcepub fn i2c_int_ena(&self) -> &I2C_INT_ENA
pub fn i2c_int_ena(&self) -> &I2C_INT_ENA
0x28 - Interrupt enable bits
sourcepub fn i2c_int_status(&self) -> &I2C_INT_STATUS
pub fn i2c_int_status(&self) -> &I2C_INT_STATUS
0x2c - Status of captured I2C communication events
sourcepub fn i2c_sda_hold(&self) -> &I2C_SDA_HOLD
pub fn i2c_sda_hold(&self) -> &I2C_SDA_HOLD
0x30 - Configures the hold time after a negative SCL edge.
sourcepub fn i2c_sda_sample(&self) -> &I2C_SDA_SAMPLE
pub fn i2c_sda_sample(&self) -> &I2C_SDA_SAMPLE
0x34 - Configures the sample time after a positive SCL edge.
sourcepub fn i2c_scl_high_period(&self) -> &I2C_SCL_HIGH_PERIOD
pub fn i2c_scl_high_period(&self) -> &I2C_SCL_HIGH_PERIOD
0x38 - Configures the high level width of SCL
sourcepub fn i2c_scl_start_hold(&self) -> &I2C_SCL_START_HOLD
pub fn i2c_scl_start_hold(&self) -> &I2C_SCL_START_HOLD
0x40 - Configures the delay between the SDA and SCL negative edge for a start condition
sourcepub fn i2c_scl_rstart_setup(&self) -> &I2C_SCL_RSTART_SETUP
pub fn i2c_scl_rstart_setup(&self) -> &I2C_SCL_RSTART_SETUP
0x44 - Configures the delay between the positive edge of SCL and the negative edge of SDA
sourcepub fn i2c_scl_stop_hold(&self) -> &I2C_SCL_STOP_HOLD
pub fn i2c_scl_stop_hold(&self) -> &I2C_SCL_STOP_HOLD
0x48 - Configures the delay after the SCL clock edge for a stop condition
sourcepub fn i2c_scl_stop_setup(&self) -> &I2C_SCL_STOP_SETUP
pub fn i2c_scl_stop_setup(&self) -> &I2C_SCL_STOP_SETUP
0x4c - Configures the delay between the SDA and SCL positive edge for a stop condition
sourcepub fn i2c_filter_cfg(&self) -> &I2C_FILTER_CFG
pub fn i2c_filter_cfg(&self) -> &I2C_FILTER_CFG
0x50 - SCL and SDA filter configuration register
sourcepub fn i2c_clk_conf(&self) -> &I2C_CLK_CONF
pub fn i2c_clk_conf(&self) -> &I2C_CLK_CONF
0x54 - I2C CLK configuration register
sourcepub fn i2c_scl_st_time_out(&self) -> &I2C_SCL_ST_TIME_OUT
pub fn i2c_scl_st_time_out(&self) -> &I2C_SCL_ST_TIME_OUT
0x78 - SCL status time out register
sourcepub fn i2c_scl_main_st_time_out(&self) -> &I2C_SCL_MAIN_ST_TIME_OUT
pub fn i2c_scl_main_st_time_out(&self) -> &I2C_SCL_MAIN_ST_TIME_OUT
0x7c - SCL main status time out register
sourcepub fn i2c_scl_sp_conf(&self) -> &I2C_SCL_SP_CONF
pub fn i2c_scl_sp_conf(&self) -> &I2C_SCL_SP_CONF
0x80 - Power configuration register
sourcepub fn i2c_txfifo_start_addr(&self) -> &I2C_TXFIFO_START_ADDR
pub fn i2c_txfifo_start_addr(&self) -> &I2C_TXFIFO_START_ADDR
0x100 - I2C TXFIFO base address register
sourcepub fn i2c_rxfifo_start_addr(&self) -> &I2C_RXFIFO_START_ADDR
pub fn i2c_rxfifo_start_addr(&self) -> &I2C_RXFIFO_START_ADDR
0x180 - I2C RXFIFO base address register