#[repr(u8)]pub enum TapSource {
TapIA = 64,
SingleTap = 32,
DoubleTap = 16,
NegativeTapSign = 8,
XTap = 4,
YTap = 2,
ZTap = 1,
}Expand description
Tap source register
Holds information about tap events.
Variants§
TapIA = 64
Tap event detection status.
SingleTap = 32
Single-tap event status.
DoubleTap = 16
Double-tap event status.
NegativeTapSign = 8
Sign of acceleration detected by tap event.
Present when negative sign of acceleration detected by tap event.
XTap = 4
Tap event detection status on X-axis.
YTap = 2
Tap event detection status on Y-axis.
ZTap = 1
Tap event detection status on Z-axis.
Trait Implementations§
Source§impl BitFlag for TapSource
impl BitFlag for TapSource
Source§fn empty() -> BitFlags<Self>
fn empty() -> BitFlags<Self>
Create a
BitFlags with no flags set (in other words, with a value of 0). Read moreSource§fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
Create a
BitFlags if the raw value provided does not contain
any illegal flags. Read moreSource§fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags from an underlying bitwise value. If any
invalid bits are set, ignore them. Read moreSource§unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags unsafely, without checking if the bits form
a valid bit pattern for the type. Read moreSource§impl RawBitFlags for TapSource
impl RawBitFlags for TapSource
Source§const EMPTY: <Self as RawBitFlags>::Numeric = {transmute(0x00): <types::TapSource as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: <Self as RawBitFlags>::Numeric = {transmute(0x00): <types::TapSource as enumflags2::_internal::RawBitFlags>::Numeric}
A value with no bits set.
Source§const DEFAULT: <Self as RawBitFlags>::Numeric = {transmute(0x00): <types::TapSource as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: <Self as RawBitFlags>::Numeric = {transmute(0x00): <types::TapSource as enumflags2::_internal::RawBitFlags>::Numeric}
The value used by the Default implementation. Equivalent to EMPTY, unless
customized.
Source§const ALL_BITS: <Self as RawBitFlags>::Numeric = {transmute(0x7f): <types::TapSource as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: <Self as RawBitFlags>::Numeric = {transmute(0x7f): <types::TapSource as enumflags2::_internal::RawBitFlags>::Numeric}
A value with all flag bits set.
Source§const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<TapSource>"
const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<TapSource>"
The name of the type for debug formatting purposes. Read more
impl Copy for TapSource
impl Eq for TapSource
impl StructuralPartialEq for TapSource
Auto Trait Implementations§
impl Freeze for TapSource
impl RefUnwindSafe for TapSource
impl Send for TapSource
impl Sync for TapSource
impl Unpin for TapSource
impl UnwindSafe for TapSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more