#[repr(u8)]pub enum Onechannel {
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§
Source§impl Onechannel
impl Onechannel
Trait Implementations§
Source§impl Clone for Onechannel
impl Clone for Onechannel
Source§fn clone(&self) -> Onechannel
fn clone(&self) -> Onechannel
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 Onechannel
impl Debug for Onechannel
Source§impl From<Onechannel> for u8
impl From<Onechannel> for u8
Source§fn from(val: Onechannel) -> u8
fn from(val: Onechannel) -> u8
Converts to this type from the input type.
Source§impl From<u8> for Onechannel
impl From<u8> for Onechannel
Source§fn from(val: u8) -> Onechannel
fn from(val: u8) -> Onechannel
Converts to this type from the input type.
Source§impl Ord for Onechannel
impl Ord for Onechannel
Source§fn cmp(&self, other: &Onechannel) -> Ordering
fn cmp(&self, other: &Onechannel) -> 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 Onechannel
impl PartialEq for Onechannel
Source§impl PartialOrd for Onechannel
impl PartialOrd for Onechannel
impl Copy for Onechannel
impl Eq for Onechannel
impl StructuralPartialEq for Onechannel
Auto Trait Implementations§
impl Freeze for Onechannel
impl RefUnwindSafe for Onechannel
impl Send for Onechannel
impl Sync for Onechannel
impl Unpin for Onechannel
impl UnwindSafe for Onechannel
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