[−][src]Struct lpc176x_5x::spi::cr::R
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
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,