42#define AD74XX_CS_LOW no_os_gpio_set_value(dev->gpio_cs, \
42#define AD74XX_CS_LOW no_os_gpio_set_value(dev->gpio_cs, \ …
44#define AD74XX_CS_HIGH no_os_gpio_set_value(dev->gpio_cs, \
44#define AD74XX_CS_HIGH no_os_gpio_set_value(dev->gpio_cs, \ …
void ad74xx_power_up(struct ad74xx_dev *dev)
Powers up the device by performing a dummy read. This function is supported only by: AD7475(partial p...
Definition ad74xx.c:125
float ad74xx_convert_to_volts(struct ad74xx_dev *dev, uint16_t raw_value, float v_ref)
Converts a raw sample to volts.
Definition ad74xx.c:179
ad74xx_type
Definition ad74xx.h:48
@ ID_AD7466
Definition ad74xx.h:49
@ ID_AD7495
Definition ad74xx.h:59
@ ID_AD7478
Definition ad74xx.h:57
@ ID_AD7476A
Definition ad74xx.h:54
@ ID_AD7468
Definition ad74xx.h:51
@ ID_AD7477
Definition ad74xx.h:55
@ ID_AD7477A
Definition ad74xx.h:56
@ ID_AD7476
Definition ad74xx.h:53
@ ID_AD7478A
Definition ad74xx.h:58
@ ID_AD7475
Definition ad74xx.h:52
@ ID_AD7467
Definition ad74xx.h:50
uint16_t ad74xx_get_register_value(struct ad74xx_dev *dev)
Reads the conversion value.
Definition ad74xx.c:139
void ad74xx_power_down(struct ad74xx_dev *dev)
Powers down the device. This function is supported only by: AD7475(partial power down),...
Definition ad74xx.c:107
int8_t ad74xx_init(struct ad74xx_dev **device, struct ad74xx_init_param init_param)
Initializes the communication peripheral and the initial Values for AD74xx Board.
Definition ad74xx.c:52
int32_t ad74xx_remove(struct ad74xx_dev *dev)
Free the resources allocated by ad74xx_init().
Definition ad74xx.c:87
struct ad7616_init_param init_param
Definition ad7616_sdz.c:107
Header file of GPIO Interface.
Header file of SPI Interface.
enum ad74xx_type part_number
Definition ad74xx.h:69
struct no_os_gpio_desc * gpio_cs
Definition ad74xx.h:66
struct no_os_spi_desc * spi_desc
Definition ad74xx.h:64
int8_t device_bits_number
Definition ad74xx.h:68
struct no_os_spi_init_param spi_init
Definition ad74xx.h:74
int8_t device_bits_number
Definition ad74xx.h:78
enum ad74xx_type part_number
Definition ad74xx.h:79
struct no_os_gpio_init_param gpio_cs
Definition ad74xx.h:76
Definition ad9361_util.h:63
Structure holding the GPIO descriptor.
Definition no_os_gpio.h:84
Structure holding the parameters for GPIO initialization.
Definition no_os_gpio.h:67
Structure holding SPI descriptor.
Definition no_os_spi.h:180
Structure holding the parameters for SPI initialization.
Definition no_os_spi.h:128