pub enum AccelerometerRegisters {
CTRL_REG1 = 32,
CTRL_REG4 = 35,
OUT_X_L_A = 40,
OUT_X_H_A = 41,
OUT_Y_L_A = 42,
OUT_Y_H_A = 43,
OUT_Z_L_A = 44,
OUT_Z_H_A = 45,
}Variants§
CTRL_REG1 = 32
CTRL_REG4 = 35
OUT_X_L_A = 40
OUT_X_H_A = 41
OUT_Y_L_A = 42
OUT_Y_H_A = 43
OUT_Z_L_A = 44
OUT_Z_H_A = 45
Trait Implementations§
Source§impl FromPrimitive for AccelerometerRegisters
impl FromPrimitive for AccelerometerRegisters
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Convert an
i64 to return an optional value of this type. If the
type cannot be represented by this value, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Convert an
u64 to return an optional value of this type. If the
type cannot be represented by this value, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Convert an
isize to return an optional value of this type. If the
value cannot be represented by this value, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Convert an
i8 to return an optional value of this type. If the
type cannot be represented by this value, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Convert an
i16 to return an optional value of this type. If the
type cannot be represented by this value, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Convert an
i32 to return an optional value of this type. If the
type cannot be represented by this value, then None is returned.Source§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Convert a
usize to return an optional value of this type. If the
type cannot be represented by this value, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Convert an
u8 to return an optional value of this type. If the
type cannot be represented by this value, then None is returned.Auto Trait Implementations§
impl Freeze for AccelerometerRegisters
impl RefUnwindSafe for AccelerometerRegisters
impl Send for AccelerometerRegisters
impl Sync for AccelerometerRegisters
impl Unpin for AccelerometerRegisters
impl UnwindSafe for AccelerometerRegisters
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