[][src]Struct atsams70n20::twihs0::twihs_cr::W

pub struct W { /* fields omitted */ }

Value to write to the register

Methods

impl W[src]

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self[src]

Writes raw bits to the register

pub fn start(&mut self) -> _STARTW[src]

Bit 0 - Send a START Condition

pub fn stop(&mut self) -> _STOPW[src]

Bit 1 - Send a STOP Condition

pub fn msen(&mut self) -> _MSENW[src]

Bit 2 - TWIHS Master Mode Enabled

pub fn msdis(&mut self) -> _MSDISW[src]

Bit 3 - TWIHS Master Mode Disabled

pub fn sven(&mut self) -> _SVENW[src]

Bit 4 - TWIHS Slave Mode Enabled

pub fn svdis(&mut self) -> _SVDISW[src]

Bit 5 - TWIHS Slave Mode Disabled

pub fn quick(&mut self) -> _QUICKW[src]

Bit 6 - SMBus Quick Command

pub fn swrst(&mut self) -> _SWRSTW[src]

Bit 7 - Software Reset

pub fn hsen(&mut self) -> _HSENW[src]

Bit 8 - TWIHS High-Speed Mode Enabled

pub fn hsdis(&mut self) -> _HSDISW[src]

Bit 9 - TWIHS High-Speed Mode Disabled

pub fn smben(&mut self) -> _SMBENW[src]

Bit 10 - SMBus Mode Enabled

pub fn smbdis(&mut self) -> _SMBDISW[src]

Bit 11 - SMBus Mode Disabled

pub fn pecen(&mut self) -> _PECENW[src]

Bit 12 - Packet Error Checking Enable

pub fn pecdis(&mut self) -> _PECDISW[src]

Bit 13 - Packet Error Checking Disable

pub fn pecrq(&mut self) -> _PECRQW[src]

Bit 14 - PEC Request

pub fn clear(&mut self) -> _CLEARW[src]

Bit 15 - Bus CLEAR Command

pub fn acmen(&mut self) -> _ACMENW[src]

Bit 16 - Alternative Command Mode Enable

pub fn acmdis(&mut self) -> _ACMDISW[src]

Bit 17 - Alternative Command Mode Disable

pub fn thrclr(&mut self) -> _THRCLRW[src]

Bit 24 - Transmit Holding Register Clear

pub fn lockclr(&mut self) -> _LOCKCLRW[src]

Bit 26 - Lock Clear

pub fn fifoen(&mut self) -> _FIFOENW[src]

Bit 28 - FIFO Enable

pub fn fifodis(&mut self) -> _FIFODISW[src]

Bit 29 - FIFO Disable

Auto Trait Implementations

impl Unpin for W

impl Sync for W

impl Send for W

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self