LibDriver SGP40
Loading...
Searching...
No Matches
sgp40 example driver function

sgp40 example driver modules More...

Collaboration diagram for sgp40 example driver function:

Functions

uint8_t sgp40_basic_init (void)
 basic example init
uint8_t sgp40_basic_deinit (void)
 basic example deinit
uint8_t sgp40_basic_read (float temperature, float humidity, int32_t *voc_gas_index)
 basic example read
uint8_t sgp40_basic_read_without_compensation (int32_t *voc_gas_index)
 basic example read without compensation
uint8_t sgp40_basic_get_serial_id (uint16_t id[3])
 basic example get serial id

Detailed Description

sgp40 example driver modules

Function Documentation

◆ sgp40_basic_deinit()

uint8_t sgp40_basic_deinit ( void )

basic example deinit

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

Definition at line 95 of file driver_sgp40_basic.c.

Here is the call graph for this function:

◆ sgp40_basic_get_serial_id()

uint8_t sgp40_basic_get_serial_id ( uint16_t id[3])

basic example get serial id

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

Definition at line 192 of file driver_sgp40_basic.c.

Here is the call graph for this function:

◆ sgp40_basic_init()

uint8_t sgp40_basic_init ( void )

basic example init

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

Definition at line 50 of file driver_sgp40_basic.c.

Here is the call graph for this function:

◆ sgp40_basic_read()

uint8_t sgp40_basic_read ( float temperature,
float humidity,
int32_t * voc_gas_index )

basic example read

Parameters
[in]temperaturecurrent temperature in C
[in]humiditycurrent humidity in %
[out]*voc_gas_indexpointer to a voc gas index buffer
Returns
status code
  • 0 success
  • 1 read failed
Note
none

Definition at line 116 of file driver_sgp40_basic.c.

Here is the call graph for this function:

◆ sgp40_basic_read_without_compensation()

uint8_t sgp40_basic_read_without_compensation ( int32_t * voc_gas_index)

basic example read without compensation

Parameters
[out]*voc_gas_indexpointer to a voc gas index buffer
Returns
status code
  • 0 success
  • 1 read failed
Note
none

Definition at line 164 of file driver_sgp40_basic.c.

Here is the call graph for this function: