Struct esp_idf_hal::i2s::config::TdmSlotMask
source · pub struct TdmSlotMask(/* private fields */);
Expand description
Mask of TDM slots to enable.
Implementations§
source§impl TdmSlotMask
impl TdmSlotMask
sourcepub fn from_mask_value(value: u16) -> Self
pub fn from_mask_value(value: u16) -> Self
Creates a TdmSlotMask
from the raw bit mask value.
sourcepub fn mask_value(&self) -> u16
pub fn mask_value(&self) -> u16
Returns the mask value as a u16
.
Trait Implementations§
source§impl BitAnd<TdmSlot> for TdmSlotMask
impl BitAnd<TdmSlot> for TdmSlotMask
Bitwise AND a TdmSlotMask
with a TdmSlot
to produce a TdmSlotMask
.
If the slot mask contains the slot, the result is a TdmSlotMask
containing that slot.
Otherwise, the result is an empty slot mask.
source§impl BitAnd<TdmSlotMask> for TdmSlot
impl BitAnd<TdmSlotMask> for TdmSlot
Bitwise AND a TdmSlot
with a TdmSlotMask
to produce a TdmSlotMask
.
If the slot mask contains the slot, the result is a TdmSlotMask
containing that slot.
Otherwise, the result is an empty slot mask.
§type Output = TdmSlotMask
type Output = TdmSlotMask
&
operator.source§fn bitand(self, rhs: TdmSlotMask) -> Self::Output
fn bitand(self, rhs: TdmSlotMask) -> Self::Output
&
operation. Read moresource§impl BitAnd for TdmSlotMask
impl BitAnd for TdmSlotMask
Bitwise AND a TdmSlotMask
with another TdmSlotMask
to produce a TdmSlotMask
.
The result is a slot mask containing the slots that are common to both slot masks.
source§impl BitAndAssign<TdmSlot> for TdmSlotMask
impl BitAndAssign<TdmSlot> for TdmSlotMask
Bitwise AND a TdmSlotMask
with a TdmSlot
and assign the result to self
.
If the slot mask contains the slot, the result is a TdmSlotMask
containing that slot.
Otherwise, the result is an empty slot mask.
source§fn bitand_assign(&mut self, rhs: TdmSlot)
fn bitand_assign(&mut self, rhs: TdmSlot)
&=
operation. Read moresource§impl BitAndAssign for TdmSlotMask
impl BitAndAssign for TdmSlotMask
Bitwise AND a TdmSlotMask
with another TdmSlotMask
and assign the result to self
.
The result is a slot mask containing the slots that are common to both slot masks.
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moresource§impl BitOr<TdmSlot> for TdmSlotMask
impl BitOr<TdmSlot> for TdmSlotMask
Bitwise OR aTdmSlotMask
with a TdmSlot
to produce a TdmSlotMask
.
The result is a TdmSlotMask
containing the slot and all slots in the slot mask.
source§impl BitOr<TdmSlotMask> for TdmSlot
impl BitOr<TdmSlotMask> for TdmSlot
Bitwise OR aTdmSlot
with a TdmSlotMask
to produce a TdmSlotMask
.
The result is a TdmSlotMask
containing the slot and all slots in the slot mask.
§type Output = TdmSlotMask
type Output = TdmSlotMask
|
operator.source§fn bitor(self, rhs: TdmSlotMask) -> Self::Output
fn bitor(self, rhs: TdmSlotMask) -> Self::Output
|
operation. Read moresource§impl BitOr for TdmSlotMask
impl BitOr for TdmSlotMask
Bitwise OR aTdmSlotMask
with another TdmSlotMask
to produce a TdmSlotMask
.
The result is a TdmSlotMask
containing the slots in either slot mask.
source§impl BitOrAssign<TdmSlot> for TdmSlotMask
impl BitOrAssign<TdmSlot> for TdmSlotMask
Bitwise OR aTdmSlotMask
with a TdmSlot
and assign the result to self
.
The result is a TdmSlotMask
containing the slot and all slots in the slot mask.
source§fn bitor_assign(&mut self, rhs: TdmSlot)
fn bitor_assign(&mut self, rhs: TdmSlot)
|=
operation. Read moresource§impl BitOrAssign for TdmSlotMask
impl BitOrAssign for TdmSlotMask
Bitwise OR aTdmSlotMask
with another TdmSlotMask
and assign the result to `self.
The result is a TdmSlotMask
containing the slots in either slot mask.
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moresource§impl Clone for TdmSlotMask
impl Clone for TdmSlotMask
source§fn clone(&self) -> TdmSlotMask
fn clone(&self) -> TdmSlotMask
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TdmSlotMask
impl Debug for TdmSlotMask
source§impl Default for TdmSlotMask
impl Default for TdmSlotMask
source§fn default() -> TdmSlotMask
fn default() -> TdmSlotMask
source§impl From<TdmSlot> for TdmSlotMask
impl From<TdmSlot> for TdmSlotMask
Convert a TdmSlot
into a TdmSlotMask
.
source§fn from(slot: TdmSlot) -> TdmSlotMask
fn from(slot: TdmSlot) -> TdmSlotMask
source§impl Not for TdmSlotMask
impl Not for TdmSlotMask
Produce the bitwise NOT of a TdmSlotMask
to produce a TdmSlotMask
containing all slots
except the slots in the original slot mask.
source§impl PartialEq for TdmSlotMask
impl PartialEq for TdmSlotMask
impl Copy for TdmSlotMask
impl Eq for TdmSlotMask
impl StructuralPartialEq for TdmSlotMask
Auto Trait Implementations§
impl Freeze for TdmSlotMask
impl RefUnwindSafe for TdmSlotMask
impl Send for TdmSlotMask
impl Sync for TdmSlotMask
impl Unpin for TdmSlotMask
impl UnwindSafe for TdmSlotMask
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
§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)
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)
clone_to_uninit
)