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 cr(&self) -> &Cr

0x00 - Control Register

Source

pub const fn mr(&self) -> &Mr

0x04 - Mode Register

Source

pub const fn seqr1(&self) -> &Seqr1

0x08 - Channel Sequence Register 1

Source

pub const fn seqr2(&self) -> &Seqr2

0x0c - Channel Sequence Register 2

Source

pub const fn cher(&self) -> &Cher

0x10 - Channel Enable Register

Source

pub const fn chdr(&self) -> &Chdr

0x14 - Channel Disable Register

Source

pub const fn chsr(&self) -> &Chsr

0x18 - Channel Status Register

Source

pub const fn lcdr(&self) -> &Lcdr

0x20 - Last Converted Data Register

Source

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

0x24 - Interrupt Enable Register

Source

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

0x28 - Interrupt Disable Register

Source

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

0x2c - Interrupt Mask Register

Source

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

0x30 - Interrupt Status Register

Source

pub const fn over(&self) -> &Over

0x3c - Overrun Status Register

Source

pub const fn emr(&self) -> &Emr

0x40 - Extended Mode Register

Source

pub const fn cwr(&self) -> &Cwr

0x44 - Compare Window Register

Source

pub const fn cdr0(&self) -> &Cdr0

0x50 - Channel Data Register 0

Source

pub const fn cdr1(&self) -> &Cdr1

0x54 - Channel Data Register 1

Source

pub const fn cdr2(&self) -> &Cdr2

0x58 - Channel Data Register 2

Source

pub const fn cdr3(&self) -> &Cdr3

0x5c - Channel Data Register 3

Source

pub const fn cdr4(&self) -> &Cdr4

0x60 - Channel Data Register 4

Source

pub const fn cdr5(&self) -> &Cdr5

0x64 - Channel Data Register 5

Source

pub const fn cdr6(&self) -> &Cdr6

0x68 - Channel Data Register 6

Source

pub const fn cdr7(&self) -> &Cdr7

0x6c - Channel Data Register 7

Source

pub const fn cdr8(&self) -> &Cdr8

0x70 - Channel Data Register 8

Source

pub const fn cdr9(&self) -> &Cdr9

0x74 - Channel Data Register 9

Source

pub const fn cdr10(&self) -> &Cdr10

0x78 - Channel Data Register 10

Source

pub const fn cdr11(&self) -> &Cdr11

0x7c - Channel Data Register 11

Source

pub const fn cdr12(&self) -> &Cdr12

0x80 - Channel Data Register 12

Source

pub const fn cdr13(&self) -> &Cdr13

0x84 - Channel Data Register 13

Source

pub const fn cdr14(&self) -> &Cdr14

0x88 - Channel Data Register 14

Source

pub const fn cdr15(&self) -> &Cdr15

0x8c - Channel Data Register 15

Source

pub const fn wpmr(&self) -> &Wpmr

0xe4 - Write Protect Mode Register

Source

pub const fn wpsr(&self) -> &Wpsr

0xe8 - Write Protect Status Register

Source

pub const fn rpr(&self) -> &Rpr

0x100 - Receive Pointer Register

Source

pub const fn rcr(&self) -> &Rcr

0x104 - Receive Counter Register

Source

pub const fn rnpr(&self) -> &Rnpr

0x110 - Receive Next Pointer Register

Source

pub const fn rncr(&self) -> &Rncr

0x114 - Receive Next Counter Register

Source

pub const fn ptcr(&self) -> &Ptcr

0x120 - Transfer Control Register

Source

pub const fn ptsr(&self) -> &Ptsr

0x124 - Transfer Status 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.