RegisterBlock

Struct RegisterBlock 

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

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn verid(&self) -> &Verid

0x00 - Version ID

Source

pub const fn param(&self) -> &Param

0x04 - Parameter

Source

pub const fn cr(&self) -> &Cr

0x10 - Control

Source

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

0x14 - Status

Source

pub const fn ier(&self) -> &Ier

0x18 - Interrupt Enable

Source

pub const fn der(&self) -> &Der

0x1c - DMA Enable

Source

pub const fn cfgr0(&self) -> &Cfgr0

0x20 - Configuration 0

Source

pub const fn cfgr1(&self) -> &Cfgr1

0x24 - Configuration 1

Source

pub const fn dmr0(&self) -> &Dmr0

0x30 - Data Match 0

Source

pub const fn dmr1(&self) -> &Dmr1

0x34 - Data Match 1

Source

pub const fn ccr(&self) -> &Ccr

0x40 - Clock Configuration

Source

pub const fn ccr1(&self) -> &Ccr1

0x44 - Clock Configuration 1

Source

pub const fn fcr(&self) -> &Fcr

0x58 - FIFO Control

Source

pub const fn fsr(&self) -> &Fsr

0x5c - FIFO Status

Source

pub const fn tcr(&self) -> &Tcr

0x60 - Transmit Command

Source

pub const fn tdr(&self) -> &Tdr

0x64 - Transmit Data

Source

pub const fn rsr(&self) -> &Rsr

0x70 - Receive Status

Source

pub const fn rdr(&self) -> &Rdr

0x74 - Receive Data

Source

pub const fn rdror(&self) -> &Rdror

0x78 - Receive Data Read Only

Source

pub const fn tcbr(&self) -> &Tcbr

0x3fc - Transmit Command Burst

Source

pub const fn tdbr(&self, n: usize) -> &Tdbr

0x400..0x600 - Transmit Data Burst

Source

pub fn tdbr_iter(&self) -> impl Iterator<Item = &Tdbr>

Iterator for array of: 0x400..0x600 - Transmit Data Burst

Source

pub const fn rdbr(&self, n: usize) -> &Rdbr

0x600..0x800 - Receive Data Burst

Source

pub fn rdbr_iter(&self) -> impl Iterator<Item = &Rdbr>

Iterator for array of: 0x600..0x800 - Receive Data Burst

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.