145    for (i = 0; i < times; i++)
 
 
driver ads1118 mutichannel test header file
uint8_t ads1118_single_read(ads1118_handle_t *handle, int16_t *raw, float *v)
read data from the chip once
uint8_t ads1118_set_channel(ads1118_handle_t *handle, ads1118_channel_t channel)
set the adc channel
uint8_t ads1118_set_range(ads1118_handle_t *handle, ads1118_range_t range)
set the adc range
uint8_t ads1118_info(ads1118_info_t *info)
get chip's information
struct ads1118_info_s ads1118_info_t
ads1118 information structure definition
uint8_t ads1118_init(ads1118_handle_t *handle)
initialize the chip
uint8_t ads1118_set_dout_pull_up(ads1118_handle_t *handle, ads1118_bool_t enable)
enable or disable dout pull up
uint8_t ads1118_deinit(ads1118_handle_t *handle)
close the chip
struct ads1118_handle_s ads1118_handle_t
ads1118 handle structure definition
uint8_t ads1118_set_rate(ads1118_handle_t *handle, ads1118_rate_t rate)
set the sample rate
ads1118_channel_t
ads1118 channel enumeration definition
uint8_t ads1118_set_mode(ads1118_handle_t *handle, ads1118_mode_t mode)
set the chip mode
void ads1118_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t ads1118_interface_spi_transmit(uint8_t *tx, uint8_t *rx, uint16_t len)
interface spi bus transmit
uint8_t ads1118_interface_spi_deinit(void)
interface spi bus deinit
uint8_t ads1118_interface_spi_init(void)
interface spi bus init
void ads1118_interface_debug_print(const char *const fmt,...)
interface print format data
#define DRIVER_ADS1118_LINK_SPI_DEINIT(HANDLE, FUC)
link spi_deinit function
#define DRIVER_ADS1118_LINK_SPI_INIT(HANDLE, FUC)
link spi_init function
#define DRIVER_ADS1118_LINK_SPI_TRANSMIT(HANDLE, FUC)
link spi_transmit function
#define DRIVER_ADS1118_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_ADS1118_LINK_INIT(HANDLE, STRUCTURE)
initialize ads1118_handle_t structure
#define DRIVER_ADS1118_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
uint8_t ads1118_multichannel_test(ads1118_channel_t channel, uint32_t times)
multichannel test
float supply_voltage_max_v
char manufacturer_name[32]
float supply_voltage_min_v