driver ad7705 basic include file
uint8_t ad7705_set_master_clock_output_disable(ad7705_handle_t *handle, ad7705_bool_t enable)
enable or disable master clock output disable
ad7705_channel_t
ad7705 channel enumeration definition
struct ad7705_handle_s ad7705_handle_t
ad7705 handle structure definition
uint8_t ad7705_init(ad7705_handle_t *handle)
initialize the chip
uint8_t ad7705_set_adc_buffer(ad7705_handle_t *handle, ad7705_bool_t enable)
enable or disable adc buffer
uint8_t ad7705_set_reference_voltage(ad7705_handle_t *handle, float voltage)
set reference voltage
uint8_t ad7705_operate_sync(ad7705_handle_t *handle)
operate sync
uint8_t ad7705_deinit(ad7705_handle_t *handle)
close the chip
uint8_t ad7705_set_adc_gain(ad7705_handle_t *handle, ad7705_adc_gain_t gain)
set adc gain
uint8_t ad7705_set_rate(ad7705_handle_t *handle, ad7705_rate_t rate)
set rate
uint8_t ad7705_read(ad7705_handle_t *handle, uint16_t *raw, float *volt)
read adc
uint8_t ad7705_set_clock_div2(ad7705_handle_t *handle, ad7705_bool_t enable)
enable or disable clock div2
uint8_t ad7705_set_adc_mode(ad7705_handle_t *handle, ad7705_adc_mode_t mode)
set adc mode
uint8_t ad7705_power_on(ad7705_handle_t *handle)
power on
uint8_t ad7705_set_channel(ad7705_handle_t *handle, ad7705_channel_t channel)
set channel
uint8_t ad7705_set_adc_polar(ad7705_handle_t *handle, ad7705_adc_polar_t polar)
set adc polar
uint8_t ad7705_set_filter_synchronize(ad7705_handle_t *handle, ad7705_bool_t enable)
enable or disable filter synchronize
@ AD7705_ADC_MODE_SELF_CALIBRATION
#define AD7705_BASIC_DEFAULT_RATE
#define AD7705_BASIC_DEFAULT_ADC_BUFFER
#define AD7705_BASIC_DEFAULT_CLOCK_DIV2
uint8_t ad7705_basic_set_channel(ad7705_channel_t channel)
basic example set channel
#define AD7705_BASIC_DEFAULT_GAIN
uint8_t ad7705_basic_deinit(void)
basic example deinit
uint8_t ad7705_basic_init(ad7705_channel_t channel)
basic example init
#define AD7705_BASIC_DEFAULT_REFERENCE_VOLTAGE
ad7705 basic example default definition
uint8_t ad7705_basic_read(uint16_t *raw, float *volt)
basic example read adc
#define AD7705_BASIC_DEFAULT_ADC_POLAR
#define AD7705_BASIC_DEFAULT_MASTER_CLOCK_OUTPUT_DISABLE
#define AD7705_BASIC_DEFAULT_FILTER_SYNCHRONIZE
uint8_t ad7705_interface_spi_write(uint8_t addr, uint8_t *buf, uint16_t len)
interface spi bus write
uint8_t ad7705_interface_spi_read(uint8_t addr, uint8_t *buf, uint16_t len)
interface spi bus read
uint8_t ad7705_interface_gpio_reset_deinit(void)
interface gpio reset deinit
void ad7705_interface_debug_print(const char *const fmt,...)
interface print format data
uint8_t ad7705_interface_gpio_reset_write(uint8_t level)
interface gpio reset write
uint8_t ad7705_interface_spi_init(void)
interface spi bus init
uint8_t ad7705_interface_gpio_reset_init(void)
interface gpio reset init
uint8_t ad7705_interface_spi_deinit(void)
interface spi bus deinit
void ad7705_interface_delay_ms(uint32_t ms)
interface delay ms
#define DRIVER_AD7705_LINK_GPIO_RESET_WRITE(HANDLE, FUC)
link gpio_reset_write function
#define DRIVER_AD7705_LINK_GPIO_RESET_INIT(HANDLE, FUC)
link gpio_reset_init function
#define DRIVER_AD7705_LINK_GPIO_RESET_DEINIT(HANDLE, FUC)
link gpio_reset_deinit function
#define DRIVER_AD7705_LINK_INIT(HANDLE, STRUCTURE)
initialize ad7705_handle_t structure
#define DRIVER_AD7705_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
#define DRIVER_AD7705_LINK_SPI_INIT(HANDLE, FUC)
link spi_init function
#define DRIVER_AD7705_LINK_SPI_READ(HANDLE, FUC)
link spi_read function
#define DRIVER_AD7705_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_AD7705_LINK_SPI_WRITE(HANDLE, FUC)
link spi_write function
#define DRIVER_AD7705_LINK_SPI_DEINIT(HANDLE, FUC)
link spi_deinit function