Skip to main content

RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn top_ctrl(&self) -> &TopCtrl

0x00 - Top Control Register

Source

pub const fn fifo_ctrl(&self) -> &FifoCtrl

0x04 - FIFO Control Register

Source

pub const fn inte(&self) -> &Inte

0x08 - Interrupt Enable Register

Source

pub const fn to(&self) -> &To

0x0c - SPI Time Out Register

Source

pub const fn data(&self) -> &Data

0x10 - SPI DATA Register

Source

pub const fn status(&self) -> &Status

0x14 - Status Register

Source

pub const fn rsvd3(&self) -> &Rsvd3

0x18 -

Source

pub const fn rwot_ctrl(&self) -> &RwotCtrl

0x24 - SSP RWOT Control Register

Source

pub const fn rwot_ccm(&self) -> &RwotCcm

0x28 - SSP RWOT Counter Cycles Match Register

Source

pub const fn rwot_cvwrn(&self) -> &RwotCvwrn

0x2c - SSP RWOT Counter Value Write for Red Request Register

Source

pub const fn rsvd2(&self) -> &Rsvd2

0x30 -

Source

pub const fn clk_ctrl(&self) -> &ClkCtrl

0x3c - SSP CLK Control Register

Source

pub const fn rsvd1(&self) -> &Rsvd1

0x40 -

Source

pub const fn triwire_ctrl(&self) -> &TriwireCtrl

0x54 - SSP Three Wire Mode Control Register

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>,

Source§

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>,

Source§

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.