no-OS
ad5686.h
Go to the documentation of this file.
1 /***************************************************************************/
45 /*****************************************************************************/
46 /***************************** Include Files *********************************/
47 /*****************************************************************************/
48 #include <stdint.h>
49 #include "no_os_gpio.h"
50 #include "no_os_spi.h"
51 #include "no_os_i2c.h"
52 
53 /* Control Bits */
54 #define AD5686_CTRL_NOP 0
55 #define AD5686_CTRL_WRITE 1
56 #define AD5686_CTRL_UPDATE 2
57 #define AD5686_CTRL_WRITEUPDATE 3
58 #define AD5686_CTRL_PWR 4
59 #define AD5686_CTRL_LDAC_MASK 5
60 #define AD5686_CTRL_SWRESET 6
61 #define AD5686_CTRL_IREF_REG 7
62 #define AD5686_CTRL_DCEN 8
63 #define AD5686_CTRL_RB_REG 9
64 
65 #define AD5683_CMD_WR_CTRL_REG 4
66 #define AD5683_CTRL_RB_REG 5
67 
68 /* Power-down operation modes masks */
69 #define AD5686_PWRM_NORMAL 0
70 #define AD5686_PWRM_1K 1
71 #define AD5686_PWRM_100K 2
72 #define AD5686_PWRM_THREESTATE 3
73 
74 #define AD5686_PWRM_MASK 3
75 
76 /* Enable/disable defines */
77 #define AD5686_INTREF_EN 1
78 #define AD5686_INTREF_DIS 0
79 #define AD5686_DC_EN 1
80 #define AD5686_DC_DIS 0
81 #define AD5686_RB_EN 1
82 #define AD5686_RB_DIS 0
83 
84 #define MAX_RESOLUTION 16 // Maximum resolution of the supported devices
85 
86 #define PKT_LENGTH 3 // SPI packet length in byte
87 
88 #define ADDR_MASK 0xFF // Mask for Address bits
89 #define CMD_OFFSET 4 // Offset for Command
90 
91 #define AD5686_CMD_MASK 0xFF
92 #define AD5686_MSB_MASK 0xFF00 // Most significant byte of the data word
93 #define AD5686_MSB_OFFSET 8
94 #define AD5686_LSB_MASK 0x00FF // Least significant byte of the data word
95 #define AD5686_LSB_OFFSET 0
96 
97 #define AD5683_MIDB_OFFSET 4 // Offset for middle bits
98 #define AD5683_MIDB_MASK 0xFF
99 #define AD5683_MSB_OFFSET 12
100 #define AD5683_MSB_MASK 0xF
101 #define AD5683_CMD_MASK 0xF
102 #define AD5683_LSB_MASK 0xF
103 #define AD5683_LSB_OFFSET 4
104 
105 #define AD5683_REG_MAP 0
106 #define AD5686_REG_MAP 1
107 
108 /********************** AD5683 Write Control Register Bits ********************/
109 
110 #define AD5683_CTRL_DCEN(x) (((((x) & 0x1) << 0) << 10) & 0xFC00)
111 #define AD5683_CTRL_GM(x) (((((x) & 0x1) << 1) << 10) & 0xFC00)
112 #define AD5683_CTRL_INT_REF(x) (((((x) & 0x1) << 2) << 10) & 0xFC00)
113 #define AD5683_CTRL_PWRM(x) (((((x) & 0x3) << 3) << 10) & 0xFC00)
114 #define AD5683_SW_RESET ((((0x1) << 5) << 10) & 0xFC00)
115 
116 /******************************************************************************/
117 /*************************** Types Declarations *******************************/
118 /******************************************************************************/
119 
120 /* Supported devices */
155 };
156 
157 enum comm_type {
160 };
161 
179 };
180 
182  uint8_t resolution;
183  uint8_t register_map;
185  const uint32_t *channel_addr;
186 };
187 
188 struct ad5686_dev {
189  /* I2C */
191  /* SPI */
193  /* GPIO */
197  /* Device Settings */
199  uint32_t power_down_mask;
200  uint32_t ldac_mask;
201 };
202 
204  /* I2C */
206  /* SPI */
208  /* GPIO */
212  /* Device Settings */
214 };
215 
216 /******************************************************************************/
217 /************************ Functions Declarations ******************************/
218 /******************************************************************************/
219 /* Initialize SPI and Initial Values for AD5686 Board. */
220 int32_t ad5686_init(struct ad5686_dev **device,
222 
223 /* Free the resources allocated by ad5686_init(). */
224 int32_t ad5686_remove(struct ad5686_dev *dev);
225 
226 /* Write to input register */
227 uint16_t ad5686_set_shift_reg(struct ad5686_dev *dev,
228  uint8_t command,
229  uint8_t address,
230  uint16_t data);
231 
232 /* Write to Input Register n (dependent on LDAC) */
233 void ad5686_write_register(struct ad5686_dev *dev,
234  enum ad5686_dac_channels channel,
235  uint16_t data);
236 
237 /* Update DAC Register n with contents of Input Register n */
238 void ad5686_update_register(struct ad5686_dev *dev,
239  enum ad5686_dac_channels channel);
240 
241 /* Write to and update DAC channel n */
243  enum ad5686_dac_channels channel,
244  uint16_t data);
245 
246 /* Read back Input Register n */
247 uint16_t ad5686_read_back_register(struct ad5686_dev *dev,
248  enum ad5686_dac_channels channel);
249 
250 /* Power down / power up DAC */
251 void ad5686_power_mode(struct ad5686_dev *dev,
252  enum ad5686_dac_channels channel,
253  uint8_t mode);
254 
255 /* Set up LDAC mask register */
256 void ad5686_ldac_mask(struct ad5686_dev *dev,
257  enum ad5686_dac_channels channel,
258  uint8_t enable);
259 
260 /* Software reset (power-on reset) */
261 void ad5686_software_reset(struct ad5686_dev *dev);
262 
263 /* Write to Internal reference setup register */
264 void ad5686_internal_reference(struct ad5686_dev *dev,
265  uint8_t value);
266 
267 /* Set up DCEN register (daisy-chain enable) */
268 void ad5686_daisy_chain_en(struct ad5686_dev *dev,
269  uint8_t value);
270 
271 /* Set up readback register (readback enable) */
272 void ad5686_read_back_en(struct ad5686_dev *dev,
273  uint8_t value);
274 
275 /* Set Gain mode */
276 int32_t ad5686_gain_mode(struct ad5686_dev *dev, uint8_t value);
ID_AD5684R
@ ID_AD5684R
Definition: ad5686.h:134
no_os_gpio_init_param
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:85
ad5686_dev::gpio_ldac
struct no_os_gpio_desc * gpio_ldac
Definition: ad5686.h:195
AD5686_CTRL_RB_REG
#define AD5686_CTRL_RB_REG
Definition: ad5686.h:63
I2C
@ I2C
Definition: ad5686.h:159
no_os_i2c_write
int32_t no_os_i2c_write(struct no_os_i2c_desc *desc, uint8_t *data, uint8_t bytes_number, uint8_t stop_bit)
I2C Write data to slave device.
Definition: no_os_i2c.c:85
no_os_i2c_init
int32_t no_os_i2c_init(struct no_os_i2c_desc **desc, const struct no_os_i2c_init_param *param)
Initialize the I2C communication peripheral.
Definition: no_os_i2c.c:51
AD5686_CH_7
@ AD5686_CH_7
Definition: ad5686.h:170
ad5686_chip_info::register_map
uint8_t register_map
Definition: ad5686.h:183
AD5686_CH_2
@ AD5686_CH_2
Definition: ad5686.h:165
ad5686_dev::i2c_desc
no_os_i2c_desc * i2c_desc
Definition: ad5686.h:190
ID_AD5676
@ ID_AD5676
Definition: ad5686.h:128
ad5686_read_back_en
void ad5686_read_back_en(struct ad5686_dev *dev, uint8_t value)
Set up readback register (readback enable)
Definition: ad5686.c:740
AD5686_CTRL_NOP
#define AD5686_CTRL_NOP
Definition: ad5686.h:54
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:82
ID_AD5689R
@ ID_AD5689R
Definition: ad5686.h:140
ID_AD5675R
@ ID_AD5675R
Definition: ad5686.h:127
AD5686_CTRL_DCEN
#define AD5686_CTRL_DCEN
Definition: ad5686.h:62
ad5686_gain_mode
int32_t ad5686_gain_mode(struct ad5686_dev *dev, uint8_t value)
Set Gain mode.
Definition: ad5686.c:758
no_os_spi.h
Header file of SPI Interface.
ad5686_dev::ldac_mask
uint32_t ldac_mask
Definition: ad5686.h:200
ad5686_init_param::i2c_init
no_os_i2c_init_param i2c_init
Definition: ad5686.h:205
AD5686_CH_13
@ AD5686_CH_13
Definition: ad5686.h:176
AD5686_CH_9
@ AD5686_CH_9
Definition: ad5686.h:172
AD5683_MIDB_MASK
#define AD5683_MIDB_MASK
Definition: ad5686.h:98
ad5686_write_update_register
void ad5686_write_update_register(struct ad5686_dev *dev, enum ad5686_dac_channels channel, uint16_t data)
Write to and update DAC channel n.
Definition: ad5686.c:518
no_os_i2c_remove
int32_t no_os_i2c_remove(struct no_os_i2c_desc *desc)
Free the resources allocated by no_os_i2c_init().
Definition: no_os_i2c.c:70
AD5686_CTRL_WRITE
#define AD5686_CTRL_WRITE
Definition: ad5686.h:55
AD5686_CH_6
@ AD5686_CH_6
Definition: ad5686.h:169
ID_AD5692R
@ ID_AD5692R
Definition: ad5686.h:152
ad5686_dev::gpio_reset
struct no_os_gpio_desc * gpio_reset
Definition: ad5686.h:194
SPI
@ SPI
Definition: ad5686.h:158
CMD_OFFSET
#define CMD_OFFSET
Definition: ad5446.c:58
AD5683_SW_RESET
#define AD5683_SW_RESET
Definition: ad5686.h:114
AD5686_CH_8
@ AD5686_CH_8
Definition: ad5686.h:171
AD5683_MIDB_OFFSET
#define AD5683_MIDB_OFFSET
Definition: ad5686.h:97
AD5683_CTRL_DCEN
#define AD5683_CTRL_DCEN(x)
Definition: ad5686.h:110
ID_AD5681R
@ ID_AD5681R
Definition: ad5686.h:147
PKT_LENGTH
#define PKT_LENGTH
Definition: ad5446.c:59
ad5686_set_shift_reg
uint16_t ad5686_set_shift_reg(struct ad5686_dev *dev, uint8_t command, uint8_t address, uint16_t data)
Write to input shift register.
Definition: ad5686.c:391
device
Definition: ad9361_util.h:75
AD5683_CTRL_GM
#define AD5683_CTRL_GM(x)
Definition: ad5686.h:111
AD5686_CH_4
@ AD5686_CH_4
Definition: ad5686.h:167
NO_OS_GPIO_HIGH
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:123
ad5686.h
Header file of AD5686 Driver. This driver supporting the following devices: AD5684R,...
ad5686_ldac_mask
void ad5686_ldac_mask(struct ad5686_dev *dev, enum ad5686_dac_channels channel, uint8_t enable)
Set hardware LDAC mask register.
Definition: ad5686.c:664
ad5686_dev
Definition: ad5686.h:188
AD5683_CTRL_RB_REG
#define AD5683_CTRL_RB_REG
Definition: ad5686.h:66
AD5686_CH_0
@ AD5686_CH_0
Definition: ad5686.h:163
AD5686_CH_12
@ AD5686_CH_12
Definition: ad5686.h:175
AD5686_CH_3
@ AD5686_CH_3
Definition: ad5686.h:166
ad5686_daisy_chain_en
void ad5686_daisy_chain_en(struct ad5686_dev *dev, uint8_t value)
Set up DCEN register (daisy-chain enable)
Definition: ad5686.c:721
ad5686_init_param
Definition: ad5686.h:203
AD5683_CMD_WR_CTRL_REG
#define AD5683_CMD_WR_CTRL_REG
Definition: ad5686.h:65
ad5686_ldac_mask
void ad5686_ldac_mask(struct ad5686_dev *dev, enum ad5686_dac_channels channel, uint8_t enable)
Set hardware LDAC mask register.
Definition: ad5686.c:664
ID_AD5674R
@ ID_AD5674R
Definition: ad5686.h:126
ad5686_software_reset
void ad5686_software_reset(struct ad5686_dev *dev)
Software reset (power-on reset)
Definition: ad5686.c:682
ID_AD5693
@ ID_AD5693
Definition: ad5686.h:154
ad5686_read_back_register
uint16_t ad5686_read_back_register(struct ad5686_dev *dev, enum ad5686_dac_channels channel)
Read back Input Register n.
Definition: ad5686.c:556
ad5686_dev::act_device
enum ad5686_type act_device
Definition: ad5686.h:198
NO_OS_GPIO_LOW
@ NO_OS_GPIO_LOW
Definition: no_os_gpio.h:121
ad5686_dev::power_down_mask
uint32_t power_down_mask
Definition: ad5686.h:199
ID_AD5673R
@ ID_AD5673R
Definition: ad5686.h:124
AD5686_CTRL_UPDATE
#define AD5686_CTRL_UPDATE
Definition: ad5686.h:56
ad5686_gain_mode
int32_t ad5686_gain_mode(struct ad5686_dev *dev, uint8_t value)
Set Gain mode.
Definition: ad5686.c:758
ID_AD5685R
@ ID_AD5685R
Definition: ad5686.h:135
ID_AD5686
@ ID_AD5686
Definition: ad5686.h:133
ad5686_write_register
void ad5686_write_register(struct ad5686_dev *dev, enum ad5686_dac_channels channel, uint16_t data)
Write to Input Register n (dependent on LDAC)
Definition: ad5686.c:450
AD5686_CTRL_IREF_REG
#define AD5686_CTRL_IREF_REG
Definition: ad5686.h:61
I2C
@ I2C
Definition: adxl372.h:323
ad5686_type
ad5686_type
Definition: ad5686.h:121
ID_AD5691R
@ ID_AD5691R
Definition: ad5686.h:151
ad5686_init_param::act_device
enum ad5686_type act_device
Definition: ad5686.h:213
AD5686_MSB_OFFSET
#define AD5686_MSB_OFFSET
Definition: ad5686.h:93
ID_AD5687R
@ ID_AD5687R
Definition: ad5686.h:138
AD5683_MSB_OFFSET
#define AD5683_MSB_OFFSET
Definition: ad5686.h:99
ID_AD5697R
@ ID_AD5697R
Definition: ad5686.h:141
AD5683_LSB_OFFSET
#define AD5683_LSB_OFFSET
Definition: ad5686.h:103
AD5686_MSB_MASK
#define AD5686_MSB_MASK
Definition: ad5686.h:92
ID_AD5672R
@ ID_AD5672R
Definition: ad5686.h:123
ad5686_internal_reference
void ad5686_internal_reference(struct ad5686_dev *dev, uint8_t value)
Write to Internal reference setup register.
Definition: ad5686.c:701
ad5686_dev::spi_desc
no_os_spi_desc * spi_desc
Definition: ad5686.h:192
ad5686_chip_info::resolution
uint8_t resolution
Definition: ad5686.h:182
ad5686_read_back_register
uint16_t ad5686_read_back_register(struct ad5686_dev *dev, enum ad5686_dac_channels channel)
Read back Input Register n.
Definition: ad5686.c:556
AD5686_CH_11
@ AD5686_CH_11
Definition: ad5686.h:174
ad5686_set_shift_reg
uint16_t ad5686_set_shift_reg(struct ad5686_dev *dev, uint8_t command, uint8_t address, uint16_t data)
Write to input shift register.
Definition: ad5686.c:391
ad5686_chip_info
Definition: ad5686.h:181
ad5686_update_register
void ad5686_update_register(struct ad5686_dev *dev, enum ad5686_dac_channels channel)
Update DAC Register n with contents of Input Register n.
Definition: ad5686.c:485
AD5686_CH_14
@ AD5686_CH_14
Definition: ad5686.h:177
ad5686_init_param::spi_init
no_os_spi_init_param spi_init
Definition: ad5686.h:207
ad5686_read_back_en
void ad5686_read_back_en(struct ad5686_dev *dev, uint8_t value)
Set up readback register (readback enable)
Definition: ad5686.c:740
AD5686_CTRL_PWR
#define AD5686_CTRL_PWR
Definition: ad5686.h:58
ad5686_write_register
void ad5686_write_register(struct ad5686_dev *dev, enum ad5686_dac_channels channel, uint16_t data)
Write to Input Register n (dependent on LDAC)
Definition: ad5686.c:450
ID_AD5694R
@ ID_AD5694R
Definition: ad5686.h:143
ad5686_chip_info::channel_addr
const uint32_t * channel_addr
Definition: ad5686.h:185
AD5686_CTRL_SWRESET
#define AD5686_CTRL_SWRESET
Definition: ad5686.h:60
ad5686_init_param::gpio_ldac
struct no_os_gpio_init_param gpio_ldac
Definition: ad5686.h:210
ad5686_power_mode
void ad5686_power_mode(struct ad5686_dev *dev, enum ad5686_dac_channels channel, uint8_t mode)
Set Power-down mode for DAC channel n.
Definition: ad5686.c:618
ID_AD5682R
@ ID_AD5682R
Definition: ad5686.h:148
ID_AD5696
@ ID_AD5696
Definition: ad5686.h:145
AD5683_CTRL_INT_REF
#define AD5683_CTRL_INT_REF(x)
Definition: ad5686.h:112
ad5686_software_reset
void ad5686_software_reset(struct ad5686_dev *dev)
Software reset (power-on reset)
Definition: ad5686.c:682
no_os_gpio_remove
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:95
AD5686_CH_5
@ AD5686_CH_5
Definition: ad5686.h:168
no_os_spi_desc
Structure holding SPI descriptor.
Definition: no_os_spi.h:132
ID_AD5677R
@ ID_AD5677R
Definition: ad5686.h:130
ID_AD5676R
@ ID_AD5676R
Definition: ad5686.h:129
ad5686_power_mode
void ad5686_power_mode(struct ad5686_dev *dev, enum ad5686_dac_channels channel, uint8_t mode)
Set Power-down mode for DAC channel n.
Definition: ad5686.c:618
ID_AD5683R
@ ID_AD5683R
Definition: ad5686.h:149
ID_AD5679
@ ID_AD5679
Definition: ad5686.h:131
ad5686_init
int32_t ad5686_init(struct ad5686_dev **device, struct ad5686_init_param init_param)
Initializes the communication peripheral and the initial Values for AD5686 Board.
Definition: ad5686.c:313
no_os_gpio_desc
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:102
ad5686_update_register
void ad5686_update_register(struct ad5686_dev *dev, enum ad5686_dac_channels channel)
Update DAC Register n with contents of Input Register n.
Definition: ad5686.c:485
ID_AD5674
@ ID_AD5674
Definition: ad5686.h:125
ID_AD5687
@ ID_AD5687
Definition: ad5686.h:137
AD5686_CTRL_LDAC_MASK
#define AD5686_CTRL_LDAC_MASK
Definition: ad5686.h:59
ID_AD5696R
@ ID_AD5696R
Definition: ad5686.h:146
no_os_i2c_desc
Structure holding I2C descriptor.
Definition: no_os_i2c.h:81
no_os_gpio_get
int32_t no_os_gpio_get(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Obtain the GPIO decriptor.
Definition: no_os_gpio.c:55
no_os_i2c_read
int32_t no_os_i2c_read(struct no_os_i2c_desc *desc, uint8_t *data, uint8_t bytes_number, uint8_t stop_bit)
I2C Read data from slave device.
Definition: no_os_i2c.c:104
AD5686_CH_1
@ AD5686_CH_1
Definition: ad5686.h:164
no_os_i2c.h
Header file of I2C Interface.
ID_AD5689
@ ID_AD5689
Definition: ad5686.h:139
AD5683_LSB_MASK
#define AD5683_LSB_MASK
Definition: ad5686.h:102
ad5686_daisy_chain_en
void ad5686_daisy_chain_en(struct ad5686_dev *dev, uint8_t value)
Set up DCEN register (daisy-chain enable)
Definition: ad5686.c:721
AD5686_CH_15
@ AD5686_CH_15
Definition: ad5686.h:178
ad5686_init
int32_t ad5686_init(struct ad5686_dev **device, struct ad5686_init_param init_param)
Initializes the communication peripheral and the initial Values for AD5686 Board.
Definition: ad5686.c:313
ID_AD5679R
@ ID_AD5679R
Definition: ad5686.h:132
ID_AD5686R
@ ID_AD5686R
Definition: ad5686.h:136
ID_AD5695R
@ ID_AD5695R
Definition: ad5686.h:144
ad5686_dac_channels
ad5686_dac_channels
Definition: ad5686.h:162
no_os_i2c_init_param
Structure holding the parameters for I2C initialization.
Definition: no_os_i2c.h:64
init_param
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:96
AD5686_CMD_MASK
#define AD5686_CMD_MASK
Definition: ad5686.h:91
AD5683_MSB_MASK
#define AD5683_MSB_MASK
Definition: ad5686.h:100
MAX_RESOLUTION
#define MAX_RESOLUTION
Definition: ad5446.c:50
ad5686_chip_info::communication
enum comm_type communication
Definition: ad5686.h:184
AD5683_REG_MAP
#define AD5683_REG_MAP
Definition: ad5686.h:105
AD5686_CH_10
@ AD5686_CH_10
Definition: ad5686.h:173
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:70
no_os_gpio.h
Header file of GPIO Interface.
ad5686_internal_reference
void ad5686_internal_reference(struct ad5686_dev *dev, uint8_t value)
Write to Internal reference setup register.
Definition: ad5686.c:701
AD5683_CTRL_PWRM
#define AD5683_CTRL_PWRM(x)
Definition: ad5686.h:113
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:51
ID_AD5683
@ ID_AD5683
Definition: ad5686.h:150
AD5686_REG_MAP
#define AD5686_REG_MAP
Definition: ad5686.h:106
comm_type
comm_type
Definition: ad5686.h:157
SPI
@ SPI
Definition: adxl372.h:322
AD5683_CMD_MASK
#define AD5683_CMD_MASK
Definition: ad5686.h:101
AD5686_CTRL_WRITEUPDATE
#define AD5686_CTRL_WRITEUPDATE
Definition: ad5686.h:57
ad5686_write_update_register
void ad5686_write_update_register(struct ad5686_dev *dev, enum ad5686_dac_channels channel, uint16_t data)
Write to and update DAC channel n.
Definition: ad5686.c:518
no_os_gpio_direction_output
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:124
ADDR_MASK
#define ADDR_MASK
Definition: ad5686.h:88
ad5686_init_param::gpio_gain
struct no_os_gpio_init_param gpio_gain
Definition: ad5686.h:211
ID_AD5693R
@ ID_AD5693R
Definition: ad5686.h:153
ad5686_remove
int32_t ad5686_remove(struct ad5686_dev *dev)
Free the resources allocated by ad5686_init().
Definition: ad5686.c:358
ad5686_dev::gpio_gain
struct no_os_gpio_desc * gpio_gain
Definition: ad5686.h:196
ad5686_init_param::gpio_reset
struct no_os_gpio_init_param gpio_reset
Definition: ad5686.h:209
AD5686_LSB_MASK
#define AD5686_LSB_MASK
Definition: ad5686.h:94
ID_AD5694
@ ID_AD5694
Definition: ad5686.h:142
ID_AD5671R
@ ID_AD5671R
Definition: ad5686.h:122
ad5686_remove
int32_t ad5686_remove(struct ad5686_dev *dev)
Free the resources allocated by ad5686_init().
Definition: ad5686.c:358
no_os_spi_init_param
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:112