[][src]Struct lpc176x_5x::spi::cr::W

pub struct W { /* fields omitted */ }

Value to write to the register

Methods

impl W[src]

pub fn reset_value() -> W[src]

Reset value of the register

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

Writes raw bits to the register

pub fn bitenable(&mut self) -> _BITENABLEW[src]

Bit 2 - The SPI controller sends and receives 8 bits of data per transfer.

pub fn cpha(&mut self) -> _CPHAW[src]

Bit 3 - Clock phase control determines the relationship between the data and the clock on SPI transfers, and controls when a slave transfer is defined as starting and ending.

pub fn cpol(&mut self) -> _CPOLW[src]

Bit 4 - Clock polarity control.

pub fn mstr(&mut self) -> _MSTRW[src]

Bit 5 - Master mode select.

pub fn lsbf(&mut self) -> _LSBFW[src]

Bit 6 - LSB First controls which direction each byte is shifted when transferred.

pub fn spie(&mut self) -> _SPIEW[src]

Bit 7 - Serial peripheral interrupt enable.

pub fn bits_(&mut self) -> _BITSW[src]

Bits 8:11 - When bit 2 of this register is 1, this field controls the number of bits per transfer:

Auto Trait Implementations

impl Send for W

impl Sync for W

Blanket Implementations

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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