#[repr(u8)]pub enum Cfg1Onechannel {
DUAL_CHANNEL = 0,
SINGLE_CHANNEL = 1,
}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.
Implementations§
Trait Implementations§
Source§impl Clone for Cfg1Onechannel
impl Clone for Cfg1Onechannel
Source§fn clone(&self) -> Cfg1Onechannel
fn clone(&self) -> Cfg1Onechannel
Returns a duplicate 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 Cfg1Onechannel
impl Debug for Cfg1Onechannel
Source§impl From<Cfg1Onechannel> for u8
impl From<Cfg1Onechannel> for u8
Source§fn from(val: Cfg1Onechannel) -> u8
fn from(val: Cfg1Onechannel) -> u8
Converts to this type from the input type.
Source§impl From<u8> for Cfg1Onechannel
impl From<u8> for Cfg1Onechannel
Source§fn from(val: u8) -> Cfg1Onechannel
fn from(val: u8) -> Cfg1Onechannel
Converts to this type from the input type.
Source§impl Ord for Cfg1Onechannel
impl Ord for Cfg1Onechannel
Source§fn cmp(&self, other: &Cfg1Onechannel) -> Ordering
fn cmp(&self, other: &Cfg1Onechannel) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Cfg1Onechannel
impl PartialEq for Cfg1Onechannel
Source§impl PartialOrd for Cfg1Onechannel
impl PartialOrd for Cfg1Onechannel
impl Copy for Cfg1Onechannel
impl Eq for Cfg1Onechannel
impl StructuralPartialEq for Cfg1Onechannel
Auto Trait Implementations§
impl Freeze for Cfg1Onechannel
impl RefUnwindSafe for Cfg1Onechannel
impl Send for Cfg1Onechannel
impl Sync for Cfg1Onechannel
impl Unpin for Cfg1Onechannel
impl UnwindSafe for Cfg1Onechannel
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