[][src]Struct lpc11xx::spi0::RegisterBlock

#[repr(C)]
pub struct RegisterBlock {
    pub cr0: CR0,
    pub cr1: CR1,
    pub dr: DR,
    pub sr: SR,
    pub cpsr: CPSR,
    pub imsc: IMSC,
    pub ris: RIS,
    pub mis: MIS,
    pub icr: ICR,
}

Register block

Fields

cr0: CR0

0x00 - Control Register 0. Selects the serial clock rate, bus type, and data size

cr1: CR1

0x04 - Control Register 1. Selects master/slave and other modes

dr: DR

0x08 - Data Register. Writes fill the transmit FIFO, and reads empty the receive FIFO

sr: SR

0x0c - Status Register

cpsr: CPSR

0x10 - Clock Prescale Register

imsc: IMSC

0x14 - Interrupt Mask Set and Clear Register

ris: RIS

0x18 - Raw Interrupt Status Register

mis: MIS

0x1c - Masked Interrupt Status Register

icr: ICR

0x20 - SSPICR Interrupt Clear Register

Auto Trait Implementations

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