Struct qn908x_rs::spi0::RegisterBlock [] [src]

#[repr(C)]
pub struct RegisterBlock { pub cfg: CFG, pub dly: DLY, pub stat: STAT, pub intenset: INTENSET, pub intenclr: INTENCLR, pub div: DIV, pub intstat: INTSTAT, pub fifocfg: FIFOCFG, pub fifostat: FIFOSTAT, pub fifotrig: FIFOTRIG, pub fifointenset: FIFOINTENSET, pub fifointenclr: FIFOINTENCLR, pub fifointstat: FIFOINTSTAT, pub fifowr: FIFOWR, pub fiford: FIFORD, pub fifordnopop: FIFORDNOPOP, pub id: ID, // some fields omitted }

Register block

Fields

0x400 - SPI Configuration register

0x404 - SPI Delay register

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

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

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

0x424 - SPI clock Divider

0x428 - SPI Interrupt Status

0xe00 - FIFO configuration and enable register.

0xe04 - FIFO status register.

0xe08 - FIFO trigger settings for interrupt and DMA request.

0xe10 - FIFO interrupt enable set (enable) and read register.

0xe14 - FIFO interrupt enable clear (disable) and read register.

0xe18 - FIFO interrupt status register.

0xe20 - FIFO write data.

0xe30 - FIFO read data.

0xe40 - FIFO data read with no FIFO pop.

0xffc - SPI module Identification. This value appears in the shared Flexcomm peripheral ID register when SPI is selected.

Trait Implementations

Auto Trait Implementations

impl Send for RegisterBlock

impl !Sync for RegisterBlock