Struct IsrR

Source
#[repr(C)]
pub struct IsrR { /* private fields */ }

Implementations§

Source§

impl IsrR

Source

pub fn addcode(&self) -> u8

Bits 17:23 - Address match code (Slave mode)

Source

pub fn dir(&self) -> bool

Bit 16 - Transfer direction (Slave mode)

Source

pub fn busy(&self) -> bool

Bit 15 - Bus busy

Source

pub fn alert(&self) -> bool

Bit 13 - SMBus alert

Source

pub fn timeout(&self) -> bool

Bit 12 - Timeout or t_low detection flag

Source

pub fn pecerr(&self) -> bool

Bit 11 - PEC Error in reception

Source

pub fn ovr(&self) -> bool

Bit 10 - Overrun/Underrun (slave mode)

Source

pub fn arlo(&self) -> bool

Bit 9 - Arbitration lost

Source

pub fn berr(&self) -> bool

Bit 8 - Bus error

Source

pub fn tcr(&self) -> bool

Bit 7 - Transfer Complete Reload

Source

pub fn tc(&self) -> bool

Bit 6 - Transfer Complete (master mode)

Source

pub fn stopf(&self) -> bool

Bit 5 - Stop detection flag

Source

pub fn nackf(&self) -> bool

Bit 4 - Not acknowledge received flag

Source

pub fn addr(&self) -> bool

Bit 3 - Address matched (slave mode)

Source

pub fn rxne(&self) -> bool

Bit 2 - Receive data register not empty (receivers)

Source

pub fn txis(&self) -> bool

Bit 1 - Transmit interrupt status (transmitters)

Source

pub fn txe(&self) -> bool

Bit 0 - Transmit data register empty (transmitters)

Trait Implementations§

Source§

impl Clone for IsrR

Source§

fn clone(&self) -> IsrR

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 Copy for IsrR

Auto Trait Implementations§

§

impl Freeze for IsrR

§

impl RefUnwindSafe for IsrR

§

impl Send for IsrR

§

impl Sync for IsrR

§

impl Unpin for IsrR

§

impl UnwindSafe for IsrR

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.