56#ifndef CCS_EIGHT_ONE_ONE_DOT_H
57#define CCS_EIGHT_ONE_ONE_DOT_H
70 drive_mode_10sec = 2U,
71 drive_mode_60sec = 3U,
89 bool wake_pin_enabled;
90 bool interrupt_dataready;
91 bool interrupt_threshold;
void ccs811_update_env_data(uint8_t humidity, uint8_t temp)
(Optional) Write environmental data from another sensor to the CCS811.
uint16_t ccs811_get_etvoc_level(void)
Read eTVOC (equivalent total volatile organic compounds) level from sensor.
uint16_t ccs811_get_eco2_level(void)
Read eCO2 (equivalent carbon dioxide) level from sensor.
char * ccs811_error_to_string(void)
For error handling/logging.
ccs811_drive_mode_t
Drive modes 0 to 3.
uint8_t init_ccs811(ccs811_config_t *p_config)
Initialisation routine (run once at startup).
void ccs811_get_alg_result_data(void)
Perform a read operation on all 8 bytes of ALG_RESULT_REGISTER.
bool ccs811_data_ready_check(void)
Read the status register and check if the data ready flag is set.
Config object, to be instantiated and values assigned to members before passing the object address in...