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

pub struct R { /* fields omitted */ }

Value read from the register

Methods

impl R[src]

pub fn bits(&self) -> u32[src]

Value of the register as raw bits

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

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

pub fn cpha(&self) -> CPHAR[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(&self) -> CPOLR[src]

Bit 4 - Clock polarity control.

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

Bit 5 - Master mode select.

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

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

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

Bit 7 - Serial peripheral interrupt enable.

pub fn bits_(&self) -> BITSR[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 R

impl Sync for R

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]