11#ifndef M5_UNIT_ENV_UNIT_SCD4X_DETAIL_HPP
12#define M5_UNIT_ENV_UNIT_SCD4X_DETAIL_HPP
Internal helpers shared across the SCD4x family (SCD40/SCD41/SCD43)
Top level namespace of M5Stack.
constexpr uint8_t VARIANT_NIBBLE_SCD43
SCD43 variant nibble (bits[15..12] == 0b0101)
Definition unit_SCD4x_detail.hpp:29
constexpr uint8_t VARIANT_NIBBLE_MASK
Mask for the variant nibble (word[0] bits[15..12]) of get_sensor_variant (0x202F)
Definition unit_SCD4x_detail.hpp:26
constexpr uint8_t VARIANT_NIBBLE_SCD41
SCD41 variant nibble (bits[15..12] == 0b0001)
Definition unit_SCD4x_detail.hpp:28
constexpr uint8_t VARIANT_NIBBLE_SCD40
SCD40 variant nibble (bits[15..12] == 0b0000)
Definition unit_SCD4x_detail.hpp:27
constexpr bool is_sensor_variant(const uint8_t variant_high_byte, const uint8_t nibble)
Does the get_sensor_variant high byte indicate the given variant?
Definition unit_SCD4x_detail.hpp:38