I3C2

Struct I3C2 

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

Improved inter-integrated circuit

Implementations§

Source§

impl I3C2

Source

pub const PTR: *const RegisterBlock = {0x44003000 as *const stm32h503::i3c1::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 i3c_cr_alternate(&self) -> &I3C_CR_ALTERNATE

0x00 - I3C message control register alternate

Source

pub fn i3c_cr(&self) -> &I3C_CR

0x00 - I3C message control register

Source

pub fn i3c_cfgr(&self) -> &I3C_CFGR

0x04 - I3C configuration register

Source

pub fn i3c_rdr(&self) -> &I3C_RDR

0x10 - I3C receive data byte register

Source

pub fn i3c_rdwr(&self) -> &I3C_RDWR

0x14 - I3C receive data word register

Source

pub fn i3c_tdr(&self) -> &I3C_TDR

0x18 - I3C transmit data byte register

Source

pub fn i3c_tdwr(&self) -> &I3C_TDWR

0x1c - I3C transmit data word register

Source

pub fn i3c_ibidr(&self) -> &I3C_IBIDR

0x20 - I3C IBI payload data register

Source

pub fn i3c_tgttdr(&self) -> &I3C_TGTTDR

0x24 - I3C target transmit configuration register

Source

pub fn i3c_sr(&self) -> &I3C_SR

0x30 - I3C status register

Source

pub fn i3c_ser(&self) -> &I3C_SER

0x34 - I3C status error register

Source

pub fn i3c_rmr(&self) -> &I3C_RMR

0x40 - I3C received message register

Source

pub fn i3c_evr(&self) -> &I3C_EVR

0x50 - I3C event register

Source

pub fn i3c_ier(&self) -> &I3C_IER

0x54 - I3C interrupt enable register

Source

pub fn i3c_cevr(&self) -> &I3C_CEVR

0x58 - I3C clear event register

Source

pub fn i3c_devr0(&self) -> &I3C_DEVR0

0x60 - I3C own device characteristics register

Source

pub fn i3c_devr1(&self) -> &I3C_DEVR1

0x64 - I3C device 1 characteristics register

Source

pub fn i3c_devr2(&self) -> &I3C_DEVR2

0x68 - I3C device 2 characteristics register

Source

pub fn i3c_devr3(&self) -> &I3C_DEVR3

0x6c - I3C device 3 characteristics register

Source

pub fn i3c_devr4(&self) -> &I3C_DEVR4

0x70 - I3C device 4 characteristics register

Source

pub fn i3c_maxrlr(&self) -> &I3C_MAXRLR

0x90 - I3C maximum read length register

Source

pub fn i3c_maxwlr(&self) -> &I3C_MAXWLR

0x94 - I3C maximum write length register

Source

pub fn i3c_timingr0(&self) -> &I3C_TIMINGR0

0xa0 - I3C timing register 0

Source

pub fn i3c_timingr1(&self) -> &I3C_TIMINGR1

0xa4 - I3C timing register 1

Source

pub fn i3c_timingr2(&self) -> &I3C_TIMINGR2

0xa8 - I3C timing register 2

Source

pub fn i3c_bcr(&self) -> &I3C_BCR

0xc0 - I3C bus characteristics register

Source

pub fn i3c_dcr(&self) -> &I3C_DCR

0xc4 - I3C device characteristics register

Source

pub fn i3c_getcapr(&self) -> &I3C_GETCAPR

0xc8 - I3C get capability register

Source

pub fn i3c_crcapr(&self) -> &I3C_CRCAPR

0xcc - I3C controller-role capability register

Source

pub fn i3c_getmxdsr(&self) -> &I3C_GETMXDSR

0xd0 - I3C get capability register

Source

pub fn i3c_epidr(&self) -> &I3C_EPIDR

0xd4 - I3C extended provisioned ID register

Trait Implementations§

Source§

impl Debug for I3C2

Source§

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

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

impl Deref for I3C2

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl Send for I3C2

Auto Trait Implementations§

§

impl Freeze for I3C2

§

impl RefUnwindSafe for I3C2

§

impl !Sync for I3C2

§

impl Unpin for I3C2

§

impl UnwindSafe for I3C2

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.