Go to the documentation of this file.
51 #define AD463X_REG_INTERFACE_CONFIG_A 0x00
52 #define AD463X_REG_INTERFACE_CONFIG_B 0x01
53 #define AD463X_REG_DEVICE_CONFIG 0x02
54 #define AD463X_REG_CHIP_TYPE 0x03
55 #define AD463X_REG_PRODUCT_ID_L 0x04
56 #define AD463X_REG_PRODUCT_ID_H 0x05
57 #define AD463X_REG_CHIP_GRADE 0x06
58 #define AD463X_REG_SCRATCH_PAD 0x0A
59 #define AD463X_REG_SPI_REVISION 0x0B
60 #define AD463X_REG_VENDOR_L 0x0C
61 #define AD463X_REG_VENDOR_H 0x0D
62 #define AD463X_REG_STREAM_MODE 0x0E
63 #define AD463X_REG_EXIT_CFG_MODE 0x14
64 #define AD463X_REG_AVG 0x15
65 #define AD463X_REG_OFFSET_BASE 0x16
66 #define AD463X_REG_OFFSET_X0_0 0x16
67 #define AD463X_REG_OFFSET_X0_1 0x17
68 #define AD463X_REG_OFFSET_X0_2 0x18
69 #define AD463X_REG_OFFSET_X1_0 0x19
70 #define AD463X_REG_OFFSET_X1_1 0x1A
71 #define AD463X_REG_OFFSET_X1_2 0x1B
72 #define AD463X_REG_GAIN_BASE 0x1C
73 #define AD463X_REG_GAIN_X0_LSB 0x1C
74 #define AD463X_REG_GAIN_X0_MSB 0x1D
75 #define AD463X_REG_GAIN_X1_LSB 0x1E
76 #define AD463X_REG_GAIN_X1_MSB 0x1F
77 #define AD463X_REG_MODES 0x20
78 #define AD463X_REG_OSCILATOR 0x21
79 #define AD463X_REG_IO 0x22
80 #define AD463X_REG_PAT0 0x23
81 #define AD463X_REG_PAT1 0x24
82 #define AD463X_REG_PAT2 0x25
83 #define AD463X_REG_PAT3 0x26
84 #define AD463X_REG_DIG_DIAG 0x34
85 #define AD463X_REG_DIG_ERR 0x35
87 #define AD463X_CFG_SW_RESET (NO_OS_BIT(7) | NO_OS_BIT(0))
88 #define AD463X_CFG_SDO_ENABLE NO_OS_BIT(4)
90 #define AD463X_SW_RESET_MSK (NO_OS_BIT(7) | NO_OS_BIT(0))
91 #define AD463X_LANE_MODE_MSK (NO_OS_BIT(7) | NO_OS_BIT(6))
92 #define AD463X_CLK_MODE_MSK (NO_OS_BIT(5) | NO_OS_BIT(4))
93 #define AD463X_DDR_MODE_MSK NO_OS_BIT(3)
94 #define AD463X_SDR_MODE 0x00
95 #define AD463X_DDR_MODE NO_OS_BIT(3)
96 #define AD463X_OUT_DATA_MODE_MSK (NO_OS_BIT(2) | NO_OS_BIT(1) | NO_OS_BIT(0))
97 #define AD463X_24_DIFF 0x00
98 #define AD463X_16_DIFF_8_COM 0x01
99 #define AD463X_24_DIFF_8_COM 0x02
100 #define AD463X_30_AVERAGED_DIFF 0x03
101 #define AD463X_32_PATTERN 0x04
103 #define AD463X_EXIT_CFG_MODE NO_OS_BIT(0)
105 #define AD463X_CHANNEL_0 0x00
106 #define AD463X_CHANNEL_1 0x01
108 #define AD463X_OFFSET_0 0x00
109 #define AD463X_OFFSET_1 0x01
110 #define AD463X_OFFSET_2 0x02
112 #define AD463X_GAIN_LSB 0x00
113 #define AD463X_GAIN_MSB 0x01
115 #define AD463X_ONE_LANE_PER_CH 0x00
116 #define AD463X_TWO_LANES_PER_CH NO_OS_BIT(6)
117 #define AD463X_FOUR_LANES_PER_CH NO_OS_BIT(7)
118 #define AD463X_SHARED_TWO_CH (NO_OS_BIT(6) | NO_OS_BIT(7))
120 #define AD463X_SPI_COMPATIBLE_MODE 0x00
121 #define AD463X_ECHO_CLOCK_MODE NO_OS_BIT(4)
122 #define AD463X_CLOCK_MASTER_MODE NO_OS_BIT(5)
124 #define AD463X_NORMAL_MODE 0x00
125 #define AD463X_LOW_POWER_MODE (NO_OS_BIT(1) | NO_OS_BIT(0))
127 #define AD463X_AVG_FILTER_RESET NO_OS_BIT(7)
128 #define AD463X_CONFIG_TIMING 0x2000
129 #define AD463X_REG_READ_DUMMY 0x00
130 #define AD463X_REG_WRITE 0x00
131 #define AD463X_REG_READ NO_OS_BIT(7)
132 #define AD463X_REG_CHAN_OFFSET(ch, pos) (AD463X_REG_OFFSET_BASE + (3 * ch) + pos)
133 #define AD463X_REG_CHAN_GAIN(ch, pos) (AD463X_REG_GAIN_BASE + (2 * ch) + pos)
135 #define AD463X_DRIVER_STRENGTH_MASK NO_OS_BIT(0)
136 #define AD463X_NORMAL_OUTPUT_STRENGTH 0x00
137 #define AD463X_DOUBLE_OUTPUT_STRENGTH NO_OS_BIT(1)
139 #define AD463X_OUT_DATA_PAT 0x5A5A0F0F
141 #define AD463X_TRIGGER_PULSE_WIDTH_NS 0x0A
143 #define AD463X_GAIN_MAX_VAL_SCALED 19997
const char * name
Definition: clk_axi_clkgen.h:51
#define MILLI
Definition: no_os_units.h:48
int32_t ad463x_set_drive_strength(struct ad463x_dev *dev, uint8_t mode)
Set drive strength.
Definition: ad463x.c:247
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
ad463x_id
Device type.
Definition: ad463x.h:149
uint32_t no_commands
Definition: spi_engine.h:165
Structure containing the init parameters needed by the PWM generator.
Definition: no_os_pwm.h:66
int32_t scale_table[4][2]
Definition: ad463x.h:272
int32_t ad463x_set_ch_gain(struct ad463x_dev *dev, uint8_t ch_idx, uint64_t gain)
Set channel gain.
Definition: ad463x.c:291
int64_t no_os_div_s64_rem(int64_t dividend, int32_t divisor, int32_t *remainder)
int32_t ad463x_set_avg_frame_len(struct ad463x_dev *dev, uint8_t mode)
Set average frame length.
Definition: ad463x.c:210
uint8_t reg_data_width
Definition: ad463x.h:214
#define AD463x_TEST_DATA
Definition: ad463x.c:51
uint8_t pgia_idx
Definition: ad463x.h:270
struct no_os_spi_init_param * spi_init
Definition: ad463x.h:195
uint8_t clock_mode
Definition: ad463x.h:218
int32_t ad463x_set_avg_frame_len(struct ad463x_dev *dev, uint8_t mode)
Set average frame length.
Definition: ad463x.c:210
bool offload_enable
Definition: ad463x.h:228
uint8_t data_rate
Definition: ad463x.h:220
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
@ AD463X_GAIN_0_56
Definition: ad463x.h:182
#define AD463X_REG_READ_DUMMY
Definition: ad463x.h:129
int32_t ad463x_calc_pgia_gain(int32_t gain_int, int32_t gain_fract, int32_t vref, int32_t precision, enum ad463x_pgia_gain *gain_idx)
Calculate the PGIA gain.
Definition: ad463x.c:888
#define CS_LOW
Definition: spi_engine.h:73
#define AD463X_REG_DEVICE_CONFIG
Definition: ad463x.h:53
#define AD463X_EXIT_CFG_MODE
Definition: ad463x.h:103
Header file of SPI Interface.
uint8_t lane_mode
Definition: ad463x.h:262
#define AD463X_DDR_MODE
Definition: ad463x.h:95
#define ADAQ4224_GAIN_MAX_NANO
Definition: ad463x.c:53
@ ID_AD4631_16
Definition: ad463x.h:161
uint32_t axi_clkgen_rate
Definition: ad463x.h:208
int32_t spi_engine_offload_init(struct no_os_spi_desc *desc, const struct spi_engine_offload_init_param *param)
Initialize the SPI engine's offload module.
Definition: spi_engine.c:763
int32_t ad463x_spi_reg_read(struct ad463x_dev *dev, uint16_t reg_addr, uint8_t *reg_data)
Read device register.
Definition: ad463x.c:83
int32_t no_os_pwm_remove(struct no_os_pwm_desc *desc)
Free the resources allocated by no_os_pwm_init().
Definition: no_os_pwm.c:79
Driver for the Analog Devices AXI CLKGEN.
int32_t ad463x_spi_reg_write(struct ad463x_dev *dev, uint16_t reg_addr, uint8_t reg_data)
Write device register.
Definition: ad463x.c:107
#define pr_err(fmt, args...)
Definition: no_os_print_log.h:88
uint32_t * commands_data
Definition: spi_engine.h:167
Definition: no_os_spi.h:100
int32_t ad463x_exit_reg_cfg_mode(struct ad463x_dev *dev)
Exit register configuration mode.
Definition: ad463x.c:262
int32_t vref
Definition: ad463x.h:222
#define AD463X_CLK_MODE_MSK
Definition: ad463x.h:92
uint8_t output_mode
Definition: ad463x.h:224
Header file of Delay functions.
Definition: clk_axi_clkgen.h:50
struct no_os_gpio_desc * gpio_pgia_a0
Definition: ad463x.h:243
int32_t axi_clkgen_set_rate(struct axi_clkgen *clkgen, uint32_t rate)
axi_clkgen_set_rate
Definition: clk_axi_clkgen.c:414
#define NO_OS_DIV_ROUND_CLOSEST_ULL(x, y)
Definition: no_os_util.h:56
struct no_os_gpio_desc * gpio_resetn
Definition: ad463x.h:241
struct spi_engine_offload_init_param * offload_init_param
Definition: ad463x.h:204
int32_t ad463x_read_data_offload(struct ad463x_dev *dev, uint32_t *buf, uint16_t samples)
Read from device. Enter register mode to read/write registers.
Definition: ad463x.c:418
@ ID_ADAQ4224
Definition: ad463x.h:171
Structure representing an offload message.
Definition: spi_engine.h:158
int32_t ad463x_spi_reg_read_masked(struct ad463x_dev *dev, uint16_t reg_addr, uint8_t mask, uint8_t *data)
SPI read device register using a mask.
Definition: ad463x.c:147
Definition: ad9361_util.h:69
int32_t no_os_spi_transfer_dma_sync(struct no_os_spi_desc *desc, struct no_os_spi_msg *msgs, uint32_t len)
Transfer a list of messages using DMA and busy wait for the completion.
Definition: no_os_spi.c:224
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:117
#define AD463X_OFFSET_1
Definition: ad463x.h:109
enum ad463x_id device_id
Definition: ad463x.h:212
#define AD463X_CONFIG_TIMING
Definition: ad463x.h:128
struct no_os_pwm_desc * trigger_pwm_desc
Definition: ad463x.h:246
#define AD463X_DOUBLE_OUTPUT_STRENGTH
Definition: ad463x.h:137
uint32_t no_os_find_closest(int32_t val, const int32_t *array, uint32_t size)
uint8_t data_rate
Definition: ad463x.h:266
#define AD463X_TWO_LANES_PER_CH
Definition: ad463x.h:116
int32_t axi_clkgen_init(struct axi_clkgen **clk, const struct axi_clkgen_init *init)
axi_clkgen_init
Definition: clk_axi_clkgen.c:520
@ ID_AD4630_16
Definition: ad463x.h:155
Definition: clk_axi_clkgen.h:44
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
#define AD463X_FOUR_LANES_PER_CH
Definition: ad463x.h:117
@ ID_AD4631_20
Definition: ad463x.h:159
#define AD463X_GAIN_LSB
Definition: ad463x.h:112
int32_t ad463x_set_ch_gain(struct ad463x_dev *dev, uint8_t ch_idx, uint64_t gain)
Set channel gain.
Definition: ad463x.c:291
#define MICRO
Definition: no_os_units.h:49
struct no_os_gpio_init_param * gpio_pgia_a1
Definition: ad463x.h:200
int32_t ad463x_spi_reg_write_masked(struct ad463x_dev *dev, uint16_t reg_addr, uint8_t mask, uint8_t data)
SPI write device register using a mask.
Definition: ad463x.c:172
@ NO_OS_GPIO_LOW
Definition: no_os_gpio.h:115
#define AD463X_32_PATTERN
Definition: ad463x.h:101
struct no_os_pwm_init_param * trigger_pwm_init
Definition: ad463x.h:202
#define AD463X_SHARED_TWO_CH
Definition: ad463x.h:118
uint32_t reg_access_speed
Definition: ad7616.h:212
uint8_t reg_data_width
Definition: ad463x.h:256
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:126
uint8_t real_bits_precision
Definition: ad463x.h:276
int32_t ad463x_set_pwr_mode(struct ad463x_dev *dev, uint8_t mode)
Set power mode.
Definition: ad463x.c:196
@ ID_AD4631_24
Definition: ad463x.h:157
#define CS_HIGH
Definition: spi_engine.h:72
void spi_engine_set_speed(struct no_os_spi_desc *desc, uint32_t speed_hz)
Set SPI engine clock frequency.
Definition: spi_engine.c:148
#define AD463X_ONE_LANE_PER_CH
Definition: ad463x.h:115
int32_t no_os_pwm_enable(struct no_os_pwm_desc *desc)
Enable PWM signal generation.
Definition: no_os_pwm.c:98
#define AD463X_REG_MODES
Definition: ad463x.h:77
int32_t spi_engine_set_transfer_width(struct no_os_spi_desc *desc, uint8_t data_wdith)
Set width of the transfered word over SPI.
Definition: spi_engine.c:127
@ ID_AD4632_24
Definition: ad463x.h:163
@ ID_AD4632_16
Definition: ad463x.h:167
#define AD463X_OFFSET_0
Definition: ad463x.h:108
struct spi_engine_offload_init_param * offload_init_param
Definition: ad7616.h:205
bool spi_dma_enable
Definition: ad463x.h:226
Header file of AD463x Driver.
struct no_os_pwm_init_param * trigger_pwm_init
Definition: ad7616.h:207
int32_t no_os_pwm_disable(struct no_os_pwm_desc *desc)
Disable PWM signal generation.
Definition: no_os_pwm.c:115
@ AD463X_GAIN_6_67
Definition: ad463x.h:186
int32_t ad463x_set_ch_offset(struct ad463x_dev *dev, uint8_t ch_idx, uint32_t offset)
Set channel offset.
Definition: ad463x.c:320
bool spi_dma_enable
Definition: ad463x.h:280
int32_t ad463x_spi_reg_write_masked(struct ad463x_dev *dev, uint16_t reg_addr, uint8_t mask, uint8_t data)
SPI write device register using a mask.
Definition: ad463x.c:172
int32_t ad463x_read_data(struct ad463x_dev *dev, uint32_t *buf, uint16_t samples)
Read from device. Enter register mode to read/write registers.
Definition: ad463x.c:628
#define AD463X_24_DIFF
Definition: ad463x.h:97
#define AD463X_REG_EXIT_CFG_MODE
Definition: ad463x.h:63
#define AD463X_REG_AVG
Definition: ad463x.h:64
uint32_t reg_access_speed
Definition: ad463x.h:252
uint32_t reg_access_speed
Definition: ad463x.h:210
struct no_os_spi_desc * spi_desc
Definition: ad463x.h:239
void(* dcache_invalidate_range)(uint32_t address, uint32_t bytes_count)
Definition: ad463x.h:284
int32_t ad463x_calc_pgia_gain(int32_t gain_int, int32_t gain_fract, int32_t vref, int32_t precision, enum ad463x_pgia_gain *gain_idx)
Calculate the PGIA gain.
Definition: ad463x.c:888
#define AD463X_NORMAL_MODE
Definition: ad463x.h:124
int32_t ad463x_enter_config_mode(struct ad463x_dev *dev)
Enter register configuration mode.
Definition: ad463x.c:125
int32_t ad463x_spi_reg_read_masked(struct ad463x_dev *dev, uint16_t reg_addr, uint8_t mask, uint8_t *data)
SPI read device register using a mask.
Definition: ad463x.c:147
uint8_t lane_mode
Definition: ad463x.h:216
int32_t ad463x_set_pgia_gain(struct ad463x_dev *dev, enum ad463x_pgia_gain gain_idx)
Set the PGIA gain.
Definition: ad463x.c:916
int32_t no_os_gpio_remove(struct no_os_gpio_desc *desc)
Free the resources allocated by no_os_gpio_get().
Definition: no_os_gpio.c:104
Structure holding SPI descriptor.
Definition: no_os_spi.h:192
#define AD463X_REG_SCRATCH_PAD
Definition: ad463x.h:58
int32_t ad463x_enter_config_mode(struct ad463x_dev *dev)
Enter register configuration mode.
Definition: ad463x.c:125
ad463x_pgia_gain
Available pgia gains.
Definition: ad463x.h:178
uint8_t capture_data_width
Definition: ad463x.h:260
int32_t ad463x_remove(struct ad463x_dev *dev)
Free the memory allocated by ad463x_init().
Definition: ad463x.c:946
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
#define AD463X_16_DIFF_8_COM
Definition: ad463x.h:98
int32_t ad463x_init(struct ad463x_dev **device, struct ad463x_init_param *init_param)
Initialize the device.
Definition: ad463x.c:687
#define AD463X_REG_READ
Definition: ad463x.h:131
int32_t vref
Definition: ad463x.h:268
int32_t ad463x_set_drive_strength(struct ad463x_dev *dev, uint8_t mode)
Set drive strength.
Definition: ad463x.c:247
uint8_t clock_mode
Definition: ad463x.h:264
uint32_t * commands
Definition: spi_engine.h:163
#define AD463X_AVG_FILTER_RESET
Definition: ad463x.h:127
Structure representing an PWM generator device.
Definition: no_os_pwm.h:93
#define AD463X_REG_CHAN_GAIN(ch, pos)
Definition: ad463x.h:133
int32_t ad463x_read_data(struct ad463x_dev *dev, uint32_t *buf, uint16_t samples)
Read from device. Enter register mode to read/write registers.
Definition: ad463x.c:628
int32_t no_os_pwm_init(struct no_os_pwm_desc **desc, const struct no_os_pwm_init_param *param)
Initialize the PWM peripheral.
Definition: no_os_pwm.c:51
@ ID_AD4630_24
Definition: ad463x.h:151
void(* dcache_invalidate_range)(uint32_t address, uint32_t bytes_count)
Definition: ad7616.h:230
@ AD463X_GAIN_0_33
Definition: ad463x.h:180
uint32_t axi_clkgen_rate
Definition: ad7616.h:211
int32_t ad463x_remove(struct ad463x_dev *dev)
Free the memory allocated by ad463x_init().
Definition: ad463x.c:946
int32_t ad463x_spi_reg_write(struct ad463x_dev *dev, uint16_t reg_addr, uint8_t reg_data)
Write device register.
Definition: ad463x.c:107
Header file of PWM Interface.
uint32_t no_os_field_get(uint32_t mask, uint32_t word)
@ AD463X_GAIN_2_22
Definition: ad463x.h:184
#define NO_OS_BIT(x)
Definition: no_os_util.h:45
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
struct axi_clkgen * clkgen
Definition: ad463x.h:250
uint8_t output_mode
Definition: ad463x.h:274
#define AD463X_REG_CHAN_OFFSET(ch, pos)
Definition: ad463x.h:132
#define AD463X_DDR_MODE_MSK
Definition: ad463x.h:93
#define AD463X_OUT_DATA_MODE_MSK
Definition: ad463x.h:96
#define AD463X_LOW_POWER_MODE
Definition: ad463x.h:125
uint32_t no_os_get_unaligned_be32(uint8_t *buf)
int32_t no_os_gpio_set_value(struct no_os_gpio_desc *desc, uint8_t value)
Set the value of the specified GPIO.
Definition: no_os_gpio.c:197
#define no_os_shift_right(x, s)
Definition: no_os_util.h:119
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
struct axi_clkgen_init * clkgen_init
Definition: ad7616.h:209
int32_t ad463x_set_pgia_gain(struct ad463x_dev *dev, enum ad463x_pgia_gain gain_idx)
Set the PGIA gain.
Definition: ad463x.c:916
struct no_os_gpio_init_param * gpio_pgia_a0
Definition: ad463x.h:199
Device initialization parameters.
Definition: ad463x.h:237
#define AD463X_24_DIFF_8_COM
Definition: ad463x.h:99
#define AD463X_30_AVERAGED_DIFF
Definition: ad463x.h:100
void(* dcache_invalidate_range)(uint32_t address, uint32_t bytes_count)
Definition: ad463x.h:230
uint8_t read_bytes_no
Definition: ad463x.h:258
int32_t spi_engine_offload_transfer(struct no_os_spi_desc *desc, struct spi_engine_offload_message msg, uint32_t no_samples)
Initiate a SPI transfer in offload mode.
Definition: spi_engine.c:809
struct axi_clkgen_init * clkgen_init
Definition: ad463x.h:206
int32_t ad463x_init(struct ad463x_dev **device, struct ad463x_init_param *init_param)
Initialize the device.
Definition: ad463x.c:687
#define AD463X_GAIN_MAX_VAL_SCALED
Definition: ad463x.h:143
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:116
Structure containing the init parameters needed by the offload module.
Definition: spi_engine.h:143
Header file of GPIO Interface.
@ ID_AD4030
Definition: ad463x.h:169
bool offload_enable
Definition: ad463x.h:282
#define AD463X_REG_IO
Definition: ad463x.h:79
enum ad463x_id device_id
Definition: ad463x.h:254
#define AD463X_GAIN_MSB
Definition: ad463x.h:113
uint32_t max_speed_hz
Definition: no_os_spi.h:198
#define NANO
Definition: no_os_units.h:50
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:52
#define AD463X_NORMAL_OUTPUT_STRENGTH
Definition: ad463x.h:136
int32_t axi_clkgen_remove(struct axi_clkgen *clkgen)
axi_clkgen_remove
Definition: clk_axi_clkgen.c:541
Header file of utility functions.
struct spi_engine_offload_init_param * offload_init_param
Definition: ad463x.h:248
int32_t ad463x_set_ch_offset(struct ad463x_dev *dev, uint8_t ch_idx, uint32_t offset)
Set channel offset.
Definition: ad463x.c:320
#define AD463X_DRIVER_STRENGTH_MASK
Definition: ad463x.h:135
@ ID_AD4630_20
Definition: ad463x.h:153
uint32_t rx_addr
Definition: spi_engine.h:171
int32_t no_os_gpio_direction_output(struct no_os_gpio_desc *desc, uint8_t value)
Enable the output direction of the specified GPIO.
Definition: no_os_gpio.c:147
#define AD463X_LANE_MODE_MSK
Definition: ad463x.h:91
struct no_os_gpio_desc * gpio_pgia_a1
Definition: ad463x.h:244
#define READ(no_bytes)
Definition: spi_engine.h:62
struct no_os_gpio_init_param * gpio_resetn
Definition: ad463x.h:197
bool has_pgia
Definition: ad463x.h:278
#define AD463X_SPI_COMPATIBLE_MODE
Definition: ad463x.h:120
int32_t ad463x_set_pwr_mode(struct ad463x_dev *dev, uint8_t mode)
Set power mode.
Definition: ad463x.c:196
int32_t ad463x_exit_reg_cfg_mode(struct ad463x_dev *dev)
Exit register configuration mode.
Definition: ad463x.c:262
#define AD463X_OFFSET_2
Definition: ad463x.h:110
@ ID_AD4632_20
Definition: ad463x.h:165
struct no_os_gpio_init_param * gpio_cnv
Definition: ad463x.h:198
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140
struct no_os_gpio_desc * gpio_cnv
Definition: ad463x.h:242
int32_t ad463x_spi_reg_read(struct ad463x_dev *dev, uint16_t reg_addr, uint8_t *reg_data)
Read device register.
Definition: ad463x.c:83
int32_t no_os_gpio_get_optional(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Get the value of an optional GPIO.
Definition: no_os_gpio.c:75