122 for (i = 0; i < times; i++)
126 uint16_t temperature_raw;
128 uint16_t humidity_raw;
135 res =
scd4x_read(&gs_handle, &co2_raw, &co2_ppm,
136 &temperature_raw, &temperature_s,
137 &humidity_raw, &humidity_s);
176 for (i = 0; i < times; i++)
180 uint16_t temperature_raw;
182 uint16_t humidity_raw;
189 res =
scd4x_read(&gs_handle, &co2_raw, &co2_ppm,
190 &temperature_raw, &temperature_s,
191 &humidity_raw, &humidity_s);
226 for (i = 0; i < times; i++)
263 uint16_t temperature_raw;
265 uint16_t humidity_raw;
269 res =
scd4x_read(&gs_handle, &co2_raw, &co2_ppm,
270 &temperature_raw, &temperature_s,
271 &humidity_raw, &humidity_s);
301 for (i = 0; i < times; i++)
338 uint16_t temperature_raw;
340 uint16_t humidity_raw;
344 res =
scd4x_read(&gs_handle, &co2_raw, &co2_ppm,
345 &temperature_raw, &temperature_s,
346 &humidity_raw, &humidity_s);
driver scd4x read test header file
uint8_t scd4x_measure_single_shot(scd4x_handle_t *handle)
measure single shot
uint8_t scd4x_measure_single_shot_rht_only(scd4x_handle_t *handle)
measure single shot rht only
struct scd4x_info_s scd4x_info_t
scd4x information structure definition
uint8_t scd4x_get_data_ready_status(scd4x_handle_t *handle, scd4x_bool_t *enable)
get data ready status
uint8_t scd4x_stop_periodic_measurement(scd4x_handle_t *handle)
stop periodic measurement
uint8_t scd4x_deinit(scd4x_handle_t *handle)
close the chip
uint8_t scd4x_read(scd4x_handle_t *handle, uint16_t *co2_raw, uint16_t *co2_ppm, uint16_t *temperature_raw, float *temperature_s, uint16_t *humidity_raw, float *humidity_s)
read data
uint8_t scd4x_set_type(scd4x_handle_t *handle, scd4x_t type)
set type
uint8_t scd4x_init(scd4x_handle_t *handle)
initialize the chip
uint8_t scd4x_start_periodic_measurement(scd4x_handle_t *handle)
start periodic measurement
struct scd4x_handle_s scd4x_handle_t
scd4x handle structure definition
uint8_t scd4x_info(scd4x_info_t *info)
get chip information
scd4x_t
scd4x type enumeration definition
scd4x_bool_t
scd4x bool enumeration definition
uint8_t scd4x_start_low_power_periodic_measurement(scd4x_handle_t *handle)
start low power periodic measurement
uint8_t scd4x_interface_iic_init(void)
interface iic bus init
void scd4x_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t scd4x_interface_iic_deinit(void)
interface iic bus deinit
uint8_t scd4x_interface_iic_read_cmd(uint8_t addr, uint8_t *buf, uint16_t len)
interface iic bus read command
void scd4x_interface_debug_print(const char *const fmt,...)
interface print format data
uint8_t scd4x_interface_iic_write_cmd(uint8_t addr, uint8_t *buf, uint16_t len)
interface iic bus write command
#define DRIVER_SCD4X_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
#define DRIVER_SCD4X_LINK_IIC_DEINIT(HANDLE, FUC)
link iic_deinit function
#define DRIVER_SCD4X_LINK_IIC_INIT(HANDLE, FUC)
link iic_init function
#define DRIVER_SCD4X_LINK_INIT(HANDLE, STRUCTURE)
initialize scd4x_handle_t structure
#define DRIVER_SCD4X_LINK_IIC_WRITE_COMMAND(HANDLE, FUC)
link iic_write_cmd function
#define DRIVER_SCD4X_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_SCD4X_LINK_IIC_READ_COMMAND(HANDLE, FUC)
link iic_read_cmd function
uint8_t scd4x_read_test(scd4x_t type, uint32_t times)
read test
float supply_voltage_max_v
char manufacturer_name[32]
float supply_voltage_min_v