123 for (i = 0; i < times; i++)
150 else if (type ==
SEN54)
221 for (i = 0; i < times; i++)
259 for (i = 0; i < times; i++)
313 for (i = 0; i < times; i++)
driver sen5x read test header file
struct sen50_data_s sen50_data_t
sen50 data structure definition
uint8_t sen5x_info(sen5x_info_t *info)
get chip information
uint8_t sen5x_read_pm_value(sen5x_handle_t *handle, sen5x_pm_t *pm)
read the pm value
uint8_t sen5x_read_raw_value(sen5x_handle_t *handle, sen5x_raw_t *raw)
read raw value
uint8_t sen55_read(sen5x_handle_t *handle, sen55_data_t *output)
read the result
uint8_t sen5x_set_type(sen5x_handle_t *handle, sen5x_type_t type)
set the chip type
uint8_t sen54_read(sen5x_handle_t *handle, sen54_data_t *output)
read the result
uint8_t sen5x_start_measurement_without_pm(sen5x_handle_t *handle)
start the measurement without pm
uint8_t sen5x_start_measurement(sen5x_handle_t *handle)
start the measurement
uint8_t sen50_read(sen5x_handle_t *handle, sen50_data_t *output)
read the result
sen5x_type_t
sen5x type enumeration definition
uint8_t sen5x_deinit(sen5x_handle_t *handle)
close the chip
struct sen5x_handle_s sen5x_handle_t
sen5x handle structure definition
struct sen55_data_s sen55_data_t
sen55 data structure definition
struct sen5x_raw_s sen5x_raw_t
sen5x raw structure definition
struct sen54_data_s sen54_data_t
sen54 data structure definition
struct sen5x_pm_s sen5x_pm_t
sen5x pm structure definition
struct sen5x_info_s sen5x_info_t
sen5x information structure definition
uint8_t sen5x_init(sen5x_handle_t *handle)
initialize the chip
uint8_t sen5x_stop_measurement(sen5x_handle_t *handle)
stop the measurement
uint8_t sen5x_interface_iic_write_cmd(uint8_t addr, uint8_t *buf, uint16_t len)
interface iic bus write
uint8_t sen5x_interface_iic_read_cmd(uint8_t addr, uint8_t *buf, uint16_t len)
interface iic bus read
uint8_t sen5x_interface_iic_init(void)
interface iic bus init
uint8_t sen5x_interface_iic_deinit(void)
interface iic bus deinit
void sen5x_interface_delay_ms(uint32_t ms)
interface delay ms
void sen5x_interface_debug_print(const char *const fmt,...)
interface print format data
#define DRIVER_SEN5X_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
#define DRIVER_SEN5X_LINK_IIC_READ_COMMAND(HANDLE, FUC)
link iic_read_cmd function
#define DRIVER_SEN5X_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_SEN5X_LINK_IIC_DEINIT(HANDLE, FUC)
link iic_deinit function
#define DRIVER_SEN5X_LINK_IIC_INIT(HANDLE, FUC)
link iic_init function
#define DRIVER_SEN5X_LINK_IIC_WRITE_COMMAND(HANDLE, FUC)
link iic_write_cmd function
#define DRIVER_SEN5X_LINK_INIT(HANDLE, STRUCTURE)
initialize sen5x_handle_t structure
uint8_t sen5x_read_test(sen5x_type_t type, uint32_t times)
read test
float compensated_ambient_temperature_degree
float compensated_ambient_humidity_percentage
float compensated_ambient_temperature_degree
float compensated_ambient_humidity_percentage
float supply_voltage_max_v
char manufacturer_name[32]
float supply_voltage_min_v
float typical_particle_um
float humidity_percentage