Struct I2c1

Source
pub struct I2c1 { /* private fields */ }
Expand description

Synopsys DesignWare APB I2C: i2c1

Implementations§

Source§

impl I2c1

Source

pub const PTR: *const RegisterBlock = {0x10040000 as *const i2c0::RegisterBlock}

Pointer to the register block

Source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Source

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>§

Source

pub fn i2c_con(&self) -> &I2cCon

0x00 - DesignWare I2C CON

Source

pub fn tar(&self) -> &Tar

0x04 - DesignWare I2C TAR

Source

pub fn sar(&self) -> &Sar

0x08 - DesignWare I2C SAR

Source

pub fn data_cmd(&self) -> &DataCmd

0x10 - DesignWare I2C Data Command

Source

pub fn ss_scl_hcnt(&self) -> &SsSclHcnt

0x14 - DesignWare I2C SS SCL HCNT

Source

pub fn ss_scl_lcnt(&self) -> &SsSclLcnt

0x18 - DesignWare I2C SS SCL LCNT

Source

pub fn fs_scl_hcnt(&self) -> &FsSclHcnt

0x1c - DesignWare I2C FS SCL HCNT

Source

pub fn fs_scl_lcnt(&self) -> &FsSclLcnt

0x20 - DesignWare I2C FS SCL LCNT

Source

pub fn hs_scl_hcnt(&self) -> &HsSclHcnt

0x24 - DesignWare I2C HS SCL HCNT

Source

pub fn hs_scl_lcnt(&self) -> &HsSclLcnt

0x28 - DesignWare I2C HS SCL LCNT

Source

pub fn intr_stat(&self) -> &IntrStat

0x2c - DesignWare I2C Interrupt Status

Source

pub fn intr_mask(&self) -> &IntrMask

0x30 - DesignWare I2C Interrupt Mask

Source

pub fn raw_intr_stat(&self) -> &RawIntrStat

0x34 - DesignWare I2C Raw Interrupt Status

Source

pub fn rx_tl(&self) -> &RxTl

0x38 - DesignWare I2C RX TL

Source

pub fn tx_tl(&self) -> &TxTl

0x3c - DesignWare I2C TX TL

Source

pub fn clr_intr(&self) -> &ClrIntr

0x40 - DesignWare I2C Clear Interrrupt

Source

pub fn clr_rx_under(&self) -> &ClrRxUnder

0x44 - DesignWare I2C Clear RX Underrun

Source

pub fn clr_rx_over(&self) -> &ClrRxOver

0x48 - DesignWare I2C Clear RX Overrun

Source

pub fn clr_tx_over(&self) -> &ClrTxOver

0x4c - DesignWare I2C Clear TX Overrun

Source

pub fn clr_rd_req(&self) -> &ClrRdReq

0x50 - DesignWare I2C Clear Read Request

Source

pub fn clr_tx_abrt(&self) -> &ClrTxAbrt

0x54 - DesignWare I2C Clear TX Abort

Source

pub fn clr_rx_done(&self) -> &ClrRxDone

0x58 - DesignWare I2C Clear RX Done

Source

pub fn clr_activity(&self) -> &ClrActivity

0x5c - DesignWare I2C Clear Activity

Source

pub fn clr_stop_det(&self) -> &ClrStopDet

0x60 - DesignWare I2C Clear Stop DET

Source

pub fn clr_start_det(&self) -> &ClrStartDet

0x64 - DesignWare I2C Clear Start DET

Source

pub fn clr_gen_call(&self) -> &ClrGenCall

0x68 - DesignWare I2C Clear General Call

Source

pub fn enable(&self) -> &Enable

0x6c - DesignWare I2C Enable

Source

pub fn status(&self) -> &Status

0x70 - DesignWare I2C Status

Source

pub fn txflr(&self) -> &Txflr

0x74 - DesignWare I2C TX Failure

Source

pub fn rxflr(&self) -> &Rxflr

0x78 - DesignWare I2C RX Failure

Source

pub fn sda_hold(&self) -> &SdaHold

0x7c - DesignWare I2C SDA Hold

Source

pub fn tx_abrt_source(&self) -> &TxAbrtSource

0x80 - DesignWare I2C TX Abort Source

Source

pub fn enable_status(&self) -> &EnableStatus

0x9c - DesignWare I2C Enable Status

Source

pub fn clr_restart_det(&self) -> &ClrRestartDet

0xa8 - DesignWare I2C Clear Restart DET

Source

pub fn comp_param_1(&self) -> &CompParam1

0xf4 - DesignWare I2C Compatibility Parameter 1

Source

pub fn comp_version(&self) -> &CompVersion

0xf8 - DesignWare I2C Compatibility Version

Source

pub fn comp_type(&self) -> &CompType

0xfc - DesignWare I2C Compatibility Type

Trait Implementations§

Source§

impl Debug for I2c1

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for I2c1

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Send for I2c1

Auto Trait Implementations§

§

impl Freeze for I2c1

§

impl RefUnwindSafe for I2c1

§

impl !Sync for I2c1

§

impl Unpin for I2c1

§

impl UnwindSafe for I2c1

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.