tosca_drivers/
lib.rs

1//! `tosca-drivers` is a library crate that provides architecture-agnostic
2//! drivers for a variety of sensors and devices.
3//!
4//! All drivers are implemented using only the [`embedded-hal`] and
5//! [`embedded-hal-async`] traits, ensuring compatibility with any platform
6//! that supports these abstractions.
7//!
8//! [`embedded-hal`]: https://crates.io/crates/embedded-hal
9//! [`embedded-hal-async`]: https://crates.io/crates/embedded-hal-async
10
11#![forbid(unsafe_code)]
12#![deny(missing_docs)]
13#![no_std]
14
15/// The `AM312` driver.
16#[cfg(feature = "am312")]
17pub mod am312;
18
19/// The `BH1750` driver.
20#[cfg(feature = "bh1750")]
21pub mod bh1750;
22
23/// The `DHT22` driver.
24#[cfg(feature = "dht22")]
25pub mod dht22;
26
27/// The `DS18B20` driver.
28#[cfg(feature = "ds18b20")]
29pub mod ds18b20;