#[non_exhaustive]pub struct UnitConfig { /* private fields */ }Expand description
I2S receiver/transmitter unit configuration
Implementations§
Source§impl UnitConfig
impl UnitConfig
Sourcepub fn with_channels(self, channels: Channels) -> Self
pub fn with_channels(self, channels: Channels) -> Self
Assign the given value to the channels field.
Sourcepub fn with_ws_width(self, ws_width: WsWidth) -> Self
pub fn with_ws_width(self, ws_width: WsWidth) -> Self
Assign the given value to the ws_width field.
Sourcepub fn with_ws_polarity(self, ws_polarity: Polarity) -> Self
pub fn with_ws_polarity(self, ws_polarity: Polarity) -> Self
Assign the given value to the ws_polarity field.
Sourcepub fn ws_polarity(&self) -> Polarity
pub fn ws_polarity(&self) -> Polarity
Polarity of WS signal
Sourcepub fn with_msb_shift(self, msb_shift: bool) -> Self
pub fn with_msb_shift(self, msb_shift: bool) -> Self
Assign the given value to the msb_shift field.
Source§impl UnitConfig
impl UnitConfig
Sourcepub fn new_tdm_philips() -> Self
pub fn new_tdm_philips() -> Self
TDM Philips standard configuration with two 16-bit active channels
Sourcepub fn new_tdm_msb() -> Self
pub fn new_tdm_msb() -> Self
TDM MSB standard configuration with two 16-bit active channels
Sourcepub fn new_tdm_pcm_short() -> Self
pub fn new_tdm_pcm_short() -> Self
TDM PCM short frame standard configuration with two 16-bit active channels
Trait Implementations§
Source§impl Clone for UnitConfig
Available on crate feature unstable only.
impl Clone for UnitConfig
Available on crate feature
unstable only.Source§fn clone(&self) -> UnitConfig
fn clone(&self) -> UnitConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnitConfig
Available on crate feature unstable only.
impl Debug for UnitConfig
Available on crate feature
unstable only.Source§impl Default for UnitConfig
Available on crate feature unstable only.
impl Default for UnitConfig
Available on crate feature
unstable only.Source§impl Hash for UnitConfig
Available on crate feature unstable only.
impl Hash for UnitConfig
Available on crate feature
unstable only.Source§impl PartialEq for UnitConfig
Available on crate feature unstable only.
impl PartialEq for UnitConfig
Available on crate feature
unstable only.impl Copy for UnitConfig
Available on crate feature
unstable only.impl Eq for UnitConfig
Available on crate feature
unstable only.impl StructuralPartialEq for UnitConfig
Available on crate feature
unstable only.Auto Trait Implementations§
impl Freeze for UnitConfig
impl RefUnwindSafe for UnitConfig
impl Send for UnitConfig
impl Sync for UnitConfig
impl Unpin for UnitConfig
impl UnsafeUnpin for UnitConfig
impl UnwindSafe for UnitConfig
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)