Go to the documentation of this file.
39 #define AD5592R_GPIO_READBACK_EN NO_OS_BIT(10)
40 #define AD5592R_LDAC_READBACK_EN NO_OS_BIT(6)
43 ((((x) & 0x00ff) << 8) | \
44 (((x) & 0xff00) >> 8))
51 uint16_t chans, uint16_t *value);
int32_t ad5592r_read_adc(struct ad5592r_dev *dev, uint8_t chan, uint16_t *value)
Definition: ad5592r.c:96
int32_t ad5592r_write_dac(struct ad5592r_dev *dev, uint8_t chan, uint16_t value)
Definition: ad5592r.c:76
#define AD5592R_GPIO_READBACK_EN
Definition: ad5592r.h:39
@ AD5592R_REG_GPIO_IN_EN
Definition: ad5592r-base.h:66
int32_t ad5592r_write_dac(struct ad5592r_dev *dev, uint8_t chan, uint16_t value)
Definition: ad5592r.c:76
#define swab16(x)
Definition: ad5592r.h:42
uint8_t gpio_in
Definition: ad5592r-base.h:126
int32_t ad5592r_reg_write(struct ad5592r_dev *dev, uint8_t reg, uint16_t value)
Definition: ad5592r.c:182
int32_t no_os_spi_write_and_read(struct no_os_spi_desc *desc, uint8_t *data, uint16_t bytes_number)
Write and read data to/from SPI.
Definition: no_os_spi.c:159
uint8_t ldac_mode
Definition: ad5592r-base.h:128
const struct ad5592r_rw_ops ad5592r_rw_ops
Definition: ad5592r.c:37
@ AD5592R_REG_ADC_SEQ
Definition: ad5592r-base.h:58
int32_t ad5592r_software_reset(struct ad5592r_dev *dev)
Definition: ad5592r-base.c:182
int32_t ad5592r_init(struct ad5592r_dev *dev, struct ad5592r_init_param *init_param)
Definition: ad5592r.c:260
int32_t ad5592r_reg_read(struct ad5592r_dev *dev, uint8_t reg, uint16_t *value)
Definition: ad5592r.c:201
int32_t ad5592r_reg_write(struct ad5592r_dev *dev, uint8_t reg, uint16_t value)
Definition: ad5592r.c:182
struct no_os_spi_desc * spi
Definition: ad5592r-base.h:118
int32_t ad5592r_gpio_read(struct ad5592r_dev *dev, uint8_t *value)
Definition: ad5592r.c:232
int32_t(* write_dac)(struct ad5592r_dev *dev, uint8_t chan, uint16_t value)
Definition: ad5592r-base.h:98
@ AD5592R_REG_LDAC
Definition: ad5592r-base.h:63
unsigned int no_os_hweight16(uint16_t word)
Header file of AD5592R Base Driver.
int32_t ad5592r_multi_read_adc(struct ad5592r_dev *dev, uint16_t chans, uint16_t *value)
Definition: ad5592r.c:137
int32_t ad5592r_gpio_read(struct ad5592r_dev *dev, uint8_t *value)
Definition: ad5592r.c:232
int32_t ad5592r_init(struct ad5592r_dev *dev, struct ad5592r_init_param *init_param)
Definition: ad5592r.c:260
Definition: ad5592r-base.h:111
@ AD5592R_REG_PD
Definition: ad5592r-base.h:67
#define NO_OS_BIT(x)
Definition: no_os_util.h:45
Definition: ad5592r-base.h:97
int32_t ad5592r_reg_read(struct ad5592r_dev *dev, uint8_t reg, uint16_t *value)
Definition: ad5592r.c:201
int32_t ad5592r_multi_read_adc(struct ad5592r_dev *dev, uint16_t chans, uint16_t *values)
Definition: ad5592r.c:137
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
int32_t ad5592r_read_adc(struct ad5592r_dev *dev, uint8_t chan, uint16_t *value)
Definition: ad5592r.c:96
uint16_t spi_msg
Definition: ad5592r-base.h:119
#define AD5592R_REG_PD_EN_REF
Definition: ad5592r-base.h:74
int32_t ad5592r_set_channel_modes(struct ad5592r_dev *dev)
Definition: ad5592r-base.c:203
#define AD5592R_LDAC_READBACK_EN
Definition: ad5592r.h:40
Definition: ad5592r-base.h:115
Header file of AD5592R driver.
const struct ad5592r_rw_ops * ops
Definition: ad5592r-base.h:116