pub struct I2c1 { /* private fields */ }
Expand description
Synopsys DesignWare APB I2C: i2c1
Implementations§
Source§impl I2c1
impl I2c1
Sourcepub const PTR: *const RegisterBlock = {0x10040000 as *const i2c0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x10040000 as *const 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 ss_scl_hcnt(&self) -> &SsSclHcnt
pub fn ss_scl_hcnt(&self) -> &SsSclHcnt
0x14 - DesignWare I2C SS SCL HCNT
Sourcepub fn ss_scl_lcnt(&self) -> &SsSclLcnt
pub fn ss_scl_lcnt(&self) -> &SsSclLcnt
0x18 - DesignWare I2C SS SCL LCNT
Sourcepub fn fs_scl_hcnt(&self) -> &FsSclHcnt
pub fn fs_scl_hcnt(&self) -> &FsSclHcnt
0x1c - DesignWare I2C FS SCL HCNT
Sourcepub fn fs_scl_lcnt(&self) -> &FsSclLcnt
pub fn fs_scl_lcnt(&self) -> &FsSclLcnt
0x20 - DesignWare I2C FS SCL LCNT
Sourcepub fn hs_scl_hcnt(&self) -> &HsSclHcnt
pub fn hs_scl_hcnt(&self) -> &HsSclHcnt
0x24 - DesignWare I2C HS SCL HCNT
Sourcepub fn hs_scl_lcnt(&self) -> &HsSclLcnt
pub fn hs_scl_lcnt(&self) -> &HsSclLcnt
0x28 - DesignWare I2C HS SCL LCNT
Sourcepub fn raw_intr_stat(&self) -> &RawIntrStat
pub fn raw_intr_stat(&self) -> &RawIntrStat
0x34 - DesignWare I2C Raw Interrupt Status
Sourcepub fn clr_rx_under(&self) -> &ClrRxUnder
pub fn clr_rx_under(&self) -> &ClrRxUnder
0x44 - DesignWare I2C Clear RX Underrun
Sourcepub fn clr_rx_over(&self) -> &ClrRxOver
pub fn clr_rx_over(&self) -> &ClrRxOver
0x48 - DesignWare I2C Clear RX Overrun
Sourcepub fn clr_tx_over(&self) -> &ClrTxOver
pub fn clr_tx_over(&self) -> &ClrTxOver
0x4c - DesignWare I2C Clear TX Overrun
Sourcepub fn clr_rd_req(&self) -> &ClrRdReq
pub fn clr_rd_req(&self) -> &ClrRdReq
0x50 - DesignWare I2C Clear Read Request
Sourcepub fn clr_tx_abrt(&self) -> &ClrTxAbrt
pub fn clr_tx_abrt(&self) -> &ClrTxAbrt
0x54 - DesignWare I2C Clear TX Abort
Sourcepub fn clr_rx_done(&self) -> &ClrRxDone
pub fn clr_rx_done(&self) -> &ClrRxDone
0x58 - DesignWare I2C Clear RX Done
Sourcepub fn clr_activity(&self) -> &ClrActivity
pub fn clr_activity(&self) -> &ClrActivity
0x5c - DesignWare I2C Clear Activity
Sourcepub fn clr_stop_det(&self) -> &ClrStopDet
pub fn clr_stop_det(&self) -> &ClrStopDet
0x60 - DesignWare I2C Clear Stop DET
Sourcepub fn clr_start_det(&self) -> &ClrStartDet
pub fn clr_start_det(&self) -> &ClrStartDet
0x64 - DesignWare I2C Clear Start DET
Sourcepub fn clr_gen_call(&self) -> &ClrGenCall
pub fn clr_gen_call(&self) -> &ClrGenCall
0x68 - DesignWare I2C Clear General Call
Sourcepub fn tx_abrt_source(&self) -> &TxAbrtSource
pub fn tx_abrt_source(&self) -> &TxAbrtSource
0x80 - DesignWare I2C TX Abort Source
Sourcepub fn enable_status(&self) -> &EnableStatus
pub fn enable_status(&self) -> &EnableStatus
0x9c - DesignWare I2C Enable Status
Sourcepub fn clr_restart_det(&self) -> &ClrRestartDet
pub fn clr_restart_det(&self) -> &ClrRestartDet
0xa8 - DesignWare I2C Clear Restart DET
Sourcepub fn comp_param_1(&self) -> &CompParam1
pub fn comp_param_1(&self) -> &CompParam1
0xf4 - DesignWare I2C Compatibility Parameter 1
Sourcepub fn comp_version(&self) -> &CompVersion
pub fn comp_version(&self) -> &CompVersion
0xf8 - DesignWare I2C Compatibility Version