lsm6dsox
Platform-agnostic embedded-hal driver for the STMicroelectronics LSM6DSOX iNEMO inertial module.
Provided functionality is inspired by the C implementation from ST, but tries to provide a higher level interface where possible.
To provide measurements the [accelerometer] traits and [measurements] crate are utilized.
Resources
For application hints please also refer to the application note provided by ST.
Features
Accelerometer
trait implementationembedded-hal
I²C support- Gyroscope
- Tap recognition
- Interrupts
- Further features may be added in the future
Examples
use Accelerometer;
use *;
let mut lsm = new;
lsm.setup?;
lsm.set_accel_sample_rate?;
lsm.set_accel_scale?;
if let Ok = lsm.accel_norm
License
Open Logistics Foundation License
Version 1.3, January 2023
See the LICENSE file in the top-level directory.
Contact
Fraunhofer IML Embedded Rust Group - embedded-rust@iml.fraunhofer.de