[][src]Struct nrf51::spi0::RegisterBlock

#[repr(C)]pub struct RegisterBlock {
    pub events_ready: EVENTS_READY,
    pub intenset: INTENSET,
    pub intenclr: INTENCLR,
    pub enable: ENABLE,
    pub pselsck: PSELSCK,
    pub pselmosi: PSELMOSI,
    pub pselmiso: PSELMISO,
    pub rxd: RXD,
    pub txd: TXD,
    pub frequency: FREQUENCY,
    pub config: CONFIG,
    pub power: POWER,
    // some fields omitted
}

Register block

Fields

events_ready: EVENTS_READY

0x108 - TXD byte sent and RXD byte received.

intenset: INTENSET

0x304 - Interrupt enable set register.

intenclr: INTENCLR

0x308 - Interrupt enable clear register.

enable: ENABLE

0x500 - Enable SPI.

pselsck: PSELSCK

0x508 - Pin select for SCK.

pselmosi: PSELMOSI

0x50c - Pin select for MOSI.

pselmiso: PSELMISO

0x510 - Pin select for MISO.

rxd: RXD

0x518 - RX data.

txd: TXD

0x51c - TX data.

frequency: FREQUENCY

0x524 - SPI frequency

config: CONFIG

0x554 - Configuration register.

power: POWER

0xffc - Peripheral power control.

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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> 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.