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 lsadc_ctrl_0(&self) -> &LsadcCtrl0

0x00 - Scan config (adc_ctrl_data): per-channel enable + sample timing. Set via hal_adc_auto_scan_mode_set.

Source

pub const fn lsadc_ctrl_1(&self) -> &LsadcCtrl1

0x04 - FIFO status + interrupt waterline (adc_fifo_data)

Source

pub const fn lsadc_ctrl_2(&self) -> &LsadcCtrl2

0x08 - Interrupt mask/status (adc_irg_data)

Source

pub const fn lsadc_ctrl_3(&self) -> &LsadcCtrl3

0x0c - ADC control register 3 (analog, reserved)

Source

pub const fn lsadc_ctrl_4(&self) -> &LsadcCtrl4

0x10 - ADC control register 4 (analog, reserved)

Source

pub const fn lsadc_ctrl_6(&self) -> &LsadcCtrl6

0x14 - ADC control register 6 (analog, reserved)

Source

pub const fn lsadc_ctrl_7(&self) -> &LsadcCtrl7

0x18 - ADC control register 7 (analog, reserved)

Source

pub const fn lsadc_ctrl_8(&self) -> &LsadcCtrl8

0x1c - Scan start/stop (adc_scan_start_and_stop_data)

Source

pub const fn lsadc_ctrl_9(&self) -> &LsadcCtrl9

0x20 - FIFO read data (adc_fifo_read_data): 14-bit code + 3-bit channel

Source

pub const fn lsadc_ctrl_11(&self) -> &LsadcCtrl11

0x24 - Analog enable/reset (adc_enable_data)

Source

pub const fn lsadc_ctrl_12(&self) -> &LsadcCtrl12

0x28 - ADC control register 12 (analog, reserved)

Source

pub const fn cfg_data_sel(&self) -> &CfgDataSel

0xdc - Data output select (base+0xDC)

Source

pub const fn cfg_offset(&self) -> &CfgOffset

0xe0 - Offset correction (base+0xE0)

Source

pub const fn cfg_gain(&self) -> &CfgGain

0xe4 - Gain correction (base+0xE4)

Source

pub const fn cfg_cic_filter_en(&self) -> &CfgCicFilterEn

0xe8 - CIC filter enable (base+0xE8)

Source

pub const fn cfg_cic_osr(&self) -> &CfgCicOsr

0xec - CIC oversampling ratio (base+0xEC)

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.