99 for (i = 0; i < times; i++)
103 uint16_t temperature_raw;
110 res =
ba111_read(&gs_handle, &tds_raw, &tds_ppm, &temperature_raw, &temperature);
driver ba111 read test header file
struct ba111_handle_s ba111_handle_t
ba111 handle structure definition
uint8_t ba111_init(ba111_handle_t *handle)
initialize the chip
struct ba111_info_s ba111_info_t
ba111 information structure definition
uint8_t ba111_info(ba111_info_t *info)
get chip's information
uint8_t ba111_read(ba111_handle_t *handle, uint16_t *tds_raw, uint16_t *tds_ppm, uint16_t *temperature_raw, float *temperature)
read the data
uint8_t ba111_deinit(ba111_handle_t *handle)
close the chip
uint16_t ba111_interface_uart_read(uint8_t *buf, uint16_t len)
interface uart read
uint8_t ba111_interface_uart_write(uint8_t *buf, uint16_t len)
interface uart write
uint8_t ba111_interface_uart_init(void)
interface uart init
void ba111_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t ba111_interface_uart_deinit(void)
interface uart deinit
uint8_t ba111_interface_uart_flush(void)
interface uart flush
void ba111_interface_debug_print(const char *const fmt,...)
interface print format data
#define DRIVER_BA111_LINK_UART_READ(HANDLE, FUC)
link uart_read function
#define DRIVER_BA111_LINK_UART_INIT(HANDLE, FUC)
link uart_init function
#define DRIVER_BA111_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
#define DRIVER_BA111_LINK_UART_DEINIT(HANDLE, FUC)
link uart_deinit function
#define DRIVER_BA111_LINK_UART_WRITE(HANDLE, FUC)
link uart_write function
#define DRIVER_BA111_LINK_UART_FLUSH(HANDLE, FUC)
link uart_flush function
#define DRIVER_BA111_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_BA111_LINK_INIT(HANDLE, STRUCTURE)
initialize ba111_handle_t structure
uint8_t ba111_read_test(uint32_t times)
read test
float supply_voltage_max_v
char manufacturer_name[32]
float supply_voltage_min_v