Crate libscd

Source
Expand description

LibSCD is a crate providing both synchronous and asynchronous driver implementations for SCD30 and SCD4x CO2 sensors using the embedded-hal and embedded-hal-async interfaces

§Feature Flags

  • defmt: Derive defmt::Format for the error type
  • sync: Enable the blocking driver implementation for the selected sensors
  • async: Enable the async driver implementation for the selected sensors
  • scd30: Enable the driver for the SCD30 sensor
  • scd4x: Enable the driver for the SCD4x family of sensors
  • scd41: Enable additional features of the SCD4x driver that available only on SCD41 sensors

Modules§

asynchronous
Asynchronous driver implementations using embedded-hal-async. This module needs to be enabled via the async feature flag
error
Error type used by the library
measurement
Shared measurement type used by the various sensors
synchronous
Synchronous (blocking) driver implementations using embedded-hal. This module needs to be enabled via the sync feature flag

Enums§

SensorVariant
SCD4x sensor variant.