[][src]Struct nrf51::spis1::RegisterBlock

#[repr(C)]pub struct RegisterBlock {
    pub tasks_acquire: TASKS_ACQUIRE,
    pub tasks_release: TASKS_RELEASE,
    pub events_end: EVENTS_END,
    pub events_endrx: EVENTS_ENDRX,
    pub events_acquired: EVENTS_ACQUIRED,
    pub shorts: SHORTS,
    pub intenset: INTENSET,
    pub intenclr: INTENCLR,
    pub semstat: SEMSTAT,
    pub status: STATUS,
    pub enable: ENABLE,
    pub pselsck: PSELSCK,
    pub pselmiso: PSELMISO,
    pub pselmosi: PSELMOSI,
    pub pselcsn: PSELCSN,
    pub rxdptr: RXDPTR,
    pub maxrx: MAXRX,
    pub amountrx: AMOUNTRX,
    pub txdptr: TXDPTR,
    pub maxtx: MAXTX,
    pub amounttx: AMOUNTTX,
    pub config: CONFIG,
    pub def: DEF,
    pub orc: ORC,
    pub power: POWER,
    // some fields omitted
}

Register block

Fields

tasks_acquire: TASKS_ACQUIRE

0x24 - Acquire SPI semaphore.

tasks_release: TASKS_RELEASE

0x28 - Release SPI semaphore.

events_end: EVENTS_END

0x104 - Granted transaction completed.

events_endrx: EVENTS_ENDRX

0x110 - End of RXD buffer reached

events_acquired: EVENTS_ACQUIRED

0x128 - Semaphore acquired.

shorts: SHORTS

0x200 - Shortcuts for SPIS.

intenset: INTENSET

0x304 - Interrupt enable set register.

intenclr: INTENCLR

0x308 - Interrupt enable clear register.

semstat: SEMSTAT

0x400 - Semaphore status.

status: STATUS

0x440 - Status from last transaction.

enable: ENABLE

0x500 - Enable SPIS.

pselsck: PSELSCK

0x508 - Pin select for SCK.

pselmiso: PSELMISO

0x50c - Pin select for MISO.

pselmosi: PSELMOSI

0x510 - Pin select for MOSI.

pselcsn: PSELCSN

0x514 - Pin select for CSN.

rxdptr: RXDPTR

0x534 - RX data pointer.

maxrx: MAXRX

0x538 - Maximum number of bytes in the receive buffer.

amountrx: AMOUNTRX

0x53c - Number of bytes received in last granted transaction.

txdptr: TXDPTR

0x544 - TX data pointer.

maxtx: MAXTX

0x548 - Maximum number of bytes in the transmit buffer.

amounttx: AMOUNTTX

0x54c - Number of bytes transmitted in last granted transaction.

config: CONFIG

0x554 - Configuration register.

def: DEF

0x55c - Default character.

orc: ORC

0x5c0 - Over-read character.

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.