![]() |
LibDriver SPS30
1.0.0
SPS30 full-featured driver
|
sps30 handle structure definition More...
#include <driver_sps30.h>
Data Fields | |
uint8_t(* | iic_init )(void) |
uint8_t(* | iic_deinit )(void) |
uint8_t(* | iic_write_cmd )(uint8_t addr, uint8_t *buf, uint16_t len) |
uint8_t(* | iic_read_cmd )(uint8_t addr, uint8_t *buf, uint16_t len) |
uint8_t(* | uart_init )(void) |
uint8_t(* | uart_deinit )(void) |
uint16_t(* | uart_read )(uint8_t *buf, uint16_t len) |
uint8_t(* | uart_flush )(void) |
uint8_t(* | uart_write )(uint8_t *buf, uint16_t len) |
void(* | delay_ms )(uint32_t ms) |
void(* | debug_print )(const char *const fmt,...) |
uint8_t | inited |
uint8_t | iic_uart |
uint8_t | format |
uint8_t | buf [256] |
sps30 handle structure definition
Definition at line 99 of file driver_sps30.h.
uint8_t buf[256] |
inner buffer
Definition at line 115 of file driver_sps30.h.
void(* debug_print) (const char *const fmt,...) |
point to a debug_print function address
Definition at line 111 of file driver_sps30.h.
void(* delay_ms) (uint32_t ms) |
point to a delay_ms function address
Definition at line 110 of file driver_sps30.h.
uint8_t format |
format
Definition at line 114 of file driver_sps30.h.
uint8_t(* iic_deinit) (void) |
point to an iic_deinit function address
Definition at line 102 of file driver_sps30.h.
uint8_t(* iic_init) (void) |
point to an iic_init function address
Definition at line 101 of file driver_sps30.h.
uint8_t(* iic_read_cmd) (uint8_t addr, uint8_t *buf, uint16_t len) |
point to an iic_read_cmd function address
Definition at line 104 of file driver_sps30.h.
uint8_t iic_uart |
iic uart
Definition at line 113 of file driver_sps30.h.
uint8_t(* iic_write_cmd) (uint8_t addr, uint8_t *buf, uint16_t len) |
point to an iic_write_cmd function address
Definition at line 103 of file driver_sps30.h.
uint8_t inited |
inited flag
Definition at line 112 of file driver_sps30.h.
uint8_t(* uart_deinit) (void) |
point to a uart_deinit function address
Definition at line 106 of file driver_sps30.h.
uint8_t(* uart_flush) (void) |
point to a uart_flush function address
Definition at line 108 of file driver_sps30.h.
uint8_t(* uart_init) (void) |
point to a uart_init function address
Definition at line 105 of file driver_sps30.h.
uint16_t(* uart_read) (uint8_t *buf, uint16_t len) |
point to a uart_read function address
Definition at line 107 of file driver_sps30.h.
uint8_t(* uart_write) (uint8_t *buf, uint16_t len) |
point to a uart_write function address
Definition at line 109 of file driver_sps30.h.