AVRly - AVR Development Resources
|
Config object, to be instantiated and values assigned to members before passing the object address into the function init_ccs811(). More...
#include <ccs811.h>
Public Attributes | |
ccs811_drive_mode_t | drive_mode |
bool | wake_pin_enabled |
bool | interrupt_dataready |
bool | interrupt_threshold |
Config object, to be instantiated and values assigned to members before passing the object address into the function init_ccs811().
If wake_pin_enabled is set to true, WAKE must be connected to a GPIO pin and defined in pin_defines.h. Otherwise, tie the WAKE pin on the CCS811 to ground. If interrupt_dataready is set to true, INT pin should be connected to a GPIO and defined in pindefines.h. That pin will be driven low when new data is ready. If both interrupt_dataready AND interrupt_threshold are set to true, the INT pin is driven low when ALG_RESULT_DATA crosses one of the thresholds set in the THRESHOLDS register.
ccs811_drive_mode_t ccs811_config_t::drive_mode |