LibDriver SGP41
Loading...
Searching...
No Matches
sgp41 example driver function

sgp41 example driver modules More...

Collaboration diagram for sgp41 example driver function:

Functions

uint8_t sgp41_basic_init (void)
 basic example init
uint8_t sgp41_basic_deinit (void)
 basic example deinit
uint8_t sgp41_basic_read (float temperature, float humidity, int32_t *voc_gas_index, int32_t *nox_gas_index)
 basic example read
uint8_t sgp41_basic_read_without_compensation (int32_t *voc_gas_index, int32_t *nox_gas_index)
 basic example read without compensation
uint8_t sgp41_basic_get_serial_id (uint16_t id[3])
 basic example get serial id

Detailed Description

sgp41 example driver modules

Function Documentation

◆ sgp41_basic_deinit()

uint8_t sgp41_basic_deinit ( void )

basic example deinit

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

Definition at line 99 of file driver_sgp41_basic.c.

Here is the call graph for this function:

◆ sgp41_basic_get_serial_id()

uint8_t sgp41_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 206 of file driver_sgp41_basic.c.

Here is the call graph for this function:

◆ sgp41_basic_init()

uint8_t sgp41_basic_init ( void )

basic example init

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

Definition at line 51 of file driver_sgp41_basic.c.

Here is the call graph for this function:

◆ sgp41_basic_read()

uint8_t sgp41_basic_read ( float temperature,
float humidity,
int32_t * voc_gas_index,
int32_t * nox_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
[out]*nox_gas_indexpointer to a nox gas index buffer
Returns
status code
  • 0 success
  • 1 read failed
Note
none

Definition at line 121 of file driver_sgp41_basic.c.

Here is the call graph for this function:

◆ sgp41_basic_read_without_compensation()

uint8_t sgp41_basic_read_without_compensation ( int32_t * voc_gas_index,
int32_t * nox_gas_index )

basic example read without compensation

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

Definition at line 174 of file driver_sgp41_basic.c.

Here is the call graph for this function: