Skip to main content

adxl355/
lib.rs

1//! ADXL355 — Cross-platform accelerometer driver.
2//!
3//! Transport-agnostic ADXL355 driver for embedded and desktop Rust.
4//! See the `Adxl355` struct for the main driver API.
5
6#![cfg_attr(not(feature = "std"), no_std)]
7
8extern crate alloc;
9
10pub mod device;
11pub mod error;
12pub mod registers;
13pub mod types;
14
15#[cfg(feature = "hal")]
16pub mod hal;
17
18pub use device::decode_raw20;
19pub use device::raw_to_g;
20pub use device::raw_to_mps2;
21pub use device::Adxl355;
22pub use device::Transport;
23pub use error::{Error, StateRequirement};
24pub use registers::Odr;
25pub use registers::PowerMode;
26pub use registers::Range;
27pub use types::{AccelXyz, RawXyz};