LibDriver SGP30
Loading...
Searching...
No Matches
sgp30 example driver function

sgp30 example driver modules More...

Collaboration diagram for sgp30 example driver function:

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

Detailed Description

sgp30 example driver modules

Function Documentation

◆ sgp30_advance_deinit()

uint8_t sgp30_advance_deinit ( void )

advance example deinit

Returns
status code
  • 0 success
  • 1 deinit failed
Note
none

Definition at line 103 of file driver_sgp30_advance.c.

Here is the call graph for this function:

◆ sgp30_advance_get_feature()

uint8_t sgp30_advance_get_feature ( uint8_t * product_type,
uint8_t * product_version )

advance example get the chip feature

Parameters
[out]*product_typepointer to a product type buffer
[out]*product_versionpointer to a product version buffer
Returns
status code
  • 0 success
  • 1 get feature failed
Note
none

Definition at line 168 of file driver_sgp30_advance.c.

Here is the call graph for this function:

◆ sgp30_advance_get_iaq_baseline()

uint8_t sgp30_advance_get_iaq_baseline ( uint16_t * tvoc,
uint16_t * co2_eq )

advance example get the chip iaq baseline

Parameters
[out]*tvocpointer to a tvoc buffer
[out]*co2_eqpointer to a co2 buffer
Returns
status code
  • 0 success
  • 1 get iaq baseline failed
Note
none

Definition at line 212 of file driver_sgp30_advance.c.

Here is the call graph for this function:

◆ sgp30_advance_get_serial_id()

uint8_t sgp30_advance_get_serial_id ( uint16_t id[3])

advance example get the serial id

Parameters
[out]*idpointer to a serial id buffer
Returns
status code
  • 0 success
  • 1 get serial id failed
Note
none

Definition at line 146 of file driver_sgp30_advance.c.

Here is the call graph for this function:

◆ sgp30_advance_init()

uint8_t sgp30_advance_init ( void )

advance example init

Returns
status code
  • 0 success
  • 1 init failed
Note
none

Definition at line 49 of file driver_sgp30_advance.c.

Here is the call graph for this function:

◆ sgp30_advance_read()

uint8_t sgp30_advance_read ( uint16_t * co2_eq_ppm,
uint16_t * tvoc_ppb )

advance example read

Parameters
[out]*co2_eq_ppmpointer to a co2 buffer
[out]*tvoc_ppbpointer to a tvoc buffer
Returns
status code
  • 0 success
  • 1 read failed
Note
none

Definition at line 125 of file driver_sgp30_advance.c.

Here is the call graph for this function:

◆ sgp30_advance_set_absolute_humidity()

uint8_t sgp30_advance_set_absolute_humidity ( float temp,
float rh )

advance example set the absolute humidity

Parameters
[in]tempcurrent temperature
[in]rhcurrent relative humidity
Returns
status code
  • 0 success
  • 1 set absolute humidity failed
Note
none

Definition at line 234 of file driver_sgp30_advance.c.

Here is the call graph for this function:

◆ sgp30_advance_set_iaq_baseline()

uint8_t sgp30_advance_set_iaq_baseline ( uint16_t tvoc,
uint16_t co2_eq )

advance example set the chip iaq baseline

Parameters
[in]tvoccurrent tvoc
[in]co2_eqcurrent co2 eq
Returns
status code
  • 0 success
  • 1 set iaq baseline failed
Note
none

Definition at line 190 of file driver_sgp30_advance.c.

Here is the call graph for this function:

◆ sgp30_basic_deinit()

uint8_t sgp30_basic_deinit ( void )

basic example deinit

Returns
status code
  • 0 success
  • 1 deinit failed
Note
none

Definition at line 103 of file driver_sgp30_basic.c.

Here is the call graph for this function:

◆ sgp30_basic_init()

uint8_t sgp30_basic_init ( void )

basic example init

Returns
status code
  • 0 success
  • 1 init failed
Note
none

Definition at line 49 of file driver_sgp30_basic.c.

Here is the call graph for this function:

◆ sgp30_basic_read()

uint8_t sgp30_basic_read ( uint16_t * co2_eq_ppm,
uint16_t * tvoc_ppb )

basic example read

Parameters
[out]*co2_eq_ppmpointer to a co2 buffer
[out]*tvoc_ppbpointer to a tvoc buffer
Returns
status code
  • 0 success
  • 1 read failed
Note
none

Definition at line 125 of file driver_sgp30_basic.c.

Here is the call graph for this function: