nrfcxx  0.1.0
C++-17 Framework for Nordic nRF5 Devices
Data Fields
nrfcxx::sensor::ccs811::version_s Struct Reference

Aggregate identity and version from hardware and firmware registers. More...

#include <nrfcxx/sensor/ccs811.hpp>

Data Fields

uint16_t fw_boot_version
 Native byte order boot firmware version identifier. More...
 
uint16_t fw_app_version
 Native byte order application firmware version identifier. More...
 
uint8_t hw_id
 Hardware identifer, which should be HARDWARE_ID. More...
 
uint8_t hw_version
 Hardware version identifier. More...
 

Detailed Description

Aggregate identity and version from hardware and firmware registers.

Field Documentation

◆ fw_app_version

uint16_t nrfcxx::sensor::ccs811::version_s::fw_app_version

Native byte order application firmware version identifier.

  • Bits 12..15 are the major version number.
  • Bits 8..11 are the minor version number.
  • Bits 0..7 encode a sub-minor identifier.

◆ fw_boot_version

uint16_t nrfcxx::sensor::ccs811::version_s::fw_boot_version

Native byte order boot firmware version identifier.

  • Bits 12..15 are the major version number.
  • Bits 8..11 are the minor version number.
  • Bits 0..7 encode a sub-minor identifier.

◆ hw_id

uint8_t nrfcxx::sensor::ccs811::version_s::hw_id

Hardware identifer, which should be HARDWARE_ID.

If the value does not match HARDWARE_ID assume the sensor is not present.

◆ hw_version

uint8_t nrfcxx::sensor::ccs811::version_s::hw_version

Hardware version identifier.

The high nybble should be 1; the low nybble identifies a build variant.


The documentation for this struct was generated from the following file: