54    uint16_t second_check;
 
   56    uint16_t co2_ppm_check;
 
  169    second = rand() % 1000 + 2;
 
  249    co2_ppm = rand() % 10 + 400;
 
  293    scd30_interface_debug_print(
"scd30: scd30_temperature_offset_convert_to_register/scd30_temperature_offset_convert_to_data test.\n");
 
  295    f = (float)(rand() % 100) / 100.0f;
 
 
driver scd30 register test header file
 
uint8_t scd30_init(scd30_handle_t *handle)
initialize the chip
 
struct scd30_info_s scd30_info_t
scd30 information structure definition
 
uint8_t scd30_deinit(scd30_handle_t *handle)
close the chip
 
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_soft_reset(scd30_handle_t *handle)
soft reset
 
uint8_t scd30_get_forced_recalibration(scd30_handle_t *handle, uint16_t *co2_ppm)
get forced recalibration
 
uint8_t scd30_get_data_ready_status(scd30_handle_t *handle, uint16_t *status)
get data ready status
 
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
 
scd30_interface_t
scd30 interface enumeration definition
 
uint8_t scd30_get_firmware_version(scd30_handle_t *handle, uint16_t *version)
get firmware version
 
uint8_t scd30_get_automatic_self_calibration(scd30_handle_t *handle, scd30_bool_t *enable)
get automatic self calibration
 
uint8_t scd30_set_interface(scd30_handle_t *handle, scd30_interface_t interface)
set the chip interface
 
uint8_t scd30_set_automatic_self_calibration(scd30_handle_t *handle, scd30_bool_t enable)
set automatic self calibration
 
uint8_t scd30_info(scd30_info_t *info)
get chip information
 
uint8_t scd30_set_temperature_offset(scd30_handle_t *handle, uint16_t deg)
set temperature offset
 
uint8_t scd30_get_interface(scd30_handle_t *handle, scd30_interface_t *interface)
get the chip interface
 
struct scd30_handle_s scd30_handle_t
scd30 handle structure definition
 
uint8_t scd30_set_forced_recalibration(scd30_handle_t *handle, uint16_t co2_ppm)
set forced recalibration
 
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_altitude_compensation(scd30_handle_t *handle, uint16_t *m)
get altitude compensation
 
scd30_bool_t
scd30 bool enumeration definition
 
uint8_t scd30_interface_uart_init(void)
interface uart init
 
uint8_t scd30_interface_iic_write_cmd(uint8_t addr, uint8_t *buf, uint16_t len)
interface iic bus write
 
uint8_t scd30_interface_uart_write(uint8_t *buf, uint16_t len)
interface uart write
 
uint8_t scd30_interface_iic_read_cmd(uint8_t addr, uint8_t *buf, uint16_t len)
interface iic bus read
 
void scd30_interface_debug_print(const char *const fmt,...)
interface print format data
 
uint16_t scd30_interface_uart_read(uint8_t *buf, uint16_t len)
interface uart read
 
uint8_t scd30_interface_iic_init(void)
interface iic bus init
 
void scd30_interface_delay_ms(uint32_t ms)
interface delay ms
 
uint8_t scd30_interface_uart_flush(void)
interface uart flush
 
uint8_t scd30_interface_iic_deinit(void)
interface iic bus deinit
 
uint8_t scd30_interface_uart_deinit(void)
interface uart deinit
 
#define DRIVER_SCD30_LINK_UART_DEINIT(HANDLE, FUC)
link uart_deinit function
 
#define DRIVER_SCD30_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
 
#define DRIVER_SCD30_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
 
#define DRIVER_SCD30_LINK_IIC_READ_COMMAND(HANDLE, FUC)
link iic_read_cmd function
 
#define DRIVER_SCD30_LINK_IIC_DEINIT(HANDLE, FUC)
link iic_deinit function
 
#define DRIVER_SCD30_LINK_UART_WRITE(HANDLE, FUC)
link uart_write function
 
#define DRIVER_SCD30_LINK_IIC_WRITE_COMMAND(HANDLE, FUC)
link iic_write_cmd function
 
#define DRIVER_SCD30_LINK_UART_INIT(HANDLE, FUC)
link uart_init function
 
#define DRIVER_SCD30_LINK_INIT(HANDLE, STRUCTURE)
initialize scd30_handle_t structure
 
#define DRIVER_SCD30_LINK_UART_READ(HANDLE, FUC)
link uart_read function
 
#define DRIVER_SCD30_LINK_IIC_INIT(HANDLE, FUC)
link iic_init function
 
#define DRIVER_SCD30_LINK_UART_FLUSH(HANDLE, FUC)
link uart_flush function
 
uint8_t scd30_register_test(scd30_interface_t interface)
register test
 
float supply_voltage_max_v
 
char manufacturer_name[32]
 
float supply_voltage_min_v