Struct R

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

Value read from the register

Implementations§

Source§

impl R

Source

pub fn bits(&self) -> u32

Value of the register as raw bits

Source

pub fn pe(&self) -> PeR

Bit 0 - Peripheral enable

Source

pub fn txie(&self) -> TxieR

Bit 1 - TX Interrupt enable

Source

pub fn rxie(&self) -> RxieR

Bit 2 - RX Interrupt enable

Source

pub fn addrie(&self) -> AddrieR

Bit 3 - Address match interrupt enable (slave only)

Source

pub fn nackie(&self) -> NackieR

Bit 4 - Not acknowledge received interrupt enable

Source

pub fn stopie(&self) -> StopieR

Bit 5 - STOP detection Interrupt enable

Source

pub fn tcie(&self) -> TcieR

Bit 6 - Transfer Complete interrupt enable

Source

pub fn errie(&self) -> ErrieR

Bit 7 - Error interrupts enable

Source

pub fn dnf(&self) -> DnfR

Bits 8:11 - Digital noise filter

Source

pub fn anfoff(&self) -> AnfoffR

Bit 12 - Analog noise filter OFF

Source

pub fn txdmaen(&self) -> TxdmaenR

Bit 14 - DMA transmission requests enable

Source

pub fn rxdmaen(&self) -> RxdmaenR

Bit 15 - DMA reception requests enable

Source

pub fn sbc(&self) -> SbcR

Bit 16 - Slave byte control

Source

pub fn nostretch(&self) -> NostretchR

Bit 17 - Clock stretching disable

Source

pub fn wupen(&self) -> WupenR

Bit 18 - Wakeup from STOP enable

Source

pub fn gcen(&self) -> GcenR

Bit 19 - General call enable

Source

pub fn smbhen(&self) -> SmbhenR

Bit 20 - SMBus Host address enable

Source

pub fn smbden(&self) -> SmbdenR

Bit 21 - SMBus Device Default address enable

Source

pub fn alerten(&self) -> AlertenR

Bit 22 - SMBUS alert enable

Source

pub fn pecen(&self) -> PecenR

Bit 23 - PEC enable

Auto Trait Implementations§

§

impl Freeze for R

§

impl RefUnwindSafe for R

§

impl Send for R

§

impl Sync for R

§

impl Unpin for R

§

impl UnwindSafe for R

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