Struct esp_idf_svc::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) -> TdmSlotMask
pub fn from_mask_value(value: u16) -> TdmSlotMask
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.
§type Output = TdmSlotMask
type Output = TdmSlotMask
&
operator.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) -> <TdmSlot as BitAnd<TdmSlotMask>>::Output
fn bitand(self, rhs: TdmSlotMask) -> <TdmSlot as BitAnd<TdmSlotMask>>::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.
§type Output = TdmSlotMask
type Output = TdmSlotMask
&
operator.source§fn bitand(self, rhs: TdmSlotMask) -> <TdmSlotMask as BitAnd>::Output
fn bitand(self, rhs: TdmSlotMask) -> <TdmSlotMask as BitAnd>::Output
&
operation. Read moresource§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: TdmSlotMask)
fn bitand_assign(&mut self, rhs: TdmSlotMask)
&=
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.
§type Output = TdmSlotMask
type Output = TdmSlotMask
|
operator.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) -> <TdmSlot as BitOr<TdmSlotMask>>::Output
fn bitor(self, rhs: TdmSlotMask) -> <TdmSlot as BitOr<TdmSlotMask>>::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.
§type Output = TdmSlotMask
type Output = TdmSlotMask
|
operator.source§fn bitor(self, rhs: TdmSlotMask) -> <TdmSlotMask as BitOr>::Output
fn bitor(self, rhs: TdmSlotMask) -> <TdmSlotMask as BitOr>::Output
|
operation. Read moresource§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: TdmSlotMask)
fn bitor_assign(&mut self, rhs: TdmSlotMask)
|=
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.
§type Output = TdmSlotMask
type Output = TdmSlotMask
!
operator.source§fn not(self) -> <TdmSlotMask as Not>::Output
fn not(self) -> <TdmSlotMask as Not>::Output
!
operation. Read moresource§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
)