no-OS
ad4080.h
Go to the documentation of this file.
1 /***************************************************************************/
40 #ifndef __AD4080_H__
41 #define __AD4080_H__
42 
43 /******************************************************************************/
44 /***************************** Include Files **********************************/
45 /******************************************************************************/
46 
47 #include <stdint.h>
48 #include <string.h>
49 #include "no_os_util.h"
50 #include "no_os_spi.h"
51 #include "no_os_gpio.h"
52 
53 /******************************************************************************/
54 /********************** Macros and Constants Definitions **********************/
55 /******************************************************************************/
56 
58 #define AD4080_REG_INTERFACE_CONFIG_A 0x0000
59 #define AD4080_REG_INTERFACE_CONFIG_B 0x0001
60 #define AD4080_REG_DEVICE_CONFIG 0x0002
61 #define AD4080_REG_CHIP_TYPE 0x0003
62 #define AD4080_REG_PRODUCT_ID_L 0x0004
63 #define AD4080_REG_PRODUCT_ID_H 0x0005
64 #define AD4080_REG_CHIP_GRADE 0x0006
65 #define AD4080_REG_SCRATCH_PAD 0x000A
66 #define AD4080_REG_SPI_REVISION 0x000B
67 #define AD4080_REG_VENDOR_L 0x000C
68 #define AD4080_REG_VENDOR_H 0x000D
69 #define AD4080_REG_STREAM_MODE 0x000E
70 #define AD4080_REG_TRANSFER_CONFIG 0x000F
71 #define AD4080_REG_INTERFACE_CONFIG_C 0x0010
72 #define AD4080_REG_INTERFACE_STATUS_A 0x0011
73 #define AD4080_REG_DEVICE_STATUS 0x0014
74 #define AD4080_REG_DATA_INTF_CONFIG_A 0x0015
75 #define AD4080_REG_DATA_INTF_CONFIG_B 0x0016
76 #define AD4080_REG_DATA_INTF_CONFIG_C 0x0017
77 #define AD4080_REG_PWR_CTRL 0x0018
78 #define AD4080_REG_GPIO_CONFIG_A 0x0019
79 #define AD4080_REG_GPIO_CONFIG_B 0x001A
80 #define AD4080_REG_GPIO_CONFIG_C 0x001B
81 #define AD4080_REG_GENERAL_CONFIG 0x001C
82 #define AD4080_REG_FIFO_WATERMARK 0x001D
83 #define AD4080_REG_EVENT_HYSTERESIS 0x001F
84 #define AD4080_REG_EVENT_DETECTION_HI 0x0021
85 #define AD4080_REG_EVENT_DETECTION_LO 0x0023
86 #define AD4080_REG_OFFSET 0x0025
87 #define AD4080_REG_GAIN 0x0027
88 #define AD4080_REG_FILTER_CONFIG 0x0029
89 
91 #define AD4080_SW_RESET_MSK NO_OS_BIT(7) | NO_OS_BIT(0)
92 #define AD4080_ADDR_ASC_MSK NO_OS_BIT(5)
93 #define AD4080_SDO_ENABLE_MSK NO_OS_BIT(4)
94 
96 #define AD4080_SINGLE_INST_MSK NO_OS_BIT(7)
97 #define AD4080_SHORT_INST_MSK NO_OS_BIT(3)
98 
100 #define AD4080_OP_MODE_MSK NO_OS_GENMASK(1, 0)
101 
103 #define AD4080_KEEP_STREAM_LEN_VAL_MSK NO_OS_BIT(2)
104 
106 #define AD4080_STRICT_REG_ACCESS_MSK NO_OS_BIT(5)
107 
109 #define AD4080_INTF_CHK_EN_MSK NO_OS_BIT(4)
110 #define AD4080_SPI_LVDS_LANES_MSK NO_OS_BIT(2)
111 #define AD4080_DATA_INTF_MODE_MSK NO_OS_BIT(0)
112 
114 #define AD4080_LVDS_CNV_CLK_CNT_MSK NO_OS_GENMASK(7, 4)
115 #define AD4080_LVDS_SELF_CLK_MODE_MSK NO_OS_BIT(3)
116 #define AD4080_LVDS_CNV_EN NO_OS_BIT(0)
117 
119 #define AD4080_LVDS_VOD_MSK NO_OS_GENMASK(6, 4)
120 
122 #define AD4080_ANA_DIG_LDO_PD_MSK NO_OS_BIT(1)
123 #define AD4080_INTF_LDO_PD_MSK NO_OS_BIT(0)
124 
126 #define AD4080_GPIO_EN_MSK(x) NO_OS_BIT(x)
127 #define AD4080_GPIO_SEL_MSK(x) (NO_OS_GENMASK(3, 0) << (4 * ((x)%2)))
128 #define AD4080_GPIO_DATA_MSK(x) (NO_OS_BIT(x) << 4)
129 
131 #define AD4080_FIFO_MODE_MSK NO_OS_GENMASK(1, 0)
132 
134 #define AD4080_SW_RESET NO_OS_BIT(7) | NO_OS_BIT(0)
135 #define AD4080_SPI_READ NO_OS_BIT(7)
136 #define BYTE_ADDR_H NO_OS_GENMASK(15, 8)
137 #define BYTE_ADDR_L NO_OS_GENMASK(7, 0)
138 #define AD4080_CHIP_ID NO_OS_GENMASK(2, 0)
139 #define AD4080_FIFO_SIZE NO_OS_BIT(14)
140 
141 /******************************************************************************/
142 /************************ Types Declarations **********************************/
143 /******************************************************************************/
144 
149 };
150 
155 };
156 
161 };
162 
168 };
169 
174 };
175 
180 };
181 
186 };
187 
192 };
193 
198 };
199 
204 };
205 
211 };
212 
217 };
218 
223 };
224 
225 /* AD4080 GPIOs */
232 };
233 
234 /* AD4080 GPIO Output Enable Selection */
238 };
239 
253 };
254 
261 };
262 
267 struct ad4080_dev {
268  /* SPI */
270  /* SPI 3-Wire Connection */
271  bool spi3wire;
306 };
307 
313  /* SPI */
315  /* SPI 3-Wire Connection */
316  bool spi3wire;
351 };
353 int ad4080_write(struct ad4080_dev *dev, uint16_t reg_addr, uint8_t reg_val);
354 
356 int ad4080_read(struct ad4080_dev *dev, uint16_t reg_addr, uint8_t *reg_val);
357 
359 int ad4080_update_bits(struct ad4080_dev *dev, uint16_t reg_addr, uint8_t mask,
360  uint8_t reg_val);
361 
363 int ad4080_soft_reset(struct ad4080_dev *dev);
364 
366 int ad4080_set_addr_asc(struct ad4080_dev *dev, enum ad4080_addr_asc addr_asc);
367 
369 int ad4080_get_addr_asc(struct ad4080_dev *dev, enum ad4080_addr_asc *addr_asc);
370 
372 int ad4080_set_single_instr(struct ad4080_dev *dev,
373  enum ad4080_single_instr single_instr);
374 
376 int ad4080_get_single_instr(struct ad4080_dev *dev,
377  enum ad4080_single_instr *single_instr);
378 
380 int ad4080_set_short_instr(struct ad4080_dev *dev,
381  enum ad4080_short_instr short_instr);
382 
384 int ad4080_get_short_instr(struct ad4080_dev *dev,
385  enum ad4080_short_instr *short_instr);
386 
388 int ad4080_set_op_mode(struct ad4080_dev *dev,
389  enum ad4080_op_mode op_mode);
390 
392 int ad4080_get_op_mode(struct ad4080_dev *dev,
393  enum ad4080_op_mode *op_mode);
394 
397  enum ad4080_strict_reg_access strict_reg);
398 
401  enum ad4080_strict_reg_access *strict_reg);
402 
404 int ad4080_set_intf_chk_en(struct ad4080_dev *dev,
405  enum ad4080_intf_chk_en intf_chk_en);
406 
408 int ad4080_get_intf_chk_en(struct ad4080_dev *dev,
409  enum ad4080_intf_chk_en *intf_chk_en);
410 
413  enum ad4080_cnv_spi_lvds_lanes cnv_spi_lvds_lanes);
414 
417  enum ad4080_cnv_spi_lvds_lanes *cnv_spi_lvds_lanes);
418 
421  enum ad4080_conv_data_spi_lvds conv_data_spi_lvds);
422 
425  enum ad4080_conv_data_spi_lvds *conv_data_spi_lvds);
426 
429  uint8_t lvds_cnv_clk_cnt);
430 
433  uint8_t *lvds_cnv_clk_cnt);
434 
437  enum ad4080_lvds_self_clk_mode lvds_self_clk_mode);
438 
441  enum ad4080_lvds_self_clk_mode *lvds_self_clk_mode);
442 
443 
446  enum ad4080_lvds_cnv_clk_mode cnv_clk_mode);
447 
450  enum ad4080_lvds_cnv_clk_mode *cnv_clk_mode);
451 
453 int ad4080_set_lvds_vod(struct ad4080_dev *dev,
454  enum ad4080_lvds_vod lvds_vod);
455 
457 int ad4080_get_lvds_vod(struct ad4080_dev *dev, enum ad4080_lvds_vod *lvds_vod);
458 
460 int ad4080_set_ana_dig_ldo_pd(struct ad4080_dev *dev,
461  enum ad4080_ana_dig_ldo_pd ana_dig_ldo_pd);
462 
464 int ad4080_get_ana_dig_ldo_pd(struct ad4080_dev *dev,
465  enum ad4080_ana_dig_ldo_pd *ana_dig_ldo_pd);
466 
468 int ad4080_set_intf_ldo_pd(struct ad4080_dev *dev,
469  enum ad4080_intf_ldo_pd intf_ldo_pd);
470 
472 int ad4080_get_intf_ldo_pd(struct ad4080_dev *dev,
473  enum ad4080_intf_ldo_pd *intf_ldo_pd);
474 
476 int ad4080_set_fifo_mode(struct ad4080_dev *dev,
477  enum ad4080_fifo_mode fifo_mode);
478 
480 int ad4080_get_fifo_mode(struct ad4080_dev *dev,
481  enum ad4080_fifo_mode *fifo_mode);
482 
484 int ad4080_set_fifo_watermark(struct ad4080_dev *dev,
485  uint16_t fifo_watermark);
486 
488 int ad4080_get_fifo_watermark(struct ad4080_dev *dev,
489  uint16_t *fifo_watermark);
490 
493  enum ad4080_gpio gpio,
494  enum ad4080_gpio_op_enable gpio_op_enable);
495 
498  enum ad4080_gpio gpio,
499  enum ad4080_gpio_op_func_sel gpio_func);
500 
502 int ad4080_gpio_write_data(struct ad4080_dev *dev,
503  enum ad4080_gpio gpio,
504  bool data);
505 
507 int ad4080_gpio_read_data(struct ad4080_dev *dev,
508  enum ad4080_gpio gpio,
509  bool *data);
510 
514 
518 
520 int ad4080_init(struct ad4080_dev **device,
522 
524 int ad4080_remove(struct ad4080_dev *dev);
525 
526 #endif /* __AD4080_H__ */
AD4080_ADDR_INCR
@ AD4080_ADDR_INCR
Definition: ad4080.h:148
ad4080_set_gpio_output_enable
int ad4080_set_gpio_output_enable(struct ad4080_dev *dev, enum ad4080_gpio gpio, enum ad4080_gpio_op_enable gpio_op_enable)
Configure GPIO as input or output.
Definition: ad4080.c:946
AD4080_GPIO_2
@ AD4080_GPIO_2
Definition: ad4080.h:229
AD4080_DATA_INTF_MODE_MSK
#define AD4080_DATA_INTF_MODE_MSK
Definition: ad4080.h:111
ad4080_get_lvds_cnv_clk_cnt
int ad4080_get_lvds_cnv_clk_cnt(struct ad4080_dev *dev, uint8_t *lvds_cnv_clk_cnt)
Get AD4080 Interface clock periods from CNV rising edge.
Definition: ad4080.c:571
AD4080_GPIO_ADI_NSPI_SDO_DATA
@ AD4080_GPIO_ADI_NSPI_SDO_DATA
Definition: ad4080.h:242
ad4080_write
int ad4080_write(struct ad4080_dev *dev, uint16_t reg_addr, uint8_t reg_val)
Write device register.
Definition: ad4080.c:61
AD4080_REG_NORMAL_MODE
@ AD4080_REG_NORMAL_MODE
Definition: ad4080.h:172
ad4080_gpio_read_data
int ad4080_gpio_read_data(struct ad4080_dev *dev, enum ad4080_gpio gpio, bool *data)
Read the GPIO data.
Definition: ad4080.c:1037
ad4080_set_lvds_cnv_clk_mode
int ad4080_set_lvds_cnv_clk_mode(struct ad4080_dev *dev, enum ad4080_lvds_cnv_clk_mode cnv_clk_mode)
Set AD4080 LVDS CNV Clock Mode.
Definition: ad4080.c:644
ad4080_set_lvds_vod
int ad4080_set_lvds_vod(struct ad4080_dev *dev, enum ad4080_lvds_vod lvds_vod)
Set AD4080 LVDS Differential Output Voltage.
Definition: ad4080.c:693
BYTE_ADDR_H
#define BYTE_ADDR_H
Definition: ad405x.h:135
ad4080_init_param::addr_asc
enum ad4080_addr_asc addr_asc
Definition: ad4080.h:318
ad4080_get_lvds_self_clk_mode
int ad4080_get_lvds_self_clk_mode(struct ad4080_dev *dev, enum ad4080_lvds_self_clk_mode *lvds_self_clk_mode)
Get AD4080 LVDS Self Clock Mode.
Definition: ad4080.c:620
AD4080_185mVPP
@ AD4080_185mVPP
Definition: ad4080.h:208
ad4080_get_single_instr
int ad4080_get_single_instr(struct ad4080_dev *dev, enum ad4080_single_instr *single_instr)
Get Single/Streaming Mode.
Definition: ad4080.c:228
ad4080_get_lvds_cnv_clk_cnt
int ad4080_get_lvds_cnv_clk_cnt(struct ad4080_dev *dev, uint8_t *lvds_cnv_clk_cnt)
Get AD4080 Interface clock periods from CNV rising edge.
Definition: ad4080.c:571
ad4080_set_intf_ldo_pd
int ad4080_set_intf_ldo_pd(struct ad4080_dev *dev, enum ad4080_intf_ldo_pd intf_ldo_pd)
Set AD4080 Interface LDO.
Definition: ad4080.c:790
ad4080_get_ana_dig_ldo_pd
int ad4080_get_ana_dig_ldo_pd(struct ad4080_dev *dev, enum ad4080_ana_dig_ldo_pd *ana_dig_ldo_pd)
Get AD4080 Analog/Digital LDO.
Definition: ad4080.c:766
AD4080_GPIO_LT_DETECT
@ AD4080_GPIO_LT_DETECT
Definition: ad4080.h:247
AD4080_LVDS_VOD_MSK
#define AD4080_LVDS_VOD_MSK
Definition: ad4080.h:119
ad4080_get_conv_data_spi_lvds
int ad4080_get_conv_data_spi_lvds(struct ad4080_dev *dev, enum ad4080_conv_data_spi_lvds *conv_data_spi_lvds)
Get AD4080 Data Interface Configuration.
Definition: ad4080.c:522
ad4080_remove
int ad4080_remove(struct ad4080_dev *dev)
Remove the device and release resources.
Definition: ad4080.c:1234
AD4080_REG_GPIO_CONFIG_B
#define AD4080_REG_GPIO_CONFIG_B
Definition: ad4080.h:79
ad4080_set_op_mode
int ad4080_set_op_mode(struct ad4080_dev *dev, enum ad4080_op_mode op_mode)
Set Operation Mode.
Definition: ad4080.c:301
AD4080_GPIO_3
@ AD4080_GPIO_3
Definition: ad4080.h:230
AD4080_OP_LOW_POWER
@ AD4080_OP_LOW_POWER
Definition: ad4080.h:167
ad4080_set_conv_data_spi_lvds
int ad4080_set_conv_data_spi_lvds(struct ad4080_dev *dev, enum ad4080_conv_data_spi_lvds conv_data_spi_lvds)
Set AD4080 Data Interface Configuration.
Definition: ad4080.c:497
AD4080_INTF_LDO_DISABLE
@ AD4080_INTF_LDO_DISABLE
Definition: ad4080.h:222
ad4080_dev::fifo_mode
enum ad4080_fifo_mode fifo_mode
Definition: ad4080.h:301
ad4080_init_param::fifo_mode
enum ad4080_fifo_mode fifo_mode
Definition: ad4080.h:346
ad4080_dev::cnv_clk_mode
enum ad4080_lvds_cnv_clk_mode cnv_clk_mode
Definition: ad4080.h:293
ad4080_init_param::cnv_spi_lvds_lanes
enum ad4080_cnv_spi_lvds_lanes cnv_spi_lvds_lanes
Definition: ad4080.h:330
ad4080_get_lvds_cnv_clk_mode
int ad4080_get_lvds_cnv_clk_mode(struct ad4080_dev *dev, enum ad4080_lvds_cnv_clk_mode *cnv_clk_mode)
Get AD4080 LVDS CNV Clock Mode.
Definition: ad4080.c:669
AD4080_REG_INTERFACE_CONFIG_A
#define AD4080_REG_INTERFACE_CONFIG_A
Definition: ad4080.h:58
ad4080_dev::intf_chk_en
enum ad4080_intf_chk_en intf_chk_en
Definition: ad4080.h:283
AD4080_STRICT_REG_ACCESS_MSK
#define AD4080_STRICT_REG_ACCESS_MSK
Definition: ad4080.h:106
no_os_spi_write_and_read
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:165
AD4080_REG_FIFO_WATERMARK
#define AD4080_REG_FIFO_WATERMARK
Definition: ad4080.h:82
ad4080_soft_reset
int ad4080_soft_reset(struct ad4080_dev *dev)
Software reset the device.
Definition: ad4080.c:134
ad4080_init_param::intf_ldo_pd
enum ad4080_intf_ldo_pd intf_ldo_pd
Definition: ad4080.h:344
ad4080_set_op_mode
int ad4080_set_op_mode(struct ad4080_dev *dev, enum ad4080_op_mode op_mode)
Set Operation Mode.
Definition: ad4080.c:301
AD4080_ONE_LANE
@ AD4080_ONE_LANE
Definition: ad4080.h:184
AD4080_325mVPP
@ AD4080_325mVPP
Definition: ad4080.h:210
ad4080_addr_asc
ad4080_addr_asc
Definition: ad4080.h:146
no_os_spi.h
Header file of SPI Interface.
ad4080_get_lvds_vod
int ad4080_get_lvds_vod(struct ad4080_dev *dev, enum ad4080_lvds_vod *lvds_vod)
Get AD4080 LVDS Differential Output Voltage.
Definition: ad4080.c:718
AD4080_GPIO_HT_DETECT
@ AD4080_GPIO_HT_DETECT
Definition: ad4080.h:246
ad4080_get_lvds_cnv_clk_mode
int ad4080_get_lvds_cnv_clk_mode(struct ad4080_dev *dev, enum ad4080_lvds_cnv_clk_mode *cnv_clk_mode)
Get AD4080 LVDS CNV Clock Mode.
Definition: ad4080.c:669
AD4080_INTF_LDO_EN
@ AD4080_INTF_LDO_EN
Definition: ad4080.h:221
ad4080_dev::spi3wire
bool spi3wire
Definition: ad4080.h:271
AD4080_REG_GPIO_CONFIG_C
#define AD4080_REG_GPIO_CONFIG_C
Definition: ad4080.h:80
ad4080_dev::intf_ldo_pd
enum ad4080_intf_ldo_pd intf_ldo_pd
Definition: ad4080.h:299
ad4080_get_fifo_mode
int ad4080_get_fifo_mode(struct ad4080_dev *dev, enum ad4080_fifo_mode *fifo_mode)
Get Set AD4080 Conversion Data FIFO Mode.
Definition: ad4080.c:864
AD4080_EVENT_TRIGGER_LAST_WM
@ AD4080_EVENT_TRIGGER_LAST_WM
Definition: ad4080.h:259
no_os_delay.h
Header file of Delay functions.
ad4080_get_addr_asc
int ad4080_get_addr_asc(struct ad4080_dev *dev, enum ad4080_addr_asc *addr_asc)
Get Address Ascension.
Definition: ad4080.c:180
ad4080_read
int ad4080_read(struct ad4080_dev *dev, uint16_t reg_addr, uint8_t *reg_val)
Read device register.
Definition: ad4080.c:82
ad4080_get_intf_chk_en
int ad4080_get_intf_chk_en(struct ad4080_dev *dev, enum ad4080_intf_chk_en *intf_chk_en)
Get AD4080 Output Pattern.
Definition: ad4080.c:424
ad4080_configuration_intf_init
int ad4080_configuration_intf_init(struct ad4080_dev *dev, struct ad4080_init_param init_param)
Configure the config SPI interface during initialization.
Definition: ad4080.c:1075
ad4080_set_cnv_spi_lvds_lanes
int ad4080_set_cnv_spi_lvds_lanes(struct ad4080_dev *dev, enum ad4080_cnv_spi_lvds_lanes cnv_spi_lvds_lanes)
Set AD4080 LVDS/SPI Lane Control.
Definition: ad4080.c:448
ad4080_dev::short_instr
enum ad4080_short_instr short_instr
Definition: ad4080.h:277
ad4080_data_intf_init
int ad4080_data_intf_init(struct ad4080_dev *device, struct ad4080_init_param init_param)
Configure the data interface during initialization.
Definition: ad4080.c:1105
AD4080_IMMEDIATE_TRIGGER
@ AD4080_IMMEDIATE_TRIGGER
Definition: ad4080.h:258
ad4080_op_mode
ad4080_op_mode
Definition: ad4080.h:164
ad4080_set_single_instr
int ad4080_set_single_instr(struct ad4080_dev *dev, enum ad4080_single_instr single_instr)
Set Single/Streaming Mode.
Definition: ad4080.c:203
AD4080_INTF_LDO_PD_MSK
#define AD4080_INTF_LDO_PD_MSK
Definition: ad4080.h:123
AD4080_SDO_ENABLE_MSK
#define AD4080_SDO_ENABLE_MSK
Definition: ad4080.h:93
ad4080_dev::ana_dig_ldo_pd
enum ad4080_ana_dig_ldo_pd ana_dig_ldo_pd
Definition: ad4080.h:297
ad4080_gpio_read_data
int ad4080_gpio_read_data(struct ad4080_dev *dev, enum ad4080_gpio gpio, bool *data)
Read the GPIO data.
Definition: ad4080.c:1037
AD4080_15_BIT_ADDR
@ AD4080_15_BIT_ADDR
Definition: ad4080.h:159
ad4080_init_param::op_mode
enum ad4080_op_mode op_mode
Definition: ad4080.h:324
AD4080_REG_DEVICE_CONFIG
#define AD4080_REG_DEVICE_CONFIG
Definition: ad4080.h:60
device
Definition: ad9361_util.h:75
AD4080_LVDS_SELF_CLK_MODE_MSK
#define AD4080_LVDS_SELF_CLK_MODE_MSK
Definition: ad4080.h:115
ad4080_get_fifo_watermark
int ad4080_get_fifo_watermark(struct ad4080_dev *dev, uint16_t *fifo_watermark)
Get AD4080 FIFO Watermark.
Definition: ad4080.c:913
AD4080_REG_DATA_INTF_CONFIG_B
#define AD4080_REG_DATA_INTF_CONFIG_B
Definition: ad4080.h:75
AD4080_FIFO_DISABLE
@ AD4080_FIFO_DISABLE
Definition: ad4080.h:257
ad4080_lvds_cnv_clk_mode
ad4080_lvds_cnv_clk_mode
Definition: ad4080.h:201
AD4080_ADDR_ASC_MSK
#define AD4080_ADDR_ASC_MSK
Definition: ad4080.h:92
ad4080_short_instr
ad4080_short_instr
Definition: ad4080.h:158
ad4080_init_param::lvds_vod
enum ad4080_lvds_vod lvds_vod
Definition: ad4080.h:340
AD4080_CONV_DATA_LVDS
@ AD4080_CONV_DATA_LVDS
Definition: ad4080.h:190
ad4080_init_param::gpio_op_enable
enum ad4080_gpio_op_enable gpio_op_enable[NUM_AD4080_GPIO]
Definition: ad4080.h:348
ad4080_dev::lvds_self_clk_mode
enum ad4080_lvds_self_clk_mode lvds_self_clk_mode
Definition: ad4080.h:291
ad4080_set_gpio_output_enable
int ad4080_set_gpio_output_enable(struct ad4080_dev *dev, enum ad4080_gpio gpio, enum ad4080_gpio_op_enable gpio_op_enable)
Configure GPIO as input or output.
Definition: ad4080.c:946
AD4080_REG_CHIP_TYPE
#define AD4080_REG_CHIP_TYPE
Definition: ad4080.h:61
ad4080_set_short_instr
int ad4080_set_short_instr(struct ad4080_dev *dev, enum ad4080_short_instr short_instr)
Set Short Instruction.
Definition: ad4080.c:252
AD4080_CNV_LVDS_MODE
@ AD4080_CNV_LVDS_MODE
Definition: ad4080.h:203
ad4080_init
int ad4080_init(struct ad4080_dev **device, struct ad4080_init_param init_param)
Initialize the device.
Definition: ad4080.c:1147
AD4080_ADDR_DECR
@ AD4080_ADDR_DECR
Definition: ad4080.h:147
ad4080_dev::op_mode
enum ad4080_op_mode op_mode
Definition: ad4080.h:279
ad4080_update_bits
int ad4080_update_bits(struct ad4080_dev *dev, uint16_t reg_addr, uint8_t mask, uint8_t reg_val)
Update specific register bits.
Definition: ad4080.c:110
ad4080_configuration_intf_init
int ad4080_configuration_intf_init(struct ad4080_dev *device, struct ad4080_init_param init_param)
Configure the config SPI interface during initialization.
Definition: ad4080.c:1075
ad4080_init_param::single_instr
enum ad4080_single_instr single_instr
Definition: ad4080.h:320
AD4080_GPIO_EN_MSK
#define AD4080_GPIO_EN_MSK(x)
Definition: ad4080.h:126
AD4080_CONV_DATA_SPI
@ AD4080_CONV_DATA_SPI
Definition: ad4080.h:191
ad4080_init_param::spi_init
struct no_os_spi_init_param * spi_init
Definition: ad4080.h:314
ad4080_set_conv_data_spi_lvds
int ad4080_set_conv_data_spi_lvds(struct ad4080_dev *dev, enum ad4080_conv_data_spi_lvds conv_data_spi_lvds)
Set AD4080 Data Interface Configuration.
Definition: ad4080.c:497
no_os_field_prep
uint32_t no_os_field_prep(uint32_t mask, uint32_t val)
ad4080_set_gpio_output_func
int ad4080_set_gpio_output_func(struct ad4080_dev *dev, enum ad4080_gpio gpio, enum ad4080_gpio_op_func_sel gpio_func)
Configure the GPIO output for a specific function.
Definition: ad4080.c:974
AD4080_LVDS_CNV_CLK_CNT_MSK
#define AD4080_LVDS_CNV_CLK_CNT_MSK
Definition: ad4080.h:114
ad4080_update_bits
int ad4080_update_bits(struct ad4080_dev *dev, uint16_t reg_addr, uint8_t mask, uint8_t reg_val)
Update specific register bits.
Definition: ad4080.c:110
AD4080_FIFO_SIZE
#define AD4080_FIFO_SIZE
Definition: ad4080.h:139
ad4080_get_intf_ldo_pd
int ad4080_get_intf_ldo_pd(struct ad4080_dev *dev, enum ad4080_intf_ldo_pd *intf_ldo_pd)
Get AD4080 Interface LDO.
Definition: ad4080.c:815
AD4080_GPIO_0
@ AD4080_GPIO_0
Definition: ad4080.h:227
AD4080_REG_STRICT_MODE
@ AD4080_REG_STRICT_MODE
Definition: ad4080.h:173
ad4080_dev::spi_desc
struct no_os_spi_desc * spi_desc
Definition: ad4080.h:269
ad4080_get_addr_asc
int ad4080_get_addr_asc(struct ad4080_dev *dev, enum ad4080_addr_asc *addr_asc)
Get Address Ascension.
Definition: ad4080.c:180
ad4080_set_cnv_spi_lvds_lanes
int ad4080_set_cnv_spi_lvds_lanes(struct ad4080_dev *dev, enum ad4080_cnv_spi_lvds_lanes cnv_spi_lvds_lanes)
Set AD4080 LVDS/SPI Lane Control.
Definition: ad4080.c:448
ad4080_init_param::conv_data_spi_lvds
enum ad4080_conv_data_spi_lvds conv_data_spi_lvds
Definition: ad4080.h:332
AD4080_SPI_LVDS_LANES_MSK
#define AD4080_SPI_LVDS_LANES_MSK
Definition: ad4080.h:110
AD4080_GPIO_1
@ AD4080_GPIO_1
Definition: ad4080.h:228
ad4080_get_op_mode
int ad4080_get_op_mode(struct ad4080_dev *dev, enum ad4080_op_mode *op_mode)
Get Operation Mode.
Definition: ad4080.c:326
AD4080_OP_MODE_MSK
#define AD4080_OP_MODE_MSK
Definition: ad4080.h:100
ad4080_get_intf_chk_en
int ad4080_get_intf_chk_en(struct ad4080_dev *dev, enum ad4080_intf_chk_en *intf_chk_en)
Get AD4080 Output Pattern.
Definition: ad4080.c:424
ad4080_read
int ad4080_read(struct ad4080_dev *dev, uint16_t reg_addr, uint8_t *reg_val)
Read device register.
Definition: ad4080.c:82
ad4080_init
int ad4080_init(struct ad4080_dev **device, struct ad4080_init_param init_param)
Initialize the device.
Definition: ad4080.c:1147
ad4080_get_lvds_vod
int ad4080_get_lvds_vod(struct ad4080_dev *dev, enum ad4080_lvds_vod *lvds_vod)
Get AD4080 LVDS Differential Output Voltage.
Definition: ad4080.c:718
ad4080_set_intf_ldo_pd
int ad4080_set_intf_ldo_pd(struct ad4080_dev *dev, enum ad4080_intf_ldo_pd intf_ldo_pd)
Set AD4080 Interface LDO.
Definition: ad4080.c:790
ad4080_get_ana_dig_ldo_pd
int ad4080_get_ana_dig_ldo_pd(struct ad4080_dev *dev, enum ad4080_ana_dig_ldo_pd *ana_dig_ldo_pd)
Get AD4080 Analog/Digital LDO.
Definition: ad4080.c:766
ad4080_get_strict_reg_access
int ad4080_get_strict_reg_access(struct ad4080_dev *dev, enum ad4080_strict_reg_access *strict_reg)
Get Strict Register Access.
Definition: ad4080.c:375
ad4080_dev::lvds_cnv_clk_cnt
uint8_t lvds_cnv_clk_cnt
Definition: ad4080.h:289
ad4080_init_param::cnv_clk_mode
enum ad4080_lvds_cnv_clk_mode cnv_clk_mode
Definition: ad4080.h:338
AD4080_OP_STANDBY
@ AD4080_OP_STANDBY
Definition: ad4080.h:166
ad4080_dev::single_instr
enum ad4080_single_instr single_instr
Definition: ad4080.h:275
ad4080_set_addr_asc
int ad4080_set_addr_asc(struct ad4080_dev *dev, enum ad4080_addr_asc addr_asc)
Set Address Ascension.
Definition: ad4080.c:156
AD4080_SW_RESET_MSK
#define AD4080_SW_RESET_MSK
Definition: ad4080.h:91
AD4080_FIXED_PATTERN
@ AD4080_FIXED_PATTERN
Definition: ad4080.h:179
ad4080_init_param::lvds_self_clk_mode
enum ad4080_lvds_self_clk_mode lvds_self_clk_mode
Definition: ad4080.h:336
AD4080_GPIO_FILTER_SYNC_INPUT
@ AD4080_GPIO_FILTER_SYNC_INPUT
Definition: ad4080.h:250
ad4080_lvds_vod
ad4080_lvds_vod
Definition: ad4080.h:207
ad4080_get_cnv_spi_lvds_lanes
int ad4080_get_cnv_spi_lvds_lanes(struct ad4080_dev *dev, enum ad4080_cnv_spi_lvds_lanes *cnv_spi_lvds_lanes)
Get AD4080 LVDS/SPI Lane Control.
Definition: ad4080.c:473
ad4080_dev::cnv_spi_lvds_lanes
enum ad4080_cnv_spi_lvds_lanes cnv_spi_lvds_lanes
Definition: ad4080.h:285
AD4080_REG_DATA_INTF_CONFIG_A
#define AD4080_REG_DATA_INTF_CONFIG_A
Definition: ad4080.h:74
ad4080_set_fifo_mode
int ad4080_set_fifo_mode(struct ad4080_dev *dev, enum ad4080_fifo_mode fifo_mode)
Set AD4080 Conversion Data FIFO Mode.
Definition: ad4080.c:839
ad4080_set_ana_dig_ldo_pd
int ad4080_set_ana_dig_ldo_pd(struct ad4080_dev *dev, enum ad4080_ana_dig_ldo_pd ana_dig_ldo_pd)
Set AD4080 Analog/Digital LDO.
Definition: ad4080.c:741
AD4080_AD_LDO_EN
@ AD4080_AD_LDO_EN
Definition: ad4080.h:215
ad4080_init_param::strict_reg
enum ad4080_strict_reg_access strict_reg
Definition: ad4080.h:326
ad4080_get_lvds_self_clk_mode
int ad4080_get_lvds_self_clk_mode(struct ad4080_dev *dev, enum ad4080_lvds_self_clk_mode *lvds_self_clk_mode)
Get AD4080 LVDS Self Clock Mode.
Definition: ad4080.c:620
ad4080_set_lvds_cnv_clk_cnt
int ad4080_set_lvds_cnv_clk_cnt(struct ad4080_dev *dev, uint8_t lvds_cnv_clk_cnt)
Set AD4080 Interface clock periods from CNV rising edge.
Definition: ad4080.c:546
ad4080_get_cnv_spi_lvds_lanes
int ad4080_get_cnv_spi_lvds_lanes(struct ad4080_dev *dev, enum ad4080_cnv_spi_lvds_lanes *cnv_spi_lvds_lanes)
Get AD4080 LVDS/SPI Lane Control.
Definition: ad4080.c:473
ad4080_cnv_spi_lvds_lanes
ad4080_cnv_spi_lvds_lanes
Definition: ad4080.h:183
ad4080_set_lvds_cnv_clk_mode
int ad4080_set_lvds_cnv_clk_mode(struct ad4080_dev *dev, enum ad4080_lvds_cnv_clk_mode cnv_clk_mode)
Set AD4080 LVDS CNV Clock Mode.
Definition: ad4080.c:644
no_os_spi_desc
Structure holding SPI descriptor.
Definition: no_os_spi.h:177
ad4080_conv_data_spi_lvds
ad4080_conv_data_spi_lvds
Definition: ad4080.h:189
ad4080_dev::gpio_op_func_sel
enum ad4080_gpio_op_func_sel gpio_op_func_sel[NUM_AD4080_GPIO]
Definition: ad4080.h:305
ad4080_init_param::gpio_op_func_sel
enum ad4080_gpio_op_func_sel gpio_op_func_sel[NUM_AD4080_GPIO]
Definition: ad4080.h:350
ad4080_gpio
ad4080_gpio
Definition: ad4080.h:226
ad4080_init_param::intf_chk_en
enum ad4080_intf_chk_en intf_chk_en
Definition: ad4080.h:328
NUM_AD4080_GPIO
@ NUM_AD4080_GPIO
Definition: ad4080.h:231
ad4080_get_fifo_mode
int ad4080_get_fifo_mode(struct ad4080_dev *dev, enum ad4080_fifo_mode *fifo_mode)
Get Set AD4080 Conversion Data FIFO Mode.
Definition: ad4080.c:864
ad4080_gpio_op_enable
ad4080_gpio_op_enable
Definition: ad4080.h:235
AD4080_7_BIT_ADDR
@ AD4080_7_BIT_ADDR
Definition: ad4080.h:160
AD4080_GPIO_FILTER_RESULT_READY
@ AD4080_GPIO_FILTER_RESULT_READY
Definition: ad4080.h:245
AD4080_REG_GENERAL_CONFIG
#define AD4080_REG_GENERAL_CONFIG
Definition: ad4080.h:81
AD4080_DATA
@ AD4080_DATA
Definition: ad4080.h:178
AD4080_GPIO_EXT_EVENT_TRIGGER_FIFO
@ AD4080_GPIO_EXT_EVENT_TRIGGER_FIFO
Definition: ad4080.h:251
AD4080_EVENT_TRIGGER
@ AD4080_EVENT_TRIGGER
Definition: ad4080.h:260
ad4080_dev::lvds_vod
enum ad4080_lvds_vod lvds_vod
Definition: ad4080.h:295
ad4080_strict_reg_access
ad4080_strict_reg_access
Definition: ad4080.h:171
AD4080_GPIO_OUTPUT
@ AD4080_GPIO_OUTPUT
Definition: ad4080.h:237
ad4080_get_single_instr
int ad4080_get_single_instr(struct ad4080_dev *dev, enum ad4080_single_instr *single_instr)
Get Single/Streaming Mode.
Definition: ad4080.c:228
ad4080_set_fifo_mode
int ad4080_set_fifo_mode(struct ad4080_dev *dev, enum ad4080_fifo_mode fifo_mode)
Set AD4080 Conversion Data FIFO Mode.
Definition: ad4080.c:839
ad4080_get_short_instr
int ad4080_get_short_instr(struct ad4080_dev *dev, enum ad4080_short_instr *short_instr)
Get Short Instruction.
Definition: ad4080.c:277
AD4080_STREAM_MODE
@ AD4080_STREAM_MODE
Definition: ad4080.h:153
AD4080_REG_PWR_CTRL
#define AD4080_REG_PWR_CTRL
Definition: ad4080.h:77
ad4080_ana_dig_ldo_pd
ad4080_ana_dig_ldo_pd
Definition: ad4080.h:214
AD4080_LVDS_CNV_EN
#define AD4080_LVDS_CNV_EN
Definition: ad4080.h:116
ad4080_set_fifo_watermark
int ad4080_set_fifo_watermark(struct ad4080_dev *dev, uint16_t fifo_watermark)
Set AD4080 FIFO Watermark.
Definition: ad4080.c:888
ad4080_get_strict_reg_access
int ad4080_get_strict_reg_access(struct ad4080_dev *dev, enum ad4080_strict_reg_access *strict_reg)
Get Strict Register Access.
Definition: ad4080.c:375
ad4080_set_lvds_self_clk_mode
int ad4080_set_lvds_self_clk_mode(struct ad4080_dev *dev, enum ad4080_lvds_self_clk_mode lvds_self_clk_mode)
Set AD4080 LVDS Self Clock Mode.
Definition: ad4080.c:595
ad4080_get_short_instr
int ad4080_get_short_instr(struct ad4080_dev *dev, enum ad4080_short_instr *short_instr)
Get Short Instruction.
Definition: ad4080.c:277
AD4080_SELF_CLK_MODE
@ AD4080_SELF_CLK_MODE
Definition: ad4080.h:197
ad4080_soft_reset
int ad4080_soft_reset(struct ad4080_dev *dev)
Software reset the device.
Definition: ad4080.c:134
no_os_field_get
uint32_t no_os_field_get(uint32_t mask, uint32_t word)
ad4080_get_op_mode
int ad4080_get_op_mode(struct ad4080_dev *dev, enum ad4080_op_mode *op_mode)
Get Operation Mode.
Definition: ad4080.c:326
ad4080_gpio_write_data
int ad4080_gpio_write_data(struct ad4080_dev *dev, enum ad4080_gpio gpio, bool data)
Set the GPIO data.
Definition: ad4080.c:1006
ad4080_dev
ad4080 Device structure.
Definition: ad4080.h:267
AD4080_ANA_DIG_LDO_PD_MSK
#define AD4080_ANA_DIG_LDO_PD_MSK
Definition: ad4080.h:122
ad4080_init_param
ad4080 Device initialization parameters.
Definition: ad4080.h:312
AD4080_REG_DATA_INTF_CONFIG_C
#define AD4080_REG_DATA_INTF_CONFIG_C
Definition: ad4080.h:76
AD4080_GPIO_INPUT
@ AD4080_GPIO_INPUT
Definition: ad4080.h:236
ad4080_init_param::short_instr
enum ad4080_short_instr short_instr
Definition: ad4080.h:322
ad4080_init_param::lvds_cnv_clk_cnt
uint8_t lvds_cnv_clk_cnt
Definition: ad4080.h:334
ad4080_set_strict_reg_access
int ad4080_set_strict_reg_access(struct ad4080_dev *dev, enum ad4080_strict_reg_access strict_reg)
Set Strict Register Access.
Definition: ad4080.c:350
ad4080_set_intf_chk_en
int ad4080_set_intf_chk_en(struct ad4080_dev *dev, enum ad4080_intf_chk_en intf_chk_en)
Set AD4080 Output Pattern.
Definition: ad4080.c:399
ad4080_dev::gpio_op_enable
enum ad4080_gpio_op_enable gpio_op_enable[NUM_AD4080_GPIO]
Definition: ad4080.h:303
AD4080_GPIO_GPO_DATA
@ AD4080_GPIO_GPO_DATA
Definition: ad4080.h:249
AD4080_CHIP_ID
#define AD4080_CHIP_ID
Definition: ad4080.h:138
AD4080_GPIO_SEL_MSK
#define AD4080_GPIO_SEL_MSK(x)
Definition: ad4080.h:127
ad4080_intf_ldo_pd
ad4080_intf_ldo_pd
Definition: ad4080.h:220
AD4080_SINGLE_INST
@ AD4080_SINGLE_INST
Definition: ad4080.h:154
ad4080_lvds_self_clk_mode
ad4080_lvds_self_clk_mode
Definition: ad4080.h:195
ad4080_set_short_instr
int ad4080_set_short_instr(struct ad4080_dev *dev, enum ad4080_short_instr short_instr)
Set Short Instruction.
Definition: ad4080.c:252
ad4080_set_gpio_output_func
int ad4080_set_gpio_output_func(struct ad4080_dev *dev, enum ad4080_gpio gpio, enum ad4080_gpio_op_func_sel gpio_func)
Configure the GPIO output for a specific function.
Definition: ad4080.c:974
AD4080_GPIO_STATUS_ALERT
@ AD4080_GPIO_STATUS_ALERT
Definition: ad4080.h:248
init_param
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:119
AD4080_GPIO_FIFO_FULL
@ AD4080_GPIO_FIFO_FULL
Definition: ad4080.h:243
AD4080_MULTIPLE_LANES
@ AD4080_MULTIPLE_LANES
Definition: ad4080.h:185
AD4080_SINGLE_INST_MSK
#define AD4080_SINGLE_INST_MSK
Definition: ad4080.h:96
ad4080_gpio_write_data
int ad4080_gpio_write_data(struct ad4080_dev *dev, enum ad4080_gpio gpio, bool data)
Set the GPIO data.
Definition: ad4080.c:1006
AD4080_SHORT_INST_MSK
#define AD4080_SHORT_INST_MSK
Definition: ad4080.h:97
no_os_spi_remove
int32_t no_os_spi_remove(struct no_os_spi_desc *desc)
Free the resources allocated by no_os_spi_init().
Definition: no_os_spi.c:122
ad4080_dev::strict_reg
enum ad4080_strict_reg_access strict_reg
Definition: ad4080.h:281
no_os_gpio.h
Header file of GPIO Interface.
ad4080_dev::addr_asc
enum ad4080_addr_asc addr_asc
Definition: ad4080.h:273
ad4080_set_strict_reg_access
int ad4080_set_strict_reg_access(struct ad4080_dev *dev, enum ad4080_strict_reg_access strict_reg)
Set Strict Register Access.
Definition: ad4080.c:350
AD4080_SPI_READ
#define AD4080_SPI_READ
Definition: ad4080.h:135
AD4080_GPIO_FIFO_READ_DONE
@ AD4080_GPIO_FIFO_READ_DONE
Definition: ad4080.h:244
ad4080_init_param::ana_dig_ldo_pd
enum ad4080_ana_dig_ldo_pd ana_dig_ldo_pd
Definition: ad4080.h:342
ad4080_init_param::spi3wire
bool spi3wire
Definition: ad4080.h:316
AD4080_CNV_CMOS_MODE
@ AD4080_CNV_CMOS_MODE
Definition: ad4080.h:202
BYTE_ADDR_L
#define BYTE_ADDR_L
Definition: ad405x.h:136
ad4080_set_addr_asc
int ad4080_set_addr_asc(struct ad4080_dev *dev, enum ad4080_addr_asc addr_asc)
Set Address Ascension.
Definition: ad4080.c:156
no_os_spi_init
int32_t no_os_spi_init(struct no_os_spi_desc **desc, const struct no_os_spi_init_param *param)
Initialize the SPI communication peripheral.
Definition: no_os_spi.c:58
ad4080_set_fifo_watermark
int ad4080_set_fifo_watermark(struct ad4080_dev *dev, uint16_t fifo_watermark)
Set AD4080 FIFO Watermark.
Definition: ad4080.c:888
ad4080_set_lvds_self_clk_mode
int ad4080_set_lvds_self_clk_mode(struct ad4080_dev *dev, enum ad4080_lvds_self_clk_mode lvds_self_clk_mode)
Set AD4080 LVDS Self Clock Mode.
Definition: ad4080.c:595
AD4080_240mVPP
@ AD4080_240mVPP
Definition: ad4080.h:209
ad4080_set_intf_chk_en
int ad4080_set_intf_chk_en(struct ad4080_dev *dev, enum ad4080_intf_chk_en intf_chk_en)
Set AD4080 Output Pattern.
Definition: ad4080.c:399
AD4080_OP_NORMAL
@ AD4080_OP_NORMAL
Definition: ad4080.h:165
no_os_util.h
Header file of utility functions.
AD4080_SW_RESET
#define AD4080_SW_RESET
Definition: ad4080.h:134
AD4080_AD_LDO_DISABLE
@ AD4080_AD_LDO_DISABLE
Definition: ad4080.h:216
ad4080_get_conv_data_spi_lvds
int ad4080_get_conv_data_spi_lvds(struct ad4080_dev *dev, enum ad4080_conv_data_spi_lvds *conv_data_spi_lvds)
Get AD4080 Data Interface Configuration.
Definition: ad4080.c:522
AD4080_REG_INTERFACE_CONFIG_C
#define AD4080_REG_INTERFACE_CONFIG_C
Definition: ad4080.h:71
ad4080_set_lvds_vod
int ad4080_set_lvds_vod(struct ad4080_dev *dev, enum ad4080_lvds_vod lvds_vod)
Set AD4080 LVDS Differential Output Voltage.
Definition: ad4080.c:693
ad4080_fifo_mode
ad4080_fifo_mode
Definition: ad4080.h:256
ad4080_set_lvds_cnv_clk_cnt
int ad4080_set_lvds_cnv_clk_cnt(struct ad4080_dev *dev, uint8_t lvds_cnv_clk_cnt)
Set AD4080 Interface clock periods from CNV rising edge.
Definition: ad4080.c:546
ad4080_set_ana_dig_ldo_pd
int ad4080_set_ana_dig_ldo_pd(struct ad4080_dev *dev, enum ad4080_ana_dig_ldo_pd ana_dig_ldo_pd)
Set AD4080 Analog/Digital LDO.
Definition: ad4080.c:741
ad4080.h
Header file of AD4080 Driver.
ad4080_dev::conv_data_spi_lvds
enum ad4080_conv_data_spi_lvds conv_data_spi_lvds
Definition: ad4080.h:287
ad4080_get_fifo_watermark
int ad4080_get_fifo_watermark(struct ad4080_dev *dev, uint16_t *fifo_watermark)
Get AD4080 FIFO Watermark.
Definition: ad4080.c:913
ad4080_data_intf_init
int ad4080_data_intf_init(struct ad4080_dev *dev, struct ad4080_init_param init_param)
Configure the data interface during initialization.
Definition: ad4080.c:1105
ad4080_gpio_op_func_sel
ad4080_gpio_op_func_sel
Definition: ad4080.h:241
errno.h
Error macro definition for ARM Compiler.
ad4080_single_instr
ad4080_single_instr
Definition: ad4080.h:152
AD4080_ECHO_CLK_MODE
@ AD4080_ECHO_CLK_MODE
Definition: ad4080.h:196
AD4080_GPIO_CNV_INHIBIT_INPUT
@ AD4080_GPIO_CNV_INHIBIT_INPUT
Definition: ad4080.h:252
AD4080_REG_INTERFACE_CONFIG_B
#define AD4080_REG_INTERFACE_CONFIG_B
Definition: ad4080.h:59
AD4080_INTF_CHK_EN_MSK
#define AD4080_INTF_CHK_EN_MSK
Definition: ad4080.h:109
AD4080_GPIO_DATA_MSK
#define AD4080_GPIO_DATA_MSK(x)
Definition: ad4080.h:128
AD4080_FIFO_MODE_MSK
#define AD4080_FIFO_MODE_MSK
Definition: ad4080.h:131
ad4080_write
int ad4080_write(struct ad4080_dev *dev, uint16_t reg_addr, uint8_t reg_val)
Write device register.
Definition: ad4080.c:61
AD4080_REG_GPIO_CONFIG_A
#define AD4080_REG_GPIO_CONFIG_A
Definition: ad4080.h:78
ad4080_intf_chk_en
ad4080_intf_chk_en
Definition: ad4080.h:177
no_os_spi_init_param
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:131
ad4080_get_intf_ldo_pd
int ad4080_get_intf_ldo_pd(struct ad4080_dev *dev, enum ad4080_intf_ldo_pd *intf_ldo_pd)
Get AD4080 Interface LDO.
Definition: ad4080.c:815
ad4080_set_single_instr
int ad4080_set_single_instr(struct ad4080_dev *dev, enum ad4080_single_instr single_instr)
Set Single/Streaming Mode.
Definition: ad4080.c:203
ad4080_remove
int ad4080_remove(struct ad4080_dev *dev)
Remove the device and release resources.
Definition: ad4080.c:1234