simple CCS811 driver
Dependencies: AMS_ENS210_temp_humid_sensor
Dependents: TBSense2_Sensor_Demo
Fork of AMS_CCS811_gas_sensor by
Revision 15:cf658680c53f, committed 2019-03-05
- Comitter:
- Steven Cooreman
- Date:
- Tue Mar 05 20:18:27 2019 +0100
- Parent:
- 14:0e8f5bf68b50
- Commit message:
- Added FW v2.0.0 for CCS811 and introduced usage of mbed_trace
Changed in this revision
diff -r 0e8f5bf68b50 -r cf658680c53f AMS_CCS811.cpp --- a/AMS_CCS811.cpp Thu May 04 13:08:54 2017 +0000 +++ b/AMS_CCS811.cpp Tue Mar 05 20:18:27 2019 +0100 @@ -1,17 +1,21 @@ #include "AMS_CCS811.h" +#include "AMS_CCS811_fw_2_0_0.h" +#include "mbed_trace.h" + +#define TRACE_GROUP "CCS" AMS_CCS811::AMS_CCS811(I2C * i2c, PinName n_wake_pin) : _n_wake_out(), _addr_out(), _int_data(), _ens210(), _i2c() { _n_wake_out = new (std::nothrow) DigitalOut(n_wake_pin, 1); - _i2c = i2c; + _i2c = i2c; } - + AMS_CCS811::AMS_CCS811(I2C * i2c, PinName n_wake_pin, I2C * ens210_i2c) : _n_wake_out(), _addr_out(), _int_data(), _ens210(), _i2c() { _n_wake_out = new (std::nothrow) DigitalOut(n_wake_pin, 1); _i2c = i2c; ens210_i2c_interface(ens210_i2c); } - + AMS_CCS811::~AMS_CCS811() { delete _n_wake_out; delete _addr_out; @@ -20,25 +24,54 @@ } bool AMS_CCS811::init() { - + bool success = false; - - + _init_errors(); _init_fractions(); set_defaults(); - + temp_reading = 0; humid_reading = 0; - + if (_n_wake_out) { - + char buffer[2]; + + if(i2c_read(HW_ID, buffer, 1) == 1) { + if(buffer[0] != 0x81) { + // not a CCS811 + tr_err("Not a CCS: %02x", buffer[0]); + return false; + } + } else { + return false; + } + + if(i2c_read(STATUS, buffer, 1) == 1) { + if((buffer[0] & 0x10) == 0) { + // does not have valid FW + flash_firmware(); + } + } else { + return false; + } + + if(i2c_read(FW_APP_VERSION, buffer, 2) == 2) { + tr_warn("CCS version %02x %02x", buffer[0], buffer[1]); + if (buffer[0] < CCS_FW_UPGRADE_VERSION) { + tr_warn("Flashing Firmware"); + flash_firmware(); + } + } else { + return false; + } + int fw_mode = firmware_mode(); - - if (fw_mode == 1) { + + if (fw_mode == 1) { success = write_config(); enable_ens210(true); - + } else if (fw_mode == 0) { // is in boot mode, needs to be loaded into app mode if (boot_app_start()) // if succesfully writes to app_start, retry init success = init(); @@ -48,33 +81,163 @@ return success; } +bool AMS_CCS811::flash_firmware() { + // kick into bootloader mode + int fw_mode = firmware_mode(); + if (fw_mode == 1) { + const char reset_sequence[] = {0x11, 0xE5, 0x72, 0x8A}; + if(i2c_write(0xFF, (char*)reset_sequence, 4) == 4) { + fw_mode = firmware_mode(); + if(fw_mode == 1) { + tr_err("Couldn't exit app mode"); + return false; + } + } else { + tr_err("Couldn't issue reset command"); + return false; + } + } + + // assert nwake + if (_n_wake_out != NULL) { + int write_count; + + _n_wake_out->write(0); + wait_ms(100); + + // erase current FW + static const char erase_sequence[4] = {0xE7, 0xA7, 0xE6, 0x09}; + write_count = 0; + _i2c->start(); + if(_i2c->write(CCS811_SLAVE_ADDR_W) == 1) { + if(_i2c->write(FW_ERASE) == 1) { + for (size_t i = 0; i < 4; i++) { + if(_i2c->write(erase_sequence[i]) == 1) write_count++; + else new_error(CCS811_LIB_I2CWRITE_ID); + } + } else new_error(CCS811_LIB_REG_ADDR_ID); + } else new_error(CCS811_LIB_SLAVE_W_ID); + _i2c->stop(); + + if (write_count != 4) { + _n_wake_out->write(1); + return false; + } + tr_info("CCS FW erased"); + wait_ms(500); + + // upload new FW + tr_info("uploading new FW"); + char payload[8]; + for(size_t offset = 0; offset < 5120; offset += 8) { + for(size_t j = 0; j < 8; j++) { + payload[j] = ams_fw_image[offset + j]; + } + + write_count = 0; + _i2c->start(); + if(_i2c->write(CCS811_SLAVE_ADDR_W) == 1) { + if(_i2c->write(FW_FLASH) == 1) { + for (size_t j = 0; j < 8; j++) { + if(_i2c->write(payload[j]) == 1) write_count++; + else new_error(CCS811_LIB_I2CWRITE_ID); + } + } else new_error(CCS811_LIB_REG_ADDR_ID); + } else new_error(CCS811_LIB_SLAVE_W_ID); + _i2c->stop(); + + wait_ms(50); + + if (write_count != 8) { + _n_wake_out->write(1); + tr_err("flash error"); + return false; + } + + tr_debug("Flashed byte %d of 5120", offset); + } + tr_info("CCS FW uploaded"); + + // verify new FW + write_count = 0; + _i2c->start(); + if(_i2c->write(CCS811_SLAVE_ADDR_W) == 1) { + if(_i2c->write(FW_VERIFY) == 1) { + write_count = 1; + } else new_error(CCS811_LIB_REG_ADDR_ID); + } else new_error(CCS811_LIB_SLAVE_W_ID); + _i2c->stop(); + + wait_ms(500); + + if (write_count != 1) { + _n_wake_out->write(1); + tr_err("Failed to issue verify"); + return false; + } + + char status = 0; + _i2c->start(); + if(_i2c->write(CCS811_SLAVE_ADDR_W) == 1) { + if(_i2c->write(STATUS) == 1) { + _i2c->start(); + if(_i2c->write(CCS811_SLAVE_ADDR_R) == 1) { + status = _i2c->read(0); + } else new_error(CCS811_LIB_SLAVE_R_ID); + } else new_error(CCS811_LIB_REG_ADDR_ID); + } else new_error(CCS811_LIB_SLAVE_W_ID); + _i2c->stop(); + + if (status == 0) { + tr_err("Failed update"); + _n_wake_out->write(1); + return false; + } + + if ((status & 0x30) != 0x30) { + tr_err("Failed verify"); + _n_wake_out->write(1); + return false; + } + + // boot into new FW + tr_info("upgraded"); + _n_wake_out->write(1); + wait_ms(50); + return boot_app_start(); + } else { + tr_err("No nWAKE available"); + return false; + } +} + void AMS_CCS811::i2c_interface(I2C * i2c) { _i2c = i2c; } - + bool AMS_CCS811::ens210_i2c_interface(I2C * i2c) { bool success; - + if (_ens210 == NULL) { _ens210 = new (std::nothrow) AMS_ENS210(i2c, true, true); if (_ens210 != NULL) { if (_ens210->init()) { success = _ens210->start(); } - } + } } else { _ens210->i2c_interface(i2c); success = true; } - + if (!success) new_error(CCS811_LIB_ENS210_INIT_ID); - + return success; } bool AMS_CCS811::enable_ens210(bool enable) { - + _ens210_enabled = false; if (_ens210 != NULL) { if (_ens210->i2c_interface() != NULL) _ens210_enabled = enable; @@ -87,7 +250,7 @@ enable_ens210(_ens210_enabled); // Make sure the state is representive return _ens210_enabled; } - + void AMS_CCS811::ens210_poll_interval(int poll_ms) { _ens210_poll_split = poll_ms; enable_ens210(_ens210_enabled); // makes sure the state is representive, and will also update the timer @@ -99,66 +262,66 @@ int AMS_CCS811::firmware_mode() { int firmware_result = -1; - + clear_errors(); - + read_byte_result read_result = read_status(); if (read_result.success) { firmware_result = (read_result.byte >> 7) & 1; } - + return firmware_result; } bool AMS_CCS811::mode(OP_MODES mode) { clear_errors(); - + OP_MODES old = _mode; // incase the write fails, to roll back _mode = mode; - + bool success = write_config(); if (!success) _mode = old; - + return success; } AMS_CCS811::OP_MODES AMS_CCS811::mode() { clear_errors(); - + OP_MODES result = INVALID; - + read_byte_result read_result = read_config(); if (read_result.success) { int mode = (read_result.byte >> 4) & 0b111; result = mode > 4 ? INVALID : (OP_MODES)mode; } - + return result; } -bool AMS_CCS811::addr_mode(bool high) { +bool AMS_CCS811::addr_mode(bool high) { _addr_dir = high; if (_addr_out != NULL) _addr_out->write(_addr_dir); - + update_slave_addr(); - + return addr_mode() == high; } bool AMS_CCS811::addr_mode() { _addr_dir = false; if (_addr_out != NULL) { - _addr_dir = _addr_out->read(); + _addr_dir = _addr_out->read(); } - + return _addr_dir; } bool AMS_CCS811::addr_pin(PinName pin) { _addr_out = _addr_out == NULL ? new (std::nothrow) DigitalOut(pin) : new (_addr_out) DigitalOut(pin); addr_mode(_addr_dir); - + return _addr_out != NULL; } @@ -171,14 +334,14 @@ char bytes[4]; if (humid > CCS811_MAX_HUMID) humid = CCS811_MAX_HUMID; if (humid < 0) humid = 0; - + temp += 25; if (temp > CCS811_MAX_TEMP) humid = CCS811_MAX_TEMP; if (temp < 0) temp = 0; - + float_to_short(humid, bytes); float_to_short(temp, bytes+2); - + return i2c_write(ENV_DATA, bytes, 4) == 4; } @@ -186,30 +349,30 @@ int AMS_CCS811::has_new_data() { clear_errors(); - + int result = -1; - + char meas_mode[1]; if(i2c_read(MEAS_MODE, meas_mode, 1) == 1) { // one read here is quicker than calling read_config() twice - + int curr_mode = (meas_mode[0] >> 4) & 0b111; if (curr_mode < 5) { if (curr_mode > 0) { // check for all valid modes other than idle if (((meas_mode[0] >> 3) & 1) == 0) { // check if interrupts are disabled - char status[1]; + char status[1]; if (i2c_read(STATUS, status, 1) == 1) // for some reason the status register in ALG_RESULT_DATA is not updated after reading data, however the STATUS register is result = (status[0] >> 3) & 1; - + } else result = 1; - - if (result == 1) + + if (result == 1) if (i2c_read(ALG_RESULT_DATA, _alg_result_data, 8) != 8) result = -1; - - + + } else result = 0; // return 0 when in idle } else new_error(CCS811_LIB_INV_MODE_ID); } - + return result; } @@ -235,20 +398,20 @@ bool AMS_CCS811::error_status() { bool result = false; - + read_byte_result read_result = read_status(); if (read_result.success) { result = read_result.byte & 1; } - + result = result || (_error_count > 0); - + return result; } - + AMS_CCS811::ccs811_errors AMS_CCS811::errors() { ccs811_errors error_result; - + char byte[1]; if (i2c_read(ERROR_ID, byte, 1) == 1) { for(int i = 0; i < CCS811_ERR_NUM; i++) { @@ -262,54 +425,54 @@ error_result.codes[error_result.count++] = i + CCS811_ERR_NUM; } } - + return error_result; - + } const char * AMS_CCS811::error_string(int err_code){ static char result[255]; result[0] = 0; - if (err_code < CCS811_TOTAL_ERR_NUM && err_code > -1) + if (err_code < CCS811_TOTAL_ERR_NUM && err_code > -1) strcpy(result, _error_strings[err_code]); - else + else sprintf(result, "Invalid Code: %d is out of range (0 - %d)", err_code, CCS811_TOTAL_ERR_NUM-1); - + return result; } bool AMS_CCS811::enable_interupt(bool enable) { bool old = _int_data_enabled; // incase the write fails, to roll back _int_data_enabled = enable; - + bool success = write_config(); if (!success) _int_data_enabled = old; - + return success; } int AMS_CCS811::interupt_enabled() { int enabled = -1; - + read_byte_result read_result = read_config(); if (read_result.success) { enabled = (read_result.byte >> 3) & 1; } - + return enabled; } bool AMS_CCS811::interrupt_pin(PinName pin) { bool success = false; - + _int_data = _int_data == NULL ? new (std::nothrow) InterruptIn(pin) : new (_int_data) InterruptIn(pin); if (_int_data != NULL) { _int_data->fall(callback(this, &AMS_CCS811::_isr_data)); success = true; } - + return success; } @@ -319,7 +482,7 @@ /** Private **/ void AMS_CCS811::set_defaults() { - if (_mode == NULL) + if (_mode == NULL) _mode = CONFIG_OP_MODE; if (_addr_dir == NULL) _addr_dir = CONFIG_ADDR_DIR; @@ -327,7 +490,7 @@ _int_data_enabled = CONFIG_INTR; if (_ens210_poll_split == NULL) _ens210_poll_split = CONFIG_ENS210_POLL; - + update_slave_addr(); } @@ -380,7 +543,7 @@ } void AMS_CCS811::_init_fractions() { - + fractions[0] = 0.5; fractions[1] = 0.25; fractions[2] = 0.125; @@ -390,7 +553,7 @@ fractions[6] = 0.0078125; fractions[7] = 0.00390625; fractions[8] = 0.001953125; - + } void AMS_CCS811::float_to_short(float in, char * output) { @@ -400,15 +563,15 @@ uint16_t _short = 0; for (int i = 0; i < 9; i++) { - if (dec_part == 0) break; + if (dec_part == 0) break; if (dec_part >= fractions[i]) { dec_part -= fractions[i]; _short |= 256 >> i; } } - + _short |= int_part << 9; - + output[0] = _short >> 8; output[1] = _short; } @@ -416,7 +579,7 @@ void AMS_CCS811::update_slave_addr() { _slave_addr = addr_mode() ? CCS811_SLAVE_ADDR_RAW_H : CCS811_SLAVE_ADDR_RAW_L; } - + void AMS_CCS811::_isr_data() { has_new_data(); // populate the data array _isr_data_fp.call(); @@ -444,26 +607,26 @@ result.success = true; result.byte = byte[0]; } - + return result; } bool AMS_CCS811::boot_app_start() { bool success = false; - + if (i2c_write(APP_START, NULL, 0) == 0) { wait_ms(70); success = true; } - + return success; } int AMS_CCS811::i2c_read(char reg_addr, char* output, int len) { int read_count = 0; - if (_n_wake_out != NULL) { // check nWAKE pin is set - _n_wake_out->write(0); // Hold low + if (_n_wake_out != NULL) { // check nWAKE pin is set + _n_wake_out->write(0); // Hold low wait_us(CCS811_T_AWAKE); // tAWAKE time to allow sensor I2C to wake up if (_i2c != NULL) { // check I2C interface is set _i2c->start(); // send start condition for write @@ -478,17 +641,17 @@ } else new_error(CCS811_LIB_SLAVE_R_ID); } else new_error(CCS811_LIB_REG_ADDR_ID); } else new_error(CCS811_LIB_SLAVE_W_ID); - _i2c->stop(); // send stop condition + _i2c->stop(); // send stop condition } else new_error(CCS811_LIB_I2C_ID); _n_wake_out->write(1); // Set back to high wait_us(CCS811_T_DWAKE); // tDWAKE time to allow sensor I2C to sleep } else new_error(CCS811_LIB_N_WAKE_ID); - + return read_count; } int AMS_CCS811::i2c_write(char reg_addr, char* input, int len) { - + int write_count = -1; if (_n_wake_out != NULL) { // check nWAKE pin is set _n_wake_out->write(0); // Hold low @@ -504,11 +667,11 @@ } } else new_error(CCS811_LIB_REG_ADDR_ID); } else new_error(CCS811_LIB_SLAVE_W_ID); - _i2c->stop(); // send stop condition + _i2c->stop(); // send stop condition } else new_error(CCS811_LIB_I2C_ID); _n_wake_out->write(1); // set back to high wait_us(CCS811_T_DWAKE); // tDWAKE time to allow sensor I2C to sleep }else new_error(CCS811_LIB_N_WAKE_ID); - + return write_count; } \ No newline at end of file
diff -r 0e8f5bf68b50 -r cf658680c53f AMS_CCS811.h --- a/AMS_CCS811.h Thu May 04 13:08:54 2017 +0000 +++ b/AMS_CCS811.h Tue Mar 05 20:18:27 2019 +0100 @@ -21,9 +21,9 @@ #define CCS811_SLAVE_ADDR_RAW_H 0x5B #define CCS811_SLAVE_ADDR_RAW_L 0x5A #define CCS811_SLAVE_ADDR_RAW _slave_addr -#define CCS811_SLAVE_ADDR CCS811_SLAVE_ADDR_RAW << 1 +#define CCS811_SLAVE_ADDR CCS811_SLAVE_ADDR_RAW << 1 #define CCS811_SLAVE_ADDR_W CCS811_SLAVE_ADDR -#define CCS811_SLAVE_ADDR_R CCS811_SLAVE_ADDR | 1 +#define CCS811_SLAVE_ADDR_R CCS811_SLAVE_ADDR | 1 #define MEAS_MODE 0x01 #define STATUS 0x00 @@ -33,6 +33,13 @@ #define ENV_DATA 0x05 #define ERROR_ID 0xE0 +#define HW_ID 0x20 +#define HW_VERSION 0x21 +#define FW_BOOT_VERSION 0x23 +#define FW_APP_VERSION 0x24 +#define FW_ERASE 0xF1 +#define FW_FLASH 0xF2 +#define FW_VERIFY 0xF3 #define APP_START 0xF4 #define CCS811_T_AWAKE 55 // us - time taken for sensor I2C to become active @@ -92,24 +99,24 @@ CONSTANT, /**< Measurement every 250ms - Only raw data available */ INVALID /**< Invalid bit configuration/Error Occured */ }; - + /** Holds error information. * */ struct ccs811_errors { int count; /**< Number of total errors */ int codes[CCS811_TOTAL_ERR_NUM]; /**< Array of active error codes */ - + ccs811_errors() : count(0) {} }; - + /** Create an AMS_CCS811 instance * * @param i2c The I2C interface to use for communication * @param n_wake_pin Pin nWAKE is attached to */ AMS_CCS811(I2C * i2c, PinName n_wake_pin); - + /** Create an AMS_CCS811 instance * * @param i2c The I2C interface to use for communication @@ -117,24 +124,30 @@ * @param ens210_i2c The I2C interface for an attached AMS_ENS210 */ AMS_CCS811(I2C * i2c, PinName n_wake_pin, I2C * ens210_i2c); - + /** Destroy the AMS_CCS811 instance */ ~AMS_CCS811(); - + /** Initalise the sensor * * @return Intalisation success */ bool init(); - + + /** Overwrite the sensor's firmware + * + * @return upload success + */ + bool flash_firmware(); + /** Set the I2C interface * * @param i2c The I2C interface to use for communication * */ void i2c_interface(I2C * i2c); - + /** Set the ENS210 I2C interface * * @param i2c The I2C interface for an attached AMS_ENS210 @@ -142,42 +155,42 @@ * @return Success */ bool ens210_i2c_interface(I2C * i2c); - + /** Set whether the attached AMS_ENS210 is enabled. * If an I2C interface is not set for the ENS210, calling this method will have no effect. - * + * * @param enabled True for enabled, false for disabled * * @return enabled True for enabled, false for disabled */ bool enable_ens210(bool enable); - + /** Get whether the attached AMS_ENS210 is enabled. - * + * * @return enabled True for enabled, false for disabled * */ bool ens210_is_enabled(); - + /** Set the AMS_ENS210 poll interval * * @param poll_ms Poll interval in ms * */ void ens210_poll_interval(int poll_ms); - + /** Get the AMS_ENS210 poll interval * * @return The poll interval in ms */ int ens210_poll_interval(); - + /** Get the current firmware mode * * @return 1 application mode, 0 for boot mode, -1 for error */ int firmware_mode(); - + /** Set the operation mode \n * Notes: \n 1.\ When a sensor operating mode is changed to a new mode with\n * a lower sample rate (e.g.\ from SECOND to SIXTY_SECOND), it should be\n @@ -193,13 +206,13 @@ * @return Write success */ bool mode(OP_MODES mode); - + /** Get the current power mode * * @return The current OP_MODES mode */ AMS_CCS811::OP_MODES mode(); - + /** Set the ADDR mode \n * * @param high True sets to high, false to low @@ -207,13 +220,13 @@ * @return Write success */ bool addr_mode(bool high); - + /** Get the the ADDR mode * * @return The current ADDR mode, true for high, false for low */ bool addr_mode(); - + /** Set the ADDR pin * * @param pin Pin ADDR is attached to @@ -221,13 +234,13 @@ * @return Write success */ bool addr_pin(PinName pin); - + /** Get the the ADDR pin * * @return The addr pin */ PinName addr_pin(); - + /** Set the nWAKE pin * * @param pin Pin nWAKE is attached to @@ -235,13 +248,13 @@ * @return Write success */ bool n_wake_pin(PinName pin); - + /** Get the the nWAKE pin * * @return The nWAKE pin */ PinName n_wake_pin(); - + /** Set the relative humidity (%) and temperature (C).\ \n * Use when AMS ENS210 is not linked.\ \n * Humidity values are clipped between 0 and CCS811_MAX_HUMID.\ \n @@ -250,28 +263,28 @@ * @return Write success */ bool env_data(float humid, float temp); - + /** Get the sensor collection state * Use when interrupts are disabled. * * @return Current collection state, 1 for new data ready, 0 for data not ready and -1 for error */ int has_new_data(); - + /** Get the most recent CO2 measurement.\ \n * Must call has_new_data() first when when interupts are disabled otherwise the same data will be returned * * @return Most recent eCO2 measurement in ppm */ uint16_t co2_read(); - + /** Get the most recent TVOC measurement.\ \n * Must call has_new_data() first when when interupts are disabled otherwise the same data will be returned * * @return Most recent TVOC measurement in ppb */ uint16_t tvoc_read(); - + /** Get the most recent RAW data.\ \n * Must call has_new_data() first when NOT in CONSTANT mode and interupts are disabled otherwise the same data will be returned.\ \n * When in CONSTANT mode only this read method will return anything other than 0 or NULL.\ If 0 is returned, check for errors. @@ -279,33 +292,33 @@ * @return Most recent RAW data */ uint16_t raw_read(); - + /** Get the most recent Tempurature(C) measurement from the ENS210 (if attached and enabled).\ \n * Will be at most as old as the ENS210 poll time * * @return Most recent Tempurature(C) measurement from the ENS210 */ float temp_read(); - + /** Get the most recent Relative Humidity(%) measurement from the ENS210 (if attached and enabled).\ \n * Will be at most as old as the ENS210 poll time * * @return Most recent Relative Humidity(%) measurement from the ENS210 */ float humid_read(); - + /** Get current error status * - * @return True when error has occured, false when no error has occured + * @return True when error has occured, false when no error has occured */ bool error_status(); - + /** Get the latest errors. * * @return Latest errors. */ ccs811_errors errors(); - + /** Get the error string. * * @param err_code Error code to be translated @@ -313,7 +326,7 @@ * @return Error String. */ const char * error_string(int err_code); - + /** Attach a function to be called when data is ready. * Calling this method enables interupts * @@ -327,7 +340,7 @@ interrupt_pin(pin); return enable_interupt(true); } - + /** Attach a member function to be called when data is ready. * Calling this method enables interupts * @@ -343,24 +356,24 @@ interrupt_pin(pin); return enable_interupt(true); } - + /** Set whether the data ready interupt is enabled.\ \n * Note: If this method fails, the state of the config register cannot be guaranteed.\ \n - * Check errors and ensure all config settings are as expected. - * + * Check errors and ensure all config settings are as expected. + * * @param enabled True for enabled, false for disabled * * @return Write success */ bool enable_interupt(bool enable); - + /** Get whether the data ready interupt is enabled. - * + * * * @return 1 for enabled, 0 for disabled, -1 for error */ int interupt_enabled(); - + /** Set the nINT pin * * @param pin Pin nINT is attached to @@ -368,23 +381,23 @@ * @return Write success */ bool interrupt_pin(PinName pin); - + /** Get the the nINT pin * * @return The nINT pin */ PinName interrupt_pin(); - - - - + + + + private: I2C* _i2c; - + bool _addr_dir; int _slave_addr; void update_slave_addr(); - + AMS_ENS210 *_ens210; bool _ens210_enabled; int _ens210_poll_split; @@ -393,34 +406,34 @@ void ens210_isr(); float temp_reading; float humid_reading; - + float fractions[9]; void _init_fractions(); void float_to_short(float in, char * output); - + OP_MODES _mode; - + void set_defaults(); - + bool _errors[CCS811_LIB_ERR_NUM]; int _error_count; char _error_strings[CCS811_TOTAL_ERR_NUM][255]; void _init_errors(); void clear_errors(); void new_error(int error_id); - + DigitalOut *_n_wake_out; DigitalOut *_addr_out; - + char _alg_result_data[8]; - + FunctionPointer _isr_data_fp; bool _int_data_enabled; InterruptIn *_int_data; void _isr_data(); - + bool write_config(); - + struct read_byte_result { bool success; uint8_t byte; @@ -428,9 +441,9 @@ }; read_byte_result read_config(); read_byte_result read_status(); - + bool boot_app_start(); - + int i2c_read(char reg_addr, char* output, int len); int i2c_write(char reg_addr, char* input, int len);
diff -r 0e8f5bf68b50 -r cf658680c53f AMS_CCS811_fw_2_0_0.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/AMS_CCS811_fw_2_0_0.h Tue Mar 05 20:18:27 2019 +0100 @@ -0,0 +1,333 @@ +/** +* @section DESCRIPTION +* A firmware upgrade file for the AMS CCS811 sensor +* +*/ +#ifndef AMS_CCS811_FW_H +#define AMS_CCS811_FW_H + +#define CCS_FW_UPGRADE_VERSION 0x20 +static const char ams_fw_image[5120] = { + 0x5C, 0x1A, 0xDD, 0xFF, 0x15, 0x25, 0xDD, 0x66, 0xFC, 0x88, 0x80, 0x49, 0x02, 0xDC, 0x17, 0x10, + 0x1F, 0x73, 0x60, 0xAE, 0xF4, 0xA0, 0x5D, 0xDA, 0xCD, 0xCA, 0x94, 0xC6, 0x6B, 0x96, 0x4F, 0xEA, + 0xED, 0xBD, 0xDE, 0xC2, 0xEA, 0xC1, 0x44, 0x8B, 0xF3, 0x7A, 0x4D, 0x61, 0x22, 0x83, 0xE5, 0xAC, + 0x3C, 0xB1, 0x44, 0x5F, 0x91, 0xA2, 0xDC, 0xD2, 0x40, 0x63, 0x1C, 0x11, 0x60, 0x10, 0x33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, 0x1C, 0x49, 0x84, 0x57, 0xCF, 0x87, 0xC2, 0x5E, 0xEC, 0x24, 0x46, 0x20, 0xFA, +}; + +#endif \ No newline at end of file
diff -r 0e8f5bf68b50 -r cf658680c53f CCS811_FW_App_v2-0-0.bin Binary file CCS811_FW_App_v2-0-0.bin has changed