AVRly - AVR Development Resources
ccs811_config_t Struct Reference

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
 

Detailed Description

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.

Definition at line 86 of file ccs811.h.

Member Data Documentation

◆ drive_mode

ccs811_drive_mode_t ccs811_config_t::drive_mode

Definition at line 88 of file ccs811.h.

◆ wake_pin_enabled

bool ccs811_config_t::wake_pin_enabled

Definition at line 89 of file ccs811.h.

◆ interrupt_dataready

bool ccs811_config_t::interrupt_dataready

Definition at line 90 of file ccs811.h.

◆ interrupt_threshold

bool ccs811_config_t::interrupt_threshold

Definition at line 91 of file ccs811.h.


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