![]() |
LibDriver SCD30
|
scd30 basic driver modules More...
Data Structures | |
| struct | scd30_handle_s |
| scd30 handle structure definition More... | |
| struct | scd30_data_s |
| scd30 data structure definition More... | |
| struct | scd30_info_s |
| scd30 information structure definition More... | |
Typedefs | |
| typedef struct scd30_handle_s | scd30_handle_t |
| scd30 handle structure definition | |
| typedef struct scd30_data_s | scd30_data_t |
| scd30 data structure definition | |
| typedef struct scd30_info_s | scd30_info_t |
| scd30 information structure definition | |
Enumerations | |
| enum | scd30_interface_t { SCD30_INTERFACE_IIC = 0x00 , SCD30_INTERFACE_UART = 0x01 } |
| scd30 interface enumeration definition More... | |
| enum | scd30_bool_t { SCD30_BOOL_FALSE = 0x0000 , SCD30_BOOL_TRUE = 0x0001 } |
| scd30 bool enumeration definition More... | |
Functions | |
| uint8_t | scd30_info (scd30_info_t *info) |
| get chip information | |
| uint8_t | scd30_set_interface (scd30_handle_t *handle, scd30_interface_t interface) |
| set the chip interface | |
| uint8_t | scd30_get_interface (scd30_handle_t *handle, scd30_interface_t *interface) |
| get the chip interface | |
| uint8_t | scd30_init (scd30_handle_t *handle) |
| initialize the chip | |
| uint8_t | scd30_deinit (scd30_handle_t *handle) |
| close the chip | |
| uint8_t | scd30_read (scd30_handle_t *handle, scd30_data_t *data) |
| read the result | |
| uint8_t | scd30_start_measurement_with_pressure_compensation (scd30_handle_t *handle, uint16_t mbar) |
| start the measurement with pressure compensation | |
| uint8_t | scd30_start_measurement (scd30_handle_t *handle) |
| start the measurement | |
| uint8_t | scd30_stop_measurement (scd30_handle_t *handle) |
| stop the measurement | |
| uint8_t | scd30_set_measurement_interval (scd30_handle_t *handle, uint16_t second) |
| set the measurement interval | |
| uint8_t | scd30_get_measurement_interval (scd30_handle_t *handle, uint16_t *second) |
| get the measurement interval | |
| uint8_t | scd30_get_data_ready_status (scd30_handle_t *handle, uint16_t *status) |
| get data ready status | |
| uint8_t | scd30_set_automatic_self_calibration (scd30_handle_t *handle, scd30_bool_t enable) |
| set automatic self calibration | |
| uint8_t | scd30_get_automatic_self_calibration (scd30_handle_t *handle, scd30_bool_t *enable) |
| get automatic self calibration | |
| uint8_t | scd30_set_forced_recalibration (scd30_handle_t *handle, uint16_t co2_ppm) |
| set forced recalibration | |
| uint8_t | scd30_get_forced_recalibration (scd30_handle_t *handle, uint16_t *co2_ppm) |
| get forced recalibration | |
| uint8_t | scd30_set_temperature_offset (scd30_handle_t *handle, uint16_t deg) |
| set temperature offset | |
| uint8_t | scd30_get_temperature_offset (scd30_handle_t *handle, uint16_t *deg) |
| get temperature offset | |
| uint8_t | scd30_temperature_offset_convert_to_register (scd30_handle_t *handle, float deg, uint16_t *reg) |
| convert the temperature offset to the register raw data | |
| uint8_t | scd30_temperature_offset_convert_to_data (scd30_handle_t *handle, uint16_t reg, float *deg) |
| convert the register raw data to the temperature offset | |
| uint8_t | scd30_set_altitude_compensation (scd30_handle_t *handle, uint16_t m) |
| set altitude compensation | |
| uint8_t | scd30_get_altitude_compensation (scd30_handle_t *handle, uint16_t *m) |
| get altitude compensation | |
| uint8_t | scd30_get_firmware_version (scd30_handle_t *handle, uint16_t *version) |
| get firmware version | |
| uint8_t | scd30_soft_reset (scd30_handle_t *handle) |
| soft reset | |
scd30 basic driver modules
| typedef struct scd30_data_s scd30_data_t |
scd30 data structure definition
| typedef struct scd30_handle_s scd30_handle_t |
scd30 handle structure definition
| typedef struct scd30_info_s scd30_info_t |
scd30 information structure definition
| enum scd30_bool_t |
scd30 bool enumeration definition
| Enumerator | |
|---|---|
| SCD30_BOOL_FALSE | false |
| SCD30_BOOL_TRUE | true |
Definition at line 71 of file driver_scd30.h.
| enum scd30_interface_t |
scd30 interface enumeration definition
| Enumerator | |
|---|---|
| SCD30_INTERFACE_IIC | iic interface |
| SCD30_INTERFACE_UART | uart interface |
Definition at line 62 of file driver_scd30.h.
| uint8_t scd30_deinit | ( | scd30_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to an scd30 handle structure |
Definition at line 2220 of file driver_scd30.c.
| uint8_t scd30_get_altitude_compensation | ( | scd30_handle_t * | handle, |
| uint16_t * | m ) |
get altitude compensation
| [in] | *handle | pointer to an scd30 handle structure |
| [out] | *m | pointer to a meter buffer |
Definition at line 1620 of file driver_scd30.c.
| uint8_t scd30_get_automatic_self_calibration | ( | scd30_handle_t * | handle, |
| scd30_bool_t * | enable ) |
get automatic self calibration
| [in] | *handle | pointer to an scd30 handle structure |
| [out] | *enable | pointer to a bool buffer |
Definition at line 1028 of file driver_scd30.c.
| uint8_t scd30_get_data_ready_status | ( | scd30_handle_t * | handle, |
| uint16_t * | status ) |
get data ready status
| [in] | *handle | pointer to an scd30 handle structure |
| [out] | *status | pointer to a status buffer |
Definition at line 851 of file driver_scd30.c.
| uint8_t scd30_get_firmware_version | ( | scd30_handle_t * | handle, |
| uint16_t * | version ) |
get firmware version
| [in] | *handle | pointer to an scd30 handle structure |
| [out] | *version | pointer to a version buffer |
Definition at line 1717 of file driver_scd30.c.
| uint8_t scd30_get_forced_recalibration | ( | scd30_handle_t * | handle, |
| uint16_t * | co2_ppm ) |
get forced recalibration
| [in] | *handle | pointer to an scd30 handle structure |
| [out] | *co2_ppm | pointer to a co2 ppm buffer |
Definition at line 1212 of file driver_scd30.c.
| uint8_t scd30_get_interface | ( | scd30_handle_t * | handle, |
| scd30_interface_t * | interface ) |
get the chip interface
| [in] | *handle | pointer to an scd30 handle structure |
| [out] | *interface | pointer to a chip interface buffer |
Definition at line 404 of file driver_scd30.c.
| uint8_t scd30_get_measurement_interval | ( | scd30_handle_t * | handle, |
| uint16_t * | second ) |
get the measurement interval
| [in] | *handle | pointer to an scd30 handle structure |
| [out] | *second | pointer to a second buffer |
Definition at line 754 of file driver_scd30.c.
| uint8_t scd30_get_temperature_offset | ( | scd30_handle_t * | handle, |
| uint16_t * | deg ) |
get temperature offset
| [in] | *handle | pointer to an scd30 handle structure |
| [out] | *deg | pointer to a degree buffer |
Definition at line 1389 of file driver_scd30.c.
| uint8_t scd30_info | ( | scd30_info_t * | info | ) |
get chip information
| [out] | *info | pointer to an scd30 info structure |
Definition at line 2414 of file driver_scd30.c.
| uint8_t scd30_init | ( | scd30_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to an scd30 handle structure |
Definition at line 2070 of file driver_scd30.c.
| uint8_t scd30_read | ( | scd30_handle_t * | handle, |
| scd30_data_t * | data ) |
read the result
| [in] | *handle | pointer to an scd30 handle structure |
| [out] | *data | pointer to an scd30 data structure |
Definition at line 1890 of file driver_scd30.c.
| uint8_t scd30_set_altitude_compensation | ( | scd30_handle_t * | handle, |
| uint16_t | m ) |
set altitude compensation
| [in] | *handle | pointer to an scd30 handle structure |
| [in] | m | set meter |
Definition at line 1540 of file driver_scd30.c.
| uint8_t scd30_set_automatic_self_calibration | ( | scd30_handle_t * | handle, |
| scd30_bool_t | enable ) |
set automatic self calibration
| [in] | *handle | pointer to an scd30 handle structure |
| [in] | enable | bool value |
Definition at line 948 of file driver_scd30.c.
| uint8_t scd30_set_forced_recalibration | ( | scd30_handle_t * | handle, |
| uint16_t | co2_ppm ) |
set forced recalibration
| [in] | *handle | pointer to an scd30 handle structure |
| [in] | co2_ppm | set co2 ppm |
Definition at line 1126 of file driver_scd30.c.
| uint8_t scd30_set_interface | ( | scd30_handle_t * | handle, |
| scd30_interface_t | interface ) |
set the chip interface
| [in] | *handle | pointer to an scd30 handle structure |
| [in] | interface | chip interface |
Definition at line 383 of file driver_scd30.c.
| uint8_t scd30_set_measurement_interval | ( | scd30_handle_t * | handle, |
| uint16_t | second ) |
set the measurement interval
| [in] | *handle | pointer to an scd30 handle structure |
| [in] | second | set interval |
Definition at line 668 of file driver_scd30.c.
| uint8_t scd30_set_temperature_offset | ( | scd30_handle_t * | handle, |
| uint16_t | deg ) |
set temperature offset
| [in] | *handle | pointer to an scd30 handle structure |
| [in] | deg | set degree |
Definition at line 1309 of file driver_scd30.c.
| uint8_t scd30_soft_reset | ( | scd30_handle_t * | handle | ) |
soft reset
| [in] | *handle | pointer to an scd30 handle structure |
Definition at line 1813 of file driver_scd30.c.
| uint8_t scd30_start_measurement | ( | scd30_handle_t * | handle | ) |
start the measurement
| [in] | *handle | pointer to an scd30 handle structure |
Definition at line 513 of file driver_scd30.c.
| uint8_t scd30_start_measurement_with_pressure_compensation | ( | scd30_handle_t * | handle, |
| uint16_t | mbar ) |
start the measurement with pressure compensation
| [in] | *handle | pointer to an scd30 handle structure |
| [in] | mbar | ambient pressure compensation |
Definition at line 428 of file driver_scd30.c.
| uint8_t scd30_stop_measurement | ( | scd30_handle_t * | handle | ) |
stop the measurement
| [in] | *handle | pointer to an scd30 handle structure |
Definition at line 592 of file driver_scd30.c.
| uint8_t scd30_temperature_offset_convert_to_data | ( | scd30_handle_t * | handle, |
| uint16_t | reg, | ||
| float * | deg ) |
convert the register raw data to the temperature offset
| [in] | *handle | pointer to an scd30 handle structure |
| [in] | reg | register raw data |
| [out] | *deg | pointer to a degree buffer |
Definition at line 1513 of file driver_scd30.c.
| uint8_t scd30_temperature_offset_convert_to_register | ( | scd30_handle_t * | handle, |
| float | deg, | ||
| uint16_t * | reg ) |
convert the temperature offset to the register raw data
| [in] | *handle | pointer to an scd30 handle structure |
| [in] | deg | degree |
| [out] | *reg | pointer to a register raw buffer |
Definition at line 1486 of file driver_scd30.c.