|
M5Unit-ENV 1.5.0 git rev:6195a2c
|
Internal helpers shared by SCD40/SCD41 (and future SCD43) More...
#include <cstdint>Go to the source code of this file.
Namespaces | |
| namespace | m5 |
| Top level namespace of M5Stack. | |
| namespace | detail |
| Internal helpers shared across the SCD4x family (SCD40/SCD41/SCD43) | |
Functions | |
| constexpr bool | m5::unit::scd4x::detail::is_sensor_variant (const uint8_t variant_high_byte, const uint8_t nibble) |
| Does the get_sensor_variant high byte indicate the given variant? | |
Internal helpers shared by SCD40/SCD41 (and future SCD43)
Not part of the public API. Included by the SCD4x unit implementations.
|
constexpr |
Does the get_sensor_variant high byte indicate the given variant?
| variant_high_byte | High byte (word[0] bits[15..8]) read from get_sensor_variant (0x202F) |
| nibble | Expected variant nibble (e.g. VARIANT_NIBBLE_SCD41) |
Only bits[15..12] identify the variant; bits[11..0] may differ per unit (datasheet CD_DS_SCD4x ยง3.10.6, issue #38), so compare the high nibble only.