[][src]Struct ADuCM302x::spi0::RegisterBlock

#[repr(C)]pub struct RegisterBlock {
    pub stat: STAT,
    pub rx: RX,
    pub tx: TX,
    pub div: DIV,
    pub ctl: CTL,
    pub ien: IEN,
    pub cnt: CNT,
    pub dma: DMA,
    pub fifo_stat: FIFO_STAT,
    pub rd_ctl: RD_CTL,
    pub flow_ctl: FLOW_CTL,
    pub wait_tmr: WAIT_TMR,
    pub cs_ctl: CS_CTL,
    pub cs_override: CS_OVERRIDE,
    // some fields omitted
}

Register block

Fields

stat: STAT

0x00 - Status

rx: RX

0x04 - Receive

tx: TX

0x08 - Transmit

div: DIV

0x0c - SPI Baud Rate Selection

ctl: CTL

0x10 - SPI Configuration

ien: IEN

0x14 - SPI Interrupts Enable

cnt: CNT

0x18 - Transfer Byte Count

dma: DMA

0x1c - SPI DMA Enable

fifo_stat: FIFO_STAT

0x20 - FIFO Status

rd_ctl: RD_CTL

0x24 - Read Control

flow_ctl: FLOW_CTL

0x28 - Flow Control

wait_tmr: WAIT_TMR

0x2c - Wait Timer for Flow Control

cs_ctl: CS_CTL

0x30 - Chip Select Control for Multi-slave Connections

cs_override: CS_OVERRIDE

0x34 - Chip Select Override

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.