Enum d1_pac::i2s_pcm::i2s_pcm_fctl::RXOM_A
source · #[repr(u8)]pub enum RXOM_A {
MODE0 = 0,
MODE1 = 1,
MODE2 = 2,
MODE3 = 3,
}
Expand description
RXFIFO Output Mode
Example for 20-bit received audio sample:
Mode 0: APB_RDATA[31:0] = {RXFIFO[31:12], 12’h0}
Mode 1: APB_RDATA[31:0] = {12{RXFIFO[31]}, RXFIFO[31:12]}
Mode 2: APB_RDATA [31:0] = {RXFIFO[31:16], 16’h0}
Mode 3: APB_RDATA[31:0] = {16{RXFIFO[31], RXFIFO[31:16]}
Value on reset: 0
Variants§
MODE0 = 0
0: Expanding ‘0’ at LSB of RXFIFO register
MODE1 = 1
1: Expanding received sample sign bit at MSB of RXFIFO register
MODE2 = 2
2: Truncating received samples at high half-word of RXFIFO register and low half-word of RXFIFO register is filled by ‘0’
MODE3 = 3
3: Truncating received samples at low half-word of RXFIFO register and high half-word of RXFIFO register is expanded by its sign bit
Trait Implementations§
impl Copy for RXOM_A
impl Eq for RXOM_A
impl StructuralPartialEq for RXOM_A
Auto Trait Implementations§
impl Freeze for RXOM_A
impl RefUnwindSafe for RXOM_A
impl Send for RXOM_A
impl Sync for RXOM_A
impl Unpin for RXOM_A
impl UnwindSafe for RXOM_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
)