Struct esp_idf_svc::hal::i2s::config::TdmGpioConfig
source · pub struct TdmGpioConfig { /* private fields */ }
Expand description
TDM mode GPIO (general purpose input/output) configuration.
Implementations§
source§impl TdmGpioConfig
impl TdmGpioConfig
sourcepub fn new(
bclk_invert: bool,
mclk_invert: bool,
ws_invert: bool,
) -> TdmGpioConfig
pub fn new( bclk_invert: bool, mclk_invert: bool, ws_invert: bool, ) -> TdmGpioConfig
Create a new TDM mode GPIO configuration with the specified inversion flags for BCLK, MCLK, and WS.
sourcepub fn bclk_invert(self, bclk_invert: bool) -> TdmGpioConfig
pub fn bclk_invert(self, bclk_invert: bool) -> TdmGpioConfig
Set the BCLK inversion flag on this TDM GPIO configuration.
sourcepub fn mclk_invert(self, mclk_invert: bool) -> TdmGpioConfig
pub fn mclk_invert(self, mclk_invert: bool) -> TdmGpioConfig
Set the MCLK inversion flag on this TDM GPIO configuration.
sourcepub fn ws_invert(self, ws_invert: bool) -> TdmGpioConfig
pub fn ws_invert(self, ws_invert: bool) -> TdmGpioConfig
Set the WS inversion flag on this TDM GPIO configuration.
Trait Implementations§
source§impl Clone for TdmGpioConfig
impl Clone for TdmGpioConfig
source§fn clone(&self) -> TdmGpioConfig
fn clone(&self) -> TdmGpioConfig
Returns a copy 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 TdmGpioConfig
impl Debug for TdmGpioConfig
source§impl Default for TdmGpioConfig
impl Default for TdmGpioConfig
source§fn default() -> TdmGpioConfig
fn default() -> TdmGpioConfig
Returns the “default value” for a type. Read more
source§impl PartialEq for TdmGpioConfig
impl PartialEq for TdmGpioConfig
source§fn eq(&self, other: &TdmGpioConfig) -> bool
fn eq(&self, other: &TdmGpioConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TdmGpioConfig
impl Eq for TdmGpioConfig
impl StructuralPartialEq for TdmGpioConfig
Auto Trait Implementations§
impl Freeze for TdmGpioConfig
impl RefUnwindSafe for TdmGpioConfig
impl Send for TdmGpioConfig
impl Sync for TdmGpioConfig
impl Unpin for TdmGpioConfig
impl UnwindSafe for TdmGpioConfig
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,
§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
)§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§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
)