W

Struct W 

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

Value to write to the register

Implementations§

Source§

impl W

Source

pub fn reset_value() -> W

Reset value of the register

Source

pub unsafe fn bits(&mut self, bits: u32) -> &mut W

Writes raw bits to the register

Source

pub fn pe(&mut self) -> _PEW<'_>

Bit 0 - Peripheral enable

Source

pub fn txie(&mut self) -> _TXIEW<'_>

Bit 1 - TX Interrupt enable

Source

pub fn rxie(&mut self) -> _RXIEW<'_>

Bit 2 - RX Interrupt enable

Source

pub fn addrie(&mut self) -> _ADDRIEW<'_>

Bit 3 - Address match interrupt enable (slave only)

Source

pub fn nackie(&mut self) -> _NACKIEW<'_>

Bit 4 - Not acknowledge received interrupt enable

Source

pub fn stopie(&mut self) -> _STOPIEW<'_>

Bit 5 - STOP detection Interrupt enable

Source

pub fn tcie(&mut self) -> _TCIEW<'_>

Bit 6 - Transfer Complete interrupt enable

Source

pub fn errie(&mut self) -> _ERRIEW<'_>

Bit 7 - Error interrupts enable

Source

pub fn dnf(&mut self) -> _DNFW<'_>

Bits 8:11 - Digital noise filter

Source

pub fn anfoff(&mut self) -> _ANFOFFW<'_>

Bit 12 - Analog noise filter OFF

Source

pub fn swrst(&mut self) -> _SWRSTW<'_>

Bit 13 - Software reset

Source

pub fn txdmaen(&mut self) -> _TXDMAENW<'_>

Bit 14 - DMA transmission requests enable

Source

pub fn rxdmaen(&mut self) -> _RXDMAENW<'_>

Bit 15 - DMA reception requests enable

Source

pub fn sbc(&mut self) -> _SBCW<'_>

Bit 16 - Slave byte control

Source

pub fn nostretch(&mut self) -> _NOSTRETCHW<'_>

Bit 17 - Clock stretching disable

Source

pub fn wupen(&mut self) -> _WUPENW<'_>

Bit 18 - Wakeup from STOP enable

Source

pub fn gcen(&mut self) -> _GCENW<'_>

Bit 19 - General call enable

Source

pub fn smbhen(&mut self) -> _SMBHENW<'_>

Bit 20 - SMBus Host address enable

Source

pub fn smbden(&mut self) -> _SMBDENW<'_>

Bit 21 - SMBus Device Default address enable

Source

pub fn alerten(&mut self) -> _ALERTENW<'_>

Bit 22 - SMBUS alert enable

Source

pub fn pecen(&mut self) -> _PECENW<'_>

Bit 23 - PEC enable

Auto Trait Implementations§

§

impl Freeze for W

§

impl RefUnwindSafe for W

§

impl Send for W

§

impl Sync for W

§

impl Unpin for W

§

impl UnwindSafe for W

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> Same for T

Source§

type Output = T

Should always be Self
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.