[−][src]Struct lpc176x_5x::spi::cr::W
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
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,