![]() |
LibDriver SGP30
|
sgp30 example driver modules More...
Functions | |
| uint8_t | sgp30_advance_init (void) |
| advance example init | |
| uint8_t | sgp30_advance_deinit (void) |
| advance example deinit | |
| uint8_t | sgp30_advance_read (uint16_t *co2_eq_ppm, uint16_t *tvoc_ppb) |
| advance example read | |
| uint8_t | sgp30_advance_get_serial_id (uint16_t id[3]) |
| advance example get the serial id | |
| uint8_t | sgp30_advance_get_feature (uint8_t *product_type, uint8_t *product_version) |
| advance example get the chip feature | |
| uint8_t | sgp30_advance_set_iaq_baseline (uint16_t tvoc, uint16_t co2_eq) |
| advance example set the chip iaq baseline | |
| uint8_t | sgp30_advance_get_iaq_baseline (uint16_t *tvoc, uint16_t *co2_eq) |
| advance example get the chip iaq baseline | |
| uint8_t | sgp30_advance_set_absolute_humidity (float temp, float rh) |
| advance example set the absolute humidity | |
| uint8_t | sgp30_basic_init (void) |
| basic example init | |
| uint8_t | sgp30_basic_deinit (void) |
| basic example deinit | |
| uint8_t | sgp30_basic_read (uint16_t *co2_eq_ppm, uint16_t *tvoc_ppb) |
| basic example read | |
sgp30 example driver modules
| uint8_t sgp30_advance_deinit | ( | void | ) |
advance example deinit
Definition at line 103 of file driver_sgp30_advance.c.
| uint8_t sgp30_advance_get_feature | ( | uint8_t * | product_type, |
| uint8_t * | product_version ) |
advance example get the chip feature
| [out] | *product_type | pointer to a product type buffer |
| [out] | *product_version | pointer to a product version buffer |
Definition at line 168 of file driver_sgp30_advance.c.
| uint8_t sgp30_advance_get_iaq_baseline | ( | uint16_t * | tvoc, |
| uint16_t * | co2_eq ) |
advance example get the chip iaq baseline
| [out] | *tvoc | pointer to a tvoc buffer |
| [out] | *co2_eq | pointer to a co2 buffer |
Definition at line 212 of file driver_sgp30_advance.c.
| uint8_t sgp30_advance_get_serial_id | ( | uint16_t | id[3] | ) |
advance example get the serial id
| [out] | *id | pointer to a serial id buffer |
Definition at line 146 of file driver_sgp30_advance.c.
| uint8_t sgp30_advance_init | ( | void | ) |
advance example init
Definition at line 49 of file driver_sgp30_advance.c.
| uint8_t sgp30_advance_read | ( | uint16_t * | co2_eq_ppm, |
| uint16_t * | tvoc_ppb ) |
advance example read
| [out] | *co2_eq_ppm | pointer to a co2 buffer |
| [out] | *tvoc_ppb | pointer to a tvoc buffer |
Definition at line 125 of file driver_sgp30_advance.c.
| uint8_t sgp30_advance_set_absolute_humidity | ( | float | temp, |
| float | rh ) |
advance example set the absolute humidity
| [in] | temp | current temperature |
| [in] | rh | current relative humidity |
Definition at line 234 of file driver_sgp30_advance.c.
| uint8_t sgp30_advance_set_iaq_baseline | ( | uint16_t | tvoc, |
| uint16_t | co2_eq ) |
advance example set the chip iaq baseline
| [in] | tvoc | current tvoc |
| [in] | co2_eq | current co2 eq |
Definition at line 190 of file driver_sgp30_advance.c.
| uint8_t sgp30_basic_deinit | ( | void | ) |
basic example deinit
Definition at line 103 of file driver_sgp30_basic.c.
| uint8_t sgp30_basic_init | ( | void | ) |
basic example init
Definition at line 49 of file driver_sgp30_basic.c.
| uint8_t sgp30_basic_read | ( | uint16_t * | co2_eq_ppm, |
| uint16_t * | tvoc_ppb ) |
basic example read
| [out] | *co2_eq_ppm | pointer to a co2 buffer |
| [out] | *tvoc_ppb | pointer to a tvoc buffer |
Definition at line 125 of file driver_sgp30_basic.c.