[][src]Enum adxl343::DataFormatRange

#[repr(u8)]
pub enum DataFormatRange { PLUSMINUS_2G, PLUSMINUS_4G, PLUSMINUS_8G, PLUSMINUS_16G, }

g-Range setting flags which can be OR'd with DataFormatFlags and passed as operands to Register::DATA_FORMAT

Variants

PLUSMINUS_2G

±2g

PLUSMINUS_4G

±4g

PLUSMINUS_8G

±8g

PLUSMINUS_16G

±16g

Methods

impl DataFormatRange[src]

pub fn bits(self) -> DataFormatFlags[src]

Get DataFormatFlags representation

Trait Implementations

impl PartialEq<DataFormatRange> for DataFormatRange[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Eq for DataFormatRange[src]

impl Copy for DataFormatRange[src]

impl Debug for DataFormatRange[src]

impl From<DataFormatRange> for DataFormatFlags[src]

impl Clone for DataFormatRange[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self