pub struct Adxl345Config {
pub output_data_rate_hz: Adxl345OutputDataRate,
pub low_power: bool,
pub full_resolution: bool,
pub accel_full_scale_g: Adxl345AccelFullScale,
}Expand description
ADXL345 accelerometer configuration.
Fields§
§output_data_rate_hz: Adxl345OutputDataRateDesired output data rate in Hz. Supported values are 6.25, 12.5, 25, 50, 100, 200, 400, 800, 1600, 3200. Defaults to 12.5 Hz.
low_power: boolEnable low power mode. Defaults to false.
full_resolution: boolEnable full-resolution mode. Defaults to true.
accel_full_scale_g: Adxl345AccelFullScaleAccelerometer full scale range in g. Supported values are 2, 4, 8, 16. Defaults to 2g.
Trait Implementations§
Source§impl Clone for Adxl345Config
impl Clone for Adxl345Config
Source§fn clone(&self) -> Adxl345Config
fn clone(&self) -> Adxl345Config
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Adxl345Config
impl Debug for Adxl345Config
Source§impl Default for Adxl345Config
impl Default for Adxl345Config
Source§impl<'de> Deserialize<'de> for Adxl345Config
impl<'de> Deserialize<'de> for Adxl345Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Adxl345Config
impl PartialEq for Adxl345Config
impl Copy for Adxl345Config
impl Eq for Adxl345Config
impl StructuralPartialEq for Adxl345Config
Auto Trait Implementations§
impl Freeze for Adxl345Config
impl RefUnwindSafe for Adxl345Config
impl Send for Adxl345Config
impl Sync for Adxl345Config
impl Unpin for Adxl345Config
impl UnwindSafe for Adxl345Config
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