#[repr(C)]
pub struct RegisterBlock { pub cfg: CFG, pub dly: DLY, pub stat: STAT, pub intenset: INTENSET, pub intenclr: INTENCLR, pub rxdat: RXDAT, pub txdatctl: TXDATCTL, pub txdat: TXDAT, pub txctl: TXCTL, pub div: DIV, pub intstat: INTSTAT, }
Expand description

Register block

Fields§

§cfg: CFG

0x00 - SPI Configuration register

§dly: DLY

0x04 - SPI Delay register

§stat: STAT

0x08 - SPI Status. Some status flags can be cleared by writing a 1 to that bit position

§intenset: INTENSET

0x0c - SPI Interrupt Enable read and Set. A complete value may be read from this register. Writing a 1 to any implemented bit position causes that bit to be set.

§intenclr: INTENCLR

0x10 - SPI Interrupt Enable Clear. Writing a 1 to any implemented bit position causes the corresponding bit in INTENSET to be cleared.

§rxdat: RXDAT

0x14 - SPI Receive Data

§txdatctl: TXDATCTL

0x18 - SPI Transmit Data with Control

§txdat: TXDAT

0x1c - SPI Transmit Data.

§txctl: TXCTL

0x20 - SPI Transmit Control

§div: DIV

0x24 - SPI clock Divider

§intstat: INTSTAT

0x28 - SPI Interrupt Status

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.