1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! This library provides an embedded `no_std` driver for the [Sensirion SEN5x series](https://sensirion.com/products/catalog/SEK-SEN5x).
//! This driver was built using [`embedded-hal`](https://docs.rs/embedded-hal/) traits.
//! The implementation is based on [embedded-i2c-sen5x](https://github.com/Sensirion/embedded-i2c-sen5x)
//! and [sgpc3-rs](https://github.com/mjaakkol/sgpc3-rs).
//!
//! ## `embedded-hal-async` Support
//!
//! This crate has optional support for the
//! [`embedded-hal-async`](https://docs.rs/embedded-hal-async/) crate. The
//! `Sen5xAsync` type provides a driver for a SEN5x sensor which uses
//! `embedded-hal-async`'s asynchronous versions of the `I2c` and `DelayNs`
//! traits, rather than the blocking versions from
//! [`embedded-hal`](https://docs.rs/embedded-hal/).
//!
//! The `embedded-hal-async` support is feature flagged, so that users who
//! don't need the asynchronous versions of these traits don't have to depend on
//! `embedded-hal-async`. To use it, enable the `embedded-hal-async` feature
//! flag in your `Cargo.toml`:
//!
//! ```toml
//! [dependencies]
//! sen5x = { version = "0.2", features = ["embedded-hal-async"] }
//! ```
pub use crateSen5x;
pub use crateSen5xAsync;
pub use Error;
/// SEN5x I2C command definitions.
/// Sensor data types and configuration structures.