nxp-pac

Crates

git

Versions

lpc55s69_cm33_core0

Flavors

I2c

Struct I2c 

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

I2C-bus interfaces

Implementations§

Source§

impl I2c

Source

pub const unsafe fn from_ptr(ptr: *mut ()) -> Self

Source

pub const fn as_ptr(&self) -> *mut ()

Source

pub const fn cfg(self) -> Reg<Cfg, RW>

Configuration for shared functions.

Source

pub const fn stat(self) -> Reg<Stat, RW>

Status register for Master, Slave, and Monitor functions.

Source

pub const fn intenset(self) -> Reg<Intenset, RW>

Interrupt Enable Set and read register.

Source

pub const fn intenclr(self) -> Reg<Intenclr, W>

Interrupt Enable Clear register.

Source

pub const fn timeout(self) -> Reg<Timeout, RW>

Time-out value register.

Source

pub const fn clkdiv(self) -> Reg<Clkdiv, RW>

Clock pre-divider for the entire I2C interface. This determines what time increments are used for the MSTTIME register, and controls some timing of the Slave function.

Source

pub const fn intstat(self) -> Reg<Intstat, R>

Interrupt Status register for Master, Slave, and Monitor functions.

Source

pub const fn mstctl(self) -> Reg<Mstctl, RW>

Master control register.

Source

pub const fn msttime(self) -> Reg<Msttime, RW>

Master timing configuration.

Source

pub const fn mstdat(self) -> Reg<Mstdat, RW>

Combined Master receiver and transmitter data register.

Source

pub const fn slvctl(self) -> Reg<Slvctl, RW>

Slave control register.

Source

pub const fn slvdat(self) -> Reg<Slvdat, RW>

Combined Slave receiver and transmitter data register.

Source

pub const fn slvadr0(self) -> Reg<Slvadr0, RW>

Slave address register.

Source

pub const fn slvadr1(self) -> Reg<Slvadr1, RW>

Slave address register.

Source

pub const fn slvadr2(self) -> Reg<Slvadr2, RW>

Slave address register.

Source

pub const fn slvadr3(self) -> Reg<Slvadr3, RW>

Slave address register.

Source

pub const fn slvqual0(self) -> Reg<Slvqual0, RW>

Slave Qualification for address 0.

Source

pub const fn monrxdat(self) -> Reg<Monrxdat, R>

Monitor receiver data register.

Source

pub const fn id(self) -> Reg<Id, R>

Peripheral identification register.

Trait Implementations§

Source§

impl Clone for I2c

Source§

fn clone(&self) -> I2c

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl PartialEq for I2c

Source§

fn eq(&self, other: &I2c) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for I2c

Source§

impl Eq for I2c

Source§

impl Send for I2c

Source§

impl StructuralPartialEq for I2c

Source§

impl Sync for I2c

Auto Trait Implementations§

§

impl Freeze for I2c

§

impl RefUnwindSafe for I2c

§

impl Unpin for I2c

§

impl UnwindSafe for I2c

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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<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.