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