#[repr(C)]
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

source§

impl RegisterBlock

source

pub const fn ctrlr0(&self) -> &CTRLR0

0x00 - Control register 0

source

pub const fn ctrlr1(&self) -> &CTRLR1

0x04 - Master Control register 1

source

pub const fn ssienr(&self) -> &SSIENR

0x08 - SSI Enable

source

pub const fn mwcr(&self) -> &MWCR

0x0c - Microwire Control

source

pub const fn ser(&self) -> &SER

0x10 - Slave enable

source

pub const fn baudr(&self) -> &BAUDR

0x14 - Baud rate

source

pub const fn txftlr(&self) -> &TXFTLR

0x18 - TX FIFO threshold level

source

pub const fn rxftlr(&self) -> &RXFTLR

0x1c - RX FIFO threshold level

source

pub const fn txflr(&self) -> &TXFLR

0x20 - TX FIFO level

source

pub const fn rxflr(&self) -> &RXFLR

0x24 - RX FIFO level

source

pub const fn sr(&self) -> &SR

0x28 - Status register

source

pub const fn imr(&self) -> &IMR

0x2c - Interrupt mask

source

pub const fn isr(&self) -> &ISR

0x30 - Interrupt status

source

pub const fn risr(&self) -> &RISR

0x34 - Raw interrupt status

source

pub const fn txoicr(&self) -> &TXOICR

0x38 - TX FIFO overflow interrupt clear

source

pub const fn rxoicr(&self) -> &RXOICR

0x3c - RX FIFO overflow interrupt clear

source

pub const fn rxuicr(&self) -> &RXUICR

0x40 - RX FIFO underflow interrupt clear

source

pub const fn msticr(&self) -> &MSTICR

0x44 - Multi-master interrupt clear

source

pub const fn icr(&self) -> &ICR

0x48 - Interrupt clear

source

pub const fn dmacr(&self) -> &DMACR

0x4c - DMA control

source

pub const fn dmatdlr(&self) -> &DMATDLR

0x50 - DMA TX data level

source

pub const fn dmardlr(&self) -> &DMARDLR

0x54 - DMA RX data level

source

pub const fn idr(&self) -> &IDR

0x58 - Identification register

source

pub const fn ssi_version_id(&self) -> &SSI_VERSION_ID

0x5c - Version ID

source

pub const fn dr0(&self) -> &DR0

0x60 - Data Register 0 (of 36)

source

pub const fn rx_sample_dly(&self) -> &RX_SAMPLE_DLY

0xf0 - RX sample delay

source

pub const fn spi_ctrlr0(&self) -> &SPI_CTRLR0

0xf4 - SPI control

source

pub const fn txd_drive_edge(&self) -> &TXD_DRIVE_EDGE

0xf8 - TX drive edge

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.