pub enum ONECHANNEL_A {
DUAL_CHANNEL,
SINGLE_CHANNEL,
}
Expand description
Single channel mode. Applies to both transmit and receive. This configuration bit applies only to the first I2S channel pair. Other channel pairs may select this mode independently in their separate CFG1 registers.
Value on reset: 0
Variants
DUAL_CHANNEL
0: I2S data for this channel pair is treated as left and right channels.
SINGLE_CHANNEL
1: I2S data for this channel pair is treated as a single channel, functionally the left channel for this pair. In mode 0 only, the right side of the frame begins at POSITION = 0x100. This is because mode 0 makes a clear distinction between the left and right sides of the frame. When ONECHANNEL = 1, the single channel of data may be placed on the right by setting POSITION to 0x100 + the data position within the right side (e.g. 0x108 would place data starting at the 8th clock after the middle of the frame). In other modes, data for the single channel of data is placed at the clock defined by POSITION.
Trait Implementations
sourceimpl Clone for ONECHANNEL_A
impl Clone for ONECHANNEL_A
sourcefn clone(&self) -> ONECHANNEL_A
fn clone(&self) -> ONECHANNEL_A
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ONECHANNEL_A
impl Debug for ONECHANNEL_A
sourceimpl From<ONECHANNEL_A> for bool
impl From<ONECHANNEL_A> for bool
sourcefn from(variant: ONECHANNEL_A) -> Self
fn from(variant: ONECHANNEL_A) -> Self
Performs the conversion.
sourceimpl PartialEq<ONECHANNEL_A> for ONECHANNEL_A
impl PartialEq<ONECHANNEL_A> for ONECHANNEL_A
impl Copy for ONECHANNEL_A
impl StructuralPartialEq for ONECHANNEL_A
Auto Trait Implementations
impl RefUnwindSafe for ONECHANNEL_A
impl Send for ONECHANNEL_A
impl Sync for ONECHANNEL_A
impl Unpin for ONECHANNEL_A
impl UnwindSafe for ONECHANNEL_A
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more