Skip to main content

SAMPLEPERR

Enum SAMPLEPERR 

Source
pub enum SAMPLEPERR {
    _128US,
    _256US,
    _512US,
    _1024US,
    _2048US,
    _4096US,
    _8192US,
    _16384US,
    _32MS,
    _65MS,
    _131MS,
    _Reserved(u8),
}
Expand description

Possible values of the field SAMPLEPER

Variants§

§

_128US

128 us

§

_256US

256 us

§

_512US

512 us

§

_1024US

1024 us

§

_2048US

2048 us

§

_4096US

4096 us

§

_8192US

8192 us

§

_16384US

16384 us

§

_32MS

32768 us

§

_65MS

65536 us

§

_131MS

131072 us

§

_Reserved(u8)

Reserved

Implementations§

Source§

impl SAMPLEPERR

Source

pub fn bits(&self) -> u8

Value of the field as raw bits

Source

pub fn is_128us(&self) -> bool

Checks if the value of the field is _128US

Source

pub fn is_256us(&self) -> bool

Checks if the value of the field is _256US

Source

pub fn is_512us(&self) -> bool

Checks if the value of the field is _512US

Source

pub fn is_1024us(&self) -> bool

Checks if the value of the field is _1024US

Source

pub fn is_2048us(&self) -> bool

Checks if the value of the field is _2048US

Source

pub fn is_4096us(&self) -> bool

Checks if the value of the field is _4096US

Source

pub fn is_8192us(&self) -> bool

Checks if the value of the field is _8192US

Source

pub fn is_16384us(&self) -> bool

Checks if the value of the field is _16384US

Source

pub fn is_32ms(&self) -> bool

Checks if the value of the field is _32MS

Source

pub fn is_65ms(&self) -> bool

Checks if the value of the field is _65MS

Source

pub fn is_131ms(&self) -> bool

Checks if the value of the field is _131MS

Trait Implementations§

Source§

impl Clone for SAMPLEPERR

Source§

fn clone(&self) -> SAMPLEPERR

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SAMPLEPERR

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for SAMPLEPERR

Source§

fn eq(&self, other: &SAMPLEPERR) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for SAMPLEPERR

Source§

impl StructuralPartialEq for SAMPLEPERR

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.