43#define MAX11205_VREF_MAX_MV 3600
44#define MAX11205_DATA_SIZE_BYTES 2
45#define MAX11205_SCALE NO_OS_GENMASK(14,0)
struct ad7616_init_param init_param
Definition ad7616_sdz.c:107
int max11205_get_data_raw(struct max11205_dev *dev, bool *new_data_avail, int16_t *data_raw)
Get the converted data.
Definition max11205.c:160
int max11205_remove(struct max11205_dev *dev)
Free memory allocated by max11205_init().
Definition max11205.c:196
int max11205_get_data_mv(struct max11205_dev *dev, int16_t raw_data, int32_t *data_mv)
Get the converted data.
Definition max11205.c:180
int max11205_init(struct max11205_dev **device, struct max11205_init_param init_param)
Initializes the communication peripheral.
Definition max11205.c:78
Header file of GPIO Interface.
Header file of IRQ interface.
Header file of SPI Interface.
Header file of utility functions.
Definition ad9361_util.h:63
bool data_updated
Definition max11205.h:61
struct no_os_irq_ctrl_desc * irq_ctrl
Definition max11205.h:53
struct no_os_callback_desc irq_cb
Definition max11205.h:55
uint32_t vref_mv
Definition max11205.h:57
struct no_os_gpio_desc * gpio_rdy
Definition max11205.h:51
int16_t adc_data_raw
Definition max11205.h:59
struct no_os_spi_desc * spi_desc
Definition max11205.h:49
struct no_os_gpio_init_param * gpio_rdy
Definition max11205.h:68
uint32_t vref_mv
Definition max11205.h:72
struct no_os_irq_ctrl_desc * irq_ctrl
Definition max11205.h:70
struct no_os_spi_init_param spi_init
Definition max11205.h:66
Structure describing a callback to be registered.
Definition no_os_irq.h:136
Structure holding the GPIO descriptor.
Definition no_os_gpio.h:84
Structure holding the parameters for GPIO initialization.
Definition no_os_gpio.h:67
Definition no_os_irq.h:117
Structure holding SPI descriptor.
Definition no_os_spi.h:180
Structure holding the parameters for SPI initialization.
Definition no_os_spi.h:128