Enum d1_pac::audio_codec::ac_adc_fifoc::RX_FIFO_MODE_A
source · pub enum RX_FIFO_MODE_A {
E_XPANDING_ZERO = 0,
E_XPANDING_SIGN = 1,
}
Expand description
RX FIFO Output Mode (Mode 0, 1)
For 20-bit received audio sample:
Mode 0: RXDATA[31:0] = {FIFO_O[19:0], 12’h0}
Mode 1: RXDATA[31:0] = {12{FIFO_O[19]}, FIFO_O[19:0]}
For 16-bit received audio sample:
Mode 0: RXDATA[31:0] = {FIFO_O[19:4], 16’h0}
Mode 1: RXDATA[31:0] = {16{FIFO_O[19]}, FIFO_O[19:4]}
Value on reset: 0
Variants§
E_XPANDING_ZERO = 0
0: Expanding ‘0’ at LSB of TX FIFO register
E_XPANDING_SIGN = 1
1: Expanding received sample sign bit at MSB of TX FIFO register
Trait Implementations§
source§impl Clone for RX_FIFO_MODE_A
impl Clone for RX_FIFO_MODE_A
source§fn clone(&self) -> RX_FIFO_MODE_A
fn clone(&self) -> RX_FIFO_MODE_A
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RX_FIFO_MODE_A
impl Debug for RX_FIFO_MODE_A
source§impl From<RX_FIFO_MODE_A> for bool
impl From<RX_FIFO_MODE_A> for bool
source§fn from(variant: RX_FIFO_MODE_A) -> Self
fn from(variant: RX_FIFO_MODE_A) -> Self
Converts to this type from the input type.
source§impl PartialEq for RX_FIFO_MODE_A
impl PartialEq for RX_FIFO_MODE_A
impl Copy for RX_FIFO_MODE_A
impl Eq for RX_FIFO_MODE_A
impl StructuralPartialEq for RX_FIFO_MODE_A
Auto Trait Implementations§
impl Freeze for RX_FIFO_MODE_A
impl RefUnwindSafe for RX_FIFO_MODE_A
impl Send for RX_FIFO_MODE_A
impl Sync for RX_FIFO_MODE_A
impl Unpin for RX_FIFO_MODE_A
impl UnwindSafe for RX_FIFO_MODE_A
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)