driver ads1118 basic header file
uint8_t ads1118_stop_continuous_read(ads1118_handle_t *handle)
stop the chip reading
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
ads1118_mode_t
ads1118 mode enumeration definition
uint8_t ads1118_continuous_read(ads1118_handle_t *handle, int16_t *raw, float *v)
read data from the chip continuously
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_temperature_convert(ads1118_handle_t *handle, int16_t raw, float *deg)
temperature convert
uint8_t ads1118_start_continuous_read(ads1118_handle_t *handle)
start the chip reading
uint8_t ads1118_set_mode(ads1118_handle_t *handle, ads1118_mode_t mode)
set the chip mode
#define ADS1118_BASIC_DEFAULT_RANGE
ads1118 basic example default definition
#define ADS1118_BASIC_DEFAULT_RATE
#define ADS1118_BASIC_DEFAULT_DOUT_PULL_UP
uint8_t ads1118_basic_read(float *s)
basic example read
uint8_t ads1118_basic_read_temperature(float *deg)
basic example read
uint8_t ads1118_basic_deinit(void)
basic example deinit
uint8_t ads1118_basic_init(ads1118_mode_t mode, ads1118_channel_t channel)
basic example init
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