driver sen5x basic header file
struct sen50_data_s sen50_data_t
sen50 data structure definition
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_get_device_status(sen5x_handle_t *handle, uint32_t *status)
get the device status
uint8_t sen5x_start_fan_cleaning(sen5x_handle_t *handle)
start the fan cleaning
uint8_t sen5x_get_version(sen5x_handle_t *handle, uint8_t *version)
get the version
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
uint8_t sen5x_reset(sen5x_handle_t *handle)
reset the chip
sen5x_type_t
sen5x type enumeration definition
uint8_t sen5x_deinit(sen5x_handle_t *handle)
close the chip
uint8_t sen5x_get_serial_number(sen5x_handle_t *handle, char sn[32])
get the serial number
struct sen5x_handle_s sen5x_handle_t
sen5x handle structure definition
uint8_t sen5x_get_product_name(sen5x_handle_t *handle, char name[32])
get the product name
uint8_t sen5x_clear_device_status(sen5x_handle_t *handle)
clear the device status
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
uint8_t sen5x_init(sen5x_handle_t *handle)
initialize the chip
uint8_t sen5x_set_auto_cleaning_interval(sen5x_handle_t *handle, uint32_t second)
set the auto cleaning interval
uint8_t sen5x_stop_measurement(sen5x_handle_t *handle)
stop the measurement
uint8_t sen5x_basic_reset(void)
basic example reset
uint8_t sen50_basic_read(sen50_data_t *output)
basic example read
uint8_t sen5x_basic_get_status(uint32_t *status)
basic example get the status
uint8_t sen55_basic_read_pm_value(sen5x_pm_t *pm)
basic example read pm value
uint8_t sen5x_basic_get_serial_number(char sn[32])
basic example get the serial number
uint8_t sen54_basic_read(sen54_data_t *output)
basic example read
#define SEN5X_BASIC_DEFAULT_AUTO_CLEANING_INTERVAL
sen5x basic example default definition
uint8_t sen5x_basic_get_version(uint8_t *version)
basic example get the version
uint8_t sen5x_basic_start_fan_cleaning(void)
basic example start fan cleaning
uint8_t sen5x_basic_init(sen5x_type_t type)
basic example init
uint8_t sen55_basic_read_raw_value(sen5x_raw_t *raw)
basic example read raw value
uint8_t sen5x_basic_deinit(void)
basic example deinit
uint8_t sen5x_basic_get_product_name(char name[32])
basic example get the product name
uint8_t sen55_basic_read(sen55_data_t *output)
basic example read
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