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 Register

Source

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

0x04 - Parameter Register

Source

pub const fn ctrl(&self) -> &Ctrl

0x10 - Control Register

Source

pub const fn stat(&self) -> &Stat

0x14 - Status Register

Source

pub const fn ie(&self) -> &Ie

0x18 - Interrupt Enable Register

Source

pub const fn de(&self) -> &De

0x1c - DMA Enable Register

Source

pub const fn cfg(&self) -> &Cfg

0x20 - Configuration Register

Source

pub const fn pause(&self) -> &Pause

0x24 - Pause Register

Source

pub const fn swtrig(&self) -> &Swtrig

0x34 - Software Trigger Register

Source

pub const fn tstat(&self) -> &Tstat

0x38 - Trigger Status Register

Source

pub const fn ofstrim(&self) -> &Ofstrim

0x40 - Offset Trim Register

Source

pub const fn hstrim(&self) -> &Hstrim

0x48 - High Speed Trim Register

Source

pub const fn tctrl(&self, n: usize) -> &Tctrl

0xa0..0xb0 - Trigger Control Register

Source

pub fn tctrl_iter(&self) -> impl Iterator<Item = &Tctrl>

Iterator for array of: 0xa0..0xb0 - Trigger Control Register

Source

pub const fn fctrl0(&self) -> &Fctrl0

0xe0 - FIFO Control Register

Source

pub const fn gcc0(&self) -> &Gcc0

0xf0 - Gain Calibration Control

Source

pub const fn gcr0(&self) -> &Gcr0

0xf8 - Gain Calculation Result

Source

pub const fn cmdl1(&self) -> &Cmdl1

0x100 - Command Low Buffer Register

Source

pub const fn cmdh1(&self) -> &Cmdh1

0x104 - Command High Buffer Register

Source

pub const fn cmdl2(&self) -> &Cmdl2

0x108 - Command Low Buffer Register

Source

pub const fn cmdh2(&self) -> &Cmdh2

0x10c - Command High Buffer Register

Source

pub const fn cmdl3(&self) -> &Cmdl3

0x110 - Command Low Buffer Register

Source

pub const fn cmdh3(&self) -> &Cmdh3

0x114 - Command High Buffer Register

Source

pub const fn cmdl4(&self) -> &Cmdl4

0x118 - Command Low Buffer Register

Source

pub const fn cmdh4(&self) -> &Cmdh4

0x11c - Command High Buffer Register

Source

pub const fn cmdl5(&self) -> &Cmdl5

0x120 - Command Low Buffer Register

Source

pub const fn cmdh5(&self) -> &Cmdh5

0x124 - Command High Buffer Register

Source

pub const fn cmdl6(&self) -> &Cmdl6

0x128 - Command Low Buffer Register

Source

pub const fn cmdh6(&self) -> &Cmdh6

0x12c - Command High Buffer Register

Source

pub const fn cmdl7(&self) -> &Cmdl7

0x130 - Command Low Buffer Register

Source

pub const fn cmdh7(&self) -> &Cmdh7

0x134 - Command High Buffer Register

Source

pub const fn cv(&self, n: usize) -> &Cv

0x200..0x21c - Compare Value Register

`n` is the index of register in the array. `n == 0` corresponds to `CV1` register.
Source

pub fn cv_iter(&self) -> impl Iterator<Item = &Cv>

Iterator for array of: 0x200..0x21c - Compare Value Register

Source

pub const fn cv1(&self) -> &Cv

0x200 - Compare Value Register

Source

pub const fn cv2(&self) -> &Cv

0x204 - Compare Value Register

Source

pub const fn cv3(&self) -> &Cv

0x208 - Compare Value Register

Source

pub const fn cv4(&self) -> &Cv

0x20c - Compare Value Register

Source

pub const fn cv5(&self) -> &Cv

0x210 - Compare Value Register

Source

pub const fn cv6(&self) -> &Cv

0x214 - Compare Value Register

Source

pub const fn cv7(&self) -> &Cv

0x218 - Compare Value Register

Source

pub const fn resfifo0(&self) -> &Resfifo0

0x300 - Data Result FIFO Register

Source

pub const fn cal_gar(&self, n: usize) -> &CalGar

0x400..0x488 - Calibration General A-Side Registers

Source

pub fn cal_gar_iter(&self) -> impl Iterator<Item = &CalGar>

Iterator for array of: 0x400..0x488 - Calibration General A-Side Registers

Source

pub const fn cfg2(&self) -> &Cfg2

0xff8 - Configuration 2 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.