Expand description
This library provides an embedded no_std driver for the Sensirion SEN5x series.
This driver was built using embedded-hal traits.
The implementation is based on embedded-i2c-sen5x
and sgpc3-rs.
§embedded-hal-async Support
This crate has optional support for the
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.
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:
[dependencies]
sen5x = { version = "0.2", features = ["embedded-hal-async"] }Modules§
- commands
- SEN5x I2C command definitions.
- types
- Sensor data types and configuration structures. Types for the SEN5x sensor.
Structs§
- Sen5x
- SEN5x sensor instance. Use related methods to take measurements.
Enums§
- Error
- SEN5x errors