RegisterBlock

Struct RegisterBlock 

Source
#[repr(C)]
pub struct RegisterBlock {
Show 13 fields pub voice_config: Reg<VOICE_CONFIG_SPEC>, pub lpsd_config: Reg<LPSD_CONFIG_SPEC>, pub voice_dma_config: Reg<VOICE_DMA_CONFIG_SPEC>, pub voice_dmac_len: Reg<VOICE_DMAC_LEN_SPEC>, pub voice_dmac_fifo: Reg<VOICE_DMAC_FIFO_SPEC>, pub voice_dmac_dst_addr0: Reg<VOICE_DMAC_DST_ADDR0_SPEC>, pub voice_dmac_dst_addr1: Reg<VOICE_DMAC_DST_ADDR1_SPEC>, pub pdm_core_config: Reg<PDM_CORE_CONFIG_SPEC>, pub voice_status: Reg<VOICE_STATUS_SPEC>, pub i2s_config: Reg<I2S_CONFIG_SPEC>, pub fifo_sram_cfg: Reg<FIFO_SRAM_CFG_SPEC>, pub pdma_sram_cfg: Reg<PDMA_SRAM_CFG_SPEC>, pub dbg_mux_cfg: Reg<DBG_MUX_CFG_SPEC>,
}
Expand description

Register block

Fields§

§voice_config: Reg<VOICE_CONFIG_SPEC>

0x00 - Audio system configure register

§lpsd_config: Reg<LPSD_CONFIG_SPEC>

0x04 - LPSD config register

§voice_dma_config: Reg<VOICE_DMA_CONFIG_SPEC>

0x08 - Audio DMAC configure register

§voice_dmac_len: Reg<VOICE_DMAC_LEN_SPEC>

0x0c - Audio DMAC length register

§voice_dmac_fifo: Reg<VOICE_DMAC_FIFO_SPEC>

0x10 - Audio DMAC Buffer offset

§voice_dmac_dst_addr0: Reg<VOICE_DMAC_DST_ADDR0_SPEC>

0x14 - DMA0 dest address for the first buffer

§voice_dmac_dst_addr1: Reg<VOICE_DMAC_DST_ADDR1_SPEC>

0x18 - DMA1 dest address for the first buffer

§pdm_core_config: Reg<PDM_CORE_CONFIG_SPEC>

0x1c - PDM2PCM core configure register

§voice_status: Reg<VOICE_STATUS_SPEC>

0x20 - Audio Status Register

§i2s_config: Reg<I2S_CONFIG_SPEC>

0x24 - I2S master configure register

§fifo_sram_cfg: Reg<FIFO_SRAM_CFG_SPEC>

0x28 - FIFO SRAM configure register

§pdma_sram_cfg: Reg<PDMA_SRAM_CFG_SPEC>

0x2c - PDM core SRAM configure register

§dbg_mux_cfg: Reg<DBG_MUX_CFG_SPEC>

0x30 - Audio Debug 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.