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 version(&self) -> &Version

0x3c - Version and loopback register

Source

pub const fn mode(&self) -> &Mode

0x40 - I2S/PCM mode register

Source

pub const fn intstatus(&self) -> &Intstatus

0x44 - Interrupt status register

Source

pub const fn intclr(&self) -> &Intclr

0x48 - Interrupt clear register

Source

pub const fn left_tx(&self) -> &LeftTx

0x4c - TX left channel data

Source

pub const fn right_tx(&self) -> &RightTx

0x50 - TX right channel data

Source

pub const fn left_rx(&self) -> &LeftRx

0x54 - RX left channel data

Source

pub const fn right_rx(&self) -> &RightRx

0x58 - RX right channel data

Source

pub const fn ct_set(&self) -> &CtSet

0x5c - Control set register

Source

pub const fn ct_clr(&self) -> &CtClr

0x60 - Control clear register

Source

pub const fn fifo_threshold(&self) -> &FifoThreshold

0x64 - FIFO threshold register

Source

pub const fn rx_sta(&self) -> &RxSta

0x68 - RX status register

Source

pub const fn tx_sta(&self) -> &TxSta

0x6c - TX status register

Source

pub const fn data_width_set(&self) -> &DataWidthSet

0x78 - Data width register

Source

pub const fn signed_ext(&self) -> &SignedExt

0x84 - Signed extension enable

Source

pub const fn intmask(&self) -> &Intmask

0x8c - Interrupt mask register

Source

pub const fn i2s_crg(&self) -> &I2sCrg

0x90 - I2S clock/reset generator

Source

pub const fn i2s_bclk_div_num(&self) -> &I2sBclkDivNum

0x94 - BCLK divider number

Source

pub const fn i2s_fs_div_num(&self) -> &I2sFsDivNum

0x98 - FS divider number

Source

pub const fn i2s_fs_div_ratio_num(&self) -> &I2sFsDivRatioNum

0x9c - FS divider ratio number

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.