Go to the documentation of this file.
35 #include "drv_digital_out.h"
36 #include "drv_digital_in.h"
37 #include "drv_spi_master.h"
60 #define ISOADC6_REG_COMM_STATUS 0x00
61 #define ISOADC6_REG_CONTROL 0x01
62 #define ISOADC6_REG_DATA 0x02
63 #define ISOADC6_REG_IO_CONTROL_1 0x03
64 #define ISOADC6_REG_IO_CONTROL_2 0x04
65 #define ISOADC6_REG_ID 0x05
66 #define ISOADC6_REG_ERR_STATUS 0x06
67 #define ISOADC6_REG_ERR_EN 0x07
68 #define ISOADC6_REG_MCLK_CNT 0x08
69 #define ISOADC6_REG_CHANNEL_0 0x09
70 #define ISOADC6_REG_CHANNEL_1 0x0A
71 #define ISOADC6_REG_CHANNEL_2 0x0B
72 #define ISOADC6_REG_CHANNEL_3 0x0C
73 #define ISOADC6_REG_CHANNEL_4 0x0D
74 #define ISOADC6_REG_CHANNEL_5 0x0E
75 #define ISOADC6_REG_CHANNEL_6 0x0F
76 #define ISOADC6_REG_CHANNEL_7 0x10
77 #define ISOADC6_REG_CHANNEL_8 0x11
78 #define ISOADC6_REG_CHANNEL_9 0x12
79 #define ISOADC6_REG_CHANNEL_10 0x13
80 #define ISOADC6_REG_CHANNEL_11 0x14
81 #define ISOADC6_REG_CHANNEL_12 0x15
82 #define ISOADC6_REG_CHANNEL_13 0x16
83 #define ISOADC6_REG_CHANNEL_14 0x17
84 #define ISOADC6_REG_CHANNEL_15 0x18
85 #define ISOADC6_REG_CONFIG_0 0x19
86 #define ISOADC6_REG_CONFIG_1 0x1A
87 #define ISOADC6_REG_CONFIG_2 0x1B
88 #define ISOADC6_REG_CONFIG_3 0x1C
89 #define ISOADC6_REG_CONFIG_4 0x1D
90 #define ISOADC6_REG_CONFIG_5 0x1E
91 #define ISOADC6_REG_CONFIG_6 0x1F
92 #define ISOADC6_REG_CONFIG_7 0x20
93 #define ISOADC6_REG_FILTER_0 0x21
94 #define ISOADC6_REG_FILTER_1 0x22
95 #define ISOADC6_REG_FILTER_2 0x23
96 #define ISOADC6_REG_FILTER_3 0x24
97 #define ISOADC6_REG_FILTER_4 0x25
98 #define ISOADC6_REG_FILTER_5 0x26
99 #define ISOADC6_REG_FILTER_6 0x27
100 #define ISOADC6_REG_FILTER_7 0x28
101 #define ISOADC6_REG_OFFSET_0 0x29
102 #define ISOADC6_REG_OFFSET_1 0x2A
103 #define ISOADC6_REG_OFFSET_2 0x2B
104 #define ISOADC6_REG_OFFSET_3 0x2C
105 #define ISOADC6_REG_OFFSET_4 0x2D
106 #define ISOADC6_REG_OFFSET_5 0x2E
107 #define ISOADC6_REG_OFFSET_6 0x2F
108 #define ISOADC6_REG_OFFSET_7 0x30
109 #define ISOADC6_REG_GAIN_0 0x31
110 #define ISOADC6_REG_GAIN_1 0x32
111 #define ISOADC6_REG_GAIN_2 0x33
112 #define ISOADC6_REG_GAIN_3 0x34
113 #define ISOADC6_REG_GAIN_4 0x35
114 #define ISOADC6_REG_GAIN_5 0x36
115 #define ISOADC6_REG_GAIN_6 0x37
116 #define ISOADC6_REG_GAIN_7 0x38
129 #define ISOADC6_CMD_SPI_WRITE 0x00
130 #define ISOADC6_CMD_SPI_READ 0x40
131 #define ISOADC6_CMD_SPI_WRITE_DIS 0x80
149 #define ISOADC6_SEL_CH_0 0
150 #define ISOADC6_SEL_CH_1 1
151 #define ISOADC6_SEL_CH_2 2
152 #define ISOADC6_SEL_CH_3 3
153 #define ISOADC6_SEL_CH_4 4
154 #define ISOADC6_SEL_CH_5 5
155 #define ISOADC6_SEL_CH_6 6
156 #define ISOADC6_SEL_CH_7 7
157 #define ISOADC6_SEL_CH_8 8
158 #define ISOADC6_SEL_CH_9 9
159 #define ISOADC6_SEL_CH_10 10
160 #define ISOADC6_SEL_CH_11 11
161 #define ISOADC6_SEL_CH_12 12
162 #define ISOADC6_SEL_CH_13 13
163 #define ISOADC6_SEL_CH_14 14
164 #define ISOADC6_SEL_CH_15 15
170 #define ISOADC6_NEW_DATA_BIT_MASK 0x80
171 #define ISOADC6_NEW_DATA_IS_READY 0x00
172 #define ISOADC6_NEW_DATA_NOT_READY 0x01
178 #define ISOADC6_SIL_REV_BIT_MASK 0x0F
179 #define ISOADC6_DEV_ID_REV_BIT_MASK 0xF0
180 #define ISOADC6_DEVICE_ID 0x01
181 #define ISOADC6_SILICON_REVISION 0x04
187 #define ISOADC6_LEN_REG_ERROR 0
188 #define ISOADC6_LEN_REG_BYTE 1
189 #define ISOADC6_LEN_REG_WORD 2
190 #define ISOADC6_LEN_REG_DWORD 3
196 #define ISOADC6_CTRL_RDY_LOW_PWR_MODE_RDY_EN 0x00000000ul
197 #define ISOADC6_CTRL_RDY_DELAY_100NS 0x00001000ul
198 #define ISOADC6_CTRL_CONT_CONV_MODE 0x00000800ul
199 #define ISOADC6_CTRL_DATA_STATUS_EN 0x00000400ul
200 #define ISOADC6_CTRL_DOUT_PIN_EN 0x00000200ul
201 #define ISOADC6_CTRL_INT_REF_VVTG_EN 0x00000100ul
202 #define ISOADC6_CTRL_MID_POWER_MODE 0x00000040ul
203 #define ISOADC6_CTRL_FULL_POWER_MODE 0x00000080ul
204 #define ISOADC6_CTRL_SINGLE_CONV_MODE 0x00000004ul
205 #define ISOADC6_CTRL_STANDBY_MODE 0x00000008ul
206 #define ISOADC6_CTRL_SINGLE_PWR_DOWN_MODE 0x0000000Cul
207 #define ISOADC6_CTRL_IDLE_MODE 0x00000010ul
208 #define ISOADC6_CTRL_MODE_MASK 0x0000003Cul
209 #define ISOADC6_CTRL_INT_ZERO_SCALE_OFFSET_CALIB 0x00000014ul
210 #define ISOADC6_CTRL_INT_FULL_SCALE_GAIN_CALIB 0x00000018ul
211 #define ISOADC6_CTRL_SYS_ZERO_SCALE_OFFSET_CALIB 0x0000001Cul
212 #define ISOADC6_CTRL_SYS_FULL_SCALE_GAIN_CALIB 0x00000020ul
218 #define ISOADC6_IO_CON1_DOUT_PINS_DIS 0x00000000ul
219 #define ISOADC6_IO_CON1_SET_DOUT_PIN_P4 0x00800000ul
220 #define ISOADC6_IO_CON1_SET_DOUT_PIN_P3 0x00400000ul
221 #define ISOADC6_IO_CON1_SET_DOUT_PIN_P2 0x00200000ul
222 #define ISOADC6_IO_CON1_SET_DOUT_PIN_P1 0x00100000ul
223 #define ISOADC6_IO_CON1_DOUT_PIN_P4_EN 0x00080000ul
224 #define ISOADC6_IO_CON1_DOUT_PIN_P3_EN 0x00040000ul
225 #define ISOADC6_IO_CON1_DOUT_PIN_P2_EN 0x00020000ul
226 #define ISOADC6_IO_CON1_DOUT_PIN_P1_EN 0x00010000ul
227 #define ISOADC6_IO_CON1_BRIGDE_PWR_DOWN_EN 0x00008000ul
228 #define ISOADC6_IO_CON1_IOUT1_MIKRO_A_50 0x00000800ul
229 #define ISOADC6_IO_CON1_IOUT1_MIKRO_A_100 0x00001000ul
230 #define ISOADC6_IO_CON1_IOUT1_MIKRO_A_250 0x00001800ul
231 #define ISOADC6_IO_CON1_IOUT1_MIKRO_A_500 0x00002000ul
232 #define ISOADC6_IO_CON1_IOUT1_MIKRO_A_750 0x00002800ul
233 #define ISOADC6_IO_CON1_IOUT1_MIKRO_A_1000 0x00003000ul
234 #define ISOADC6_IO_CON1_IOUT0_MIKRO_A_50 0x00000100ul
235 #define ISOADC6_IO_CON1_IOUT0_MIKRO_A_100 0x00000200ul
236 #define ISOADC6_IO_CON1_IOUT0_MIKRO_A_250 0x00000300ul
237 #define ISOADC6_IO_CON1_IOUT0_MIKRO_A_500 0x00000400ul
238 #define ISOADC6_IO_CON1_IOUT0_MIKRO_A_750 0x00000500ul
239 #define ISOADC6_IO_CON1_IOUT0_MIKRO_A_1000 0x00000600ul
240 #define ISOADC6_IO_CON1_IOUT1_AIN0_PIN_ON 0x00000000ul
241 #define ISOADC6_IO_CON1_IOUT1_AIN1_PIN_ON 0x00000010ul
242 #define ISOADC6_IO_CON1_IOUT1_AIN2_PIN_ON 0x00000020ul
243 #define ISOADC6_IO_CON1_IOUT1_AIN3_PIN_ON 0x00000030ul
244 #define ISOADC6_IO_CON1_IOUT1_AIN4_PIN_ON 0x00000040ul
245 #define ISOADC6_IO_CON1_IOUT1_AIN5_PIN_ON 0x00000050ul
246 #define ISOADC6_IO_CON1_IOUT1_AIN6_PIN_ON 0x00000060ul
247 #define ISOADC6_IO_CON1_IOUT1_AIN7_PIN_ON 0x00000070ul
248 #define ISOADC6_IO_CON1_IOUT1_AIN8_PIN_ON 0x00000080ul
249 #define ISOADC6_IO_CON1_IOUT1_AIN9_PIN_ON 0x00000090ul
250 #define ISOADC6_IO_CON1_IOUT1_AIN10_PIN_ON 0x000000A0ul
251 #define ISOADC6_IO_CON1_IOUT1_AIN11_PIN_ON 0x000000B0ul
252 #define ISOADC6_IO_CON1_IOUT1_AIN12_PIN_ON 0x000000C0ul
253 #define ISOADC6_IO_CON1_IOUT1_AIN13_PIN_ON 0x000000D0ul
254 #define ISOADC6_IO_CON1_IOUT1_AIN14_PIN_ON 0x000000E0ul
255 #define ISOADC6_IO_CON1_IOUT1_AIN15_PIN_ON 0x000000F0ul
256 #define ISOADC6_IO_CON1_IOUT0_AIN0_PIN_ON 0x00000000ul
257 #define ISOADC6_IO_CON1_IOUT0_AIN1_PIN_ON 0x00000001ul
258 #define ISOADC6_IO_CON1_IOUT0_AIN2_PIN_ON 0x00000002ul
259 #define ISOADC6_IO_CON1_IOUT0_AIN3_PIN_ON 0x00000003ul
260 #define ISOADC6_IO_CON1_IOUT0_AIN4_PIN_ON 0x00000004ul
261 #define ISOADC6_IO_CON1_IOUT0_AIN5_PIN_ON 0x00000005ul
262 #define ISOADC6_IO_CON1_IOUT0_AIN6_PIN_ON 0x00000006ul
263 #define ISOADC6_IO_CON1_IOUT0_AIN7_PIN_ON 0x00000007ul
264 #define ISOADC6_IO_CON1_IOUT0_AIN8_PIN_ON 0x00000008ul
265 #define ISOADC6_IO_CON1_IOUT0_AIN9_PIN_ON 0x00000009ul
266 #define ISOADC6_IO_CON1_IOUT0_AIN10_PIN_ON 0x0000000Aul
267 #define ISOADC6_IO_CON1_IOUT0_AIN11_PIN_ON 0x0000000Bul
268 #define ISOADC6_IO_CON1_IOUT0_AIN12_PIN_ON 0x0000000Cul
269 #define ISOADC6_IO_CON1_IOUT0_AIN13_PIN_ON 0x0000000Dul
270 #define ISOADC6_IO_CON1_IOUT0_AIN14_PIN_ON 0x0000000Eul
271 #define ISOADC6_IO_CON1_IOUT0_AIN15_PIN_ON 0x0000000Ful
277 #define ISOADC6_IO_CON2_VBIAS_DISABLE 0x0000u
278 #define ISOADC6_IO_CON2_VBIAS_AIN0_CH_EN_ON 0x0001u
279 #define ISOADC6_IO_CON2_VBIAS_AIN1_CH_EN_ON 0x0002u
280 #define ISOADC6_IO_CON2_VBIAS_AIN2_CH_EN_ON 0x0004u
281 #define ISOADC6_IO_CON2_VBIAS_AIN3_CH_EN_ON 0x0008u
282 #define ISOADC6_IO_CON2_VBIAS_AIN4_CH_EN_ON 0x0010u
283 #define ISOADC6_IO_CON2_VBIAS_AIN5_CH_EN_ON 0x0020u
284 #define ISOADC6_IO_CON2_VBIAS_AIN6_CH_EN_ON 0x0040u
285 #define ISOADC6_IO_CON2_VBIAS_AIN7_CH_EN_ON 0x0080u
286 #define ISOADC6_IO_CON2_VBIAS_AIN8_CH_EN_ON 0x0100u
287 #define ISOADC6_IO_CON2_VBIAS_AIN9_CH_EN_ON 0x0200u
288 #define ISOADC6_IO_CON2_VBIAS_AIN10_CH_EN_ON 0x0400u
289 #define ISOADC6_IO_CON2_VBIAS_AIN11_CH_EN_ON 0x0800u
290 #define ISOADC6_IO_CON2_VBIAS_AIN12_CH_EN_ON 0x1000u
291 #define ISOADC6_IO_CON2_VBIAS_AIN13_CH_EN_ON 0x2000u
292 #define ISOADC6_IO_CON2_VBIAS_AIN14_CH_EN_ON 0x4000u
293 #define ISOADC6_IO_CON2_VBIAS_AIN15_CH_EN_ON 0x8000u
299 #define ISOADC6_CHANNEL_DISABLE 0x0000u
300 #define ISOADC6_CHANNEL_ENABLE 0x8000u
301 #define ISOADC6_CHANNEL_POS_AN_IN_AIN0 0x0000u
302 #define ISOADC6_CHANNEL_POS_AN_IN_AIN1 0x0020u
303 #define ISOADC6_CHANNEL_POS_AN_IN_AIN2 0x0040u
304 #define ISOADC6_CHANNEL_POS_AN_IN_AIN3 0x0060u
305 #define ISOADC6_CHANNEL_POS_AN_IN_AIN4 0x0080u
306 #define ISOADC6_CHANNEL_POS_AN_IN_AIN5 0x00A0u
307 #define ISOADC6_CHANNEL_POS_AN_IN_AIN6 0x00C0u
308 #define ISOADC6_CHANNEL_POS_AN_IN_AIN7 0x00E0u
309 #define ISOADC6_CHANNEL_POS_AN_IN_AIN8 0x0100u
310 #define ISOADC6_CHANNEL_POS_AN_IN_AIN9 0x0120u
311 #define ISOADC6_CHANNEL_POS_AN_IN_AIN10 0x0140u
312 #define ISOADC6_CHANNEL_POS_AN_IN_AIN11 0x0160u
313 #define ISOADC6_CHANNEL_POS_AN_IN_AIN12 0x0180u
314 #define ISOADC6_CHANNEL_POS_AN_IN_AIN13 0x01A0u
315 #define ISOADC6_CHANNEL_POS_AN_IN_AIN14 0x01C0u
316 #define ISOADC6_CHANNEL_POS_AN_IN_AIN15 0x01E0u
317 #define ISOADC6_CHANNEL_POS_TEMP_SENSOR 0x0200u
318 #define ISOADC6_CHANNEL_POS_AVSS 0x0220u
319 #define ISOADC6_CHANNEL_POS_INT_REF 0x0240u
320 #define ISOADC6_CHANNEL_POS_DGND 0x0260u
321 #define ISOADC6_CHANNEL_NEG_AN_IN_AIN0 0x0000u
322 #define ISOADC6_CHANNEL_NEG_AN_IN_AIN1 0x0001u
323 #define ISOADC6_CHANNEL_NEG_AN_IN_AIN2 0x0002u
324 #define ISOADC6_CHANNEL_NEG_AN_IN_AIN3 0x0003u
325 #define ISOADC6_CHANNEL_NEG_AN_IN_AIN4 0x0004u
326 #define ISOADC6_CHANNEL_NEG_AN_IN_AIN5 0x0005u
327 #define ISOADC6_CHANNEL_NEG_AN_IN_AIN6 0x0006u
328 #define ISOADC6_CHANNEL_NEG_AN_IN_AIN7 0x0007u
329 #define ISOADC6_CHANNEL_NEG_AN_IN_AIN8 0x0008u
330 #define ISOADC6_CHANNEL_NEG_AN_IN_AIN9 0x0009u
331 #define ISOADC6_CHANNEL_NEG_AN_IN_AIN10 0x000Au
332 #define ISOADC6_CHANNEL_NEG_AN_IN_AIN11 0x000Bu
333 #define ISOADC6_CHANNEL_NEG_AN_IN_AIN12 0x000Cu
334 #define ISOADC6_CHANNEL_NEG_AN_IN_AIN13 0x000Du
335 #define ISOADC6_CHANNEL_NEG_AN_IN_AIN14 0x000Eu
336 #define ISOADC6_CHANNEL_NEG_AN_IN_AIN15 0x000Fu
337 #define ISOADC6_CHANNEL_NEG_TEMP_SENSOR 0x0010u
338 #define ISOADC6_CHANNEL_NEG_AVSS 0x0011u
339 #define ISOADC6_CHANNEL_NEG_INT_REF 0x0012u
340 #define ISOADC6_CHANNEL_NEG_DGND 0x0013u
346 #define ISOADC6_ALL_ERROR_FLAG_DIS 0x00000000ul
347 #define ISOADC6MASTER_CLK_CNT_EN 0x00400000ul
348 #define ISOADC6LDO_CAP_TEST_CHECK_EN 0x00200000ul
349 #define ISOADC6ANALOG_LDO_CALIB_CHECK_EN 0x00080000ul
350 #define ISOADC6DIGITAL_LDO_CALIB_CHECK_EN 0x00100000ul
351 #define ISOADC6LDO_CHECK_DIS 0x00180000ul
352 #define ISOADC6_CALIB_FAIL_CHECK_EN 0x00040000ul
353 #define ISOADC6_CONV_FAIL_CHECK_EN 0x00020000ul
354 #define ISOADC6_SAT_CHECK_EN 0x00010000ul
355 #define ISOADC6_OVERVTG_MON_ON_AINP_CH_EN 0x00008000ul
356 #define ISOADC6_UNDERVTG_MON_ON_AINP_CH_EN 0x00004000ul
357 #define ISOADC6_OVERVTG_MON_ON_AINM_CH_EN 0x00002000ul
358 #define ISOADC6_UNDERVTG_MON_ON_AINM_CH_EN 0x00001000ul
359 #define ISOADC6_EXT_REF_DET_ERROR 0x00000800ul
360 #define ISOADC6_DIG_LDO_TEST_MECH_CHECK 0x00000400ul
361 #define ISOADC6_DIG_LDO_VTG_MONITORING 0x00000200ul
362 #define ISOADC6_AN_LDO_TEST_MECH_CHECK 0x00000100ul
363 #define ISOADC6_AN_LDO_VTG_MON 0x00000080ul
364 #define ISOADC6_SPI_IGNORE_ERROR 0x00000040ul
365 #define ISOADC6_SPI_SCLK_CNT_ERROR_CHECK 0x00000020ul
366 #define ISOADC6_SPI_READ_ERROR_CHECK 0x00000010ul
367 #define ISOADC6_SPI_WRITE_ERROR_CHECK 0x00000008ul
368 #define ISOADC6_SPI_CRC_CHECK 0x00000004ul
369 #define ISOADC6_SPI_CRC_CALC_PERF_ON_MEMORY 0x00000002ul
370 #define ISOADC6_GAIN_COEFF 0x00400000ul
376 #define ISOADC6_CFG_UNP_OP_BUFF_BOUT_DIS 0x0000u
377 #define ISOADC6_CFG_BIP_OP_EN 0x0800u
378 #define ISOADC6_CFG_BOUT_CURR_500_UA 0x0200u
379 #define ISOADC6_CFG_BOUT_CURR_2_MA 0x0400u
380 #define ISOADC6_CFG_BOUT_CURR_4_MA 0x0600u
381 #define ISOADC6_CFG_BUFF_ON_REFIN_POS_EN 0x0100u
382 #define ISOADC6_CFG_BUFF_ON_REFIN_NEG_EN 0x0080u
383 #define ISOADC6_CFG_BUFF_ON_AINP_EN 0x0040u
384 #define ISOADC6_CFG_BUFF_ON_AINM_EN 0x0020u
385 #define ISOADC6_CFG_SEL_REFIN1 0x0000u
386 #define ISOADC6_CFG_SEL_REFIN2 0x0008u
387 #define ISOADC6_CFG_SEL_INT_REF 0x0010u
388 #define ISOADC6_CFG_SEL_AVDD_REF 0x0018u
389 #define ISOADC6_CFG_SET_GAIN_1 0x0000u
390 #define ISOADC6_CFG_SET_GAIN_2 0x0001u
391 #define ISOADC6_CFG_SET_GAIN_4 0x0002u
392 #define ISOADC6_CFG_SET_GAIN_8 0x0003u
393 #define ISOADC6_CFG_SET_GAIN_16 0x0004u
394 #define ISOADC6_CFG_SET_GAIN_32 0x0005u
395 #define ISOADC6_CFG_SET_GAIN_64 0x0006u
396 #define ISOADC6_CFG_SET_GAIN_128 0x0007u
402 #define ISOADC6_VTG_REF_2_65_V 2.65f
403 #define ISOADC6_CALIB_DEFAULT 1.00f
413 #define ISOADC6_SET_DATA_SAMPLE_EDGE SET_SPI_DATA_SAMPLE_EDGE
414 #define ISOADC6_SET_DATA_SAMPLE_MIDDLE SET_SPI_DATA_SAMPLE_MIDDLE
432 #define ISOADC6_MAP_MIKROBUS( cfg, mikrobus ) \
433 cfg.miso = MIKROBUS( mikrobus, MIKROBUS_MISO ); \
434 cfg.mosi = MIKROBUS( mikrobus, MIKROBUS_MOSI ); \
435 cfg.sck = MIKROBUS( mikrobus, MIKROBUS_SCK ); \
436 cfg.cs = MIKROBUS( mikrobus, MIKROBUS_CS )
@ ISOADC6_OK
Definition: isoadc6.h:487
pin_name_t sck
Definition: isoadc6.h:467
isoadc6_return_value_t
ISO ADC 6 Click return value data.
Definition: isoadc6.h:486
err_t isoadc6_get_device_id(isoadc6_t *ctx, uint8_t *device_id, uint8_t *sil_rev)
ISO ADC 6 get device ID function.
float calib
Definition: isoadc6.h:453
pin_name_t chip_select
Definition: isoadc6.h:450
ISO ADC 6 Click context object.
Definition: isoadc6.h:446
This file contains SPI specific macros, functions, etc.
spi_master_chip_select_polarity_t cs_polarity
Definition: isoadc6.h:473
uint8_t ch_sel
Definition: isoadc6.h:454
void isoadc6_cfg_setup(isoadc6_cfg_t *cfg)
ISO ADC 6 configuration object setup function.
err_t isoadc6_set_ch_config(isoadc6_t *ctx, uint16_t cfg_data)
ISO ADC 6 set channel config function.
err_t isoadc6_get_voltage(isoadc6_t *ctx, float *voltage)
ISO ADC 6 get voltage level function.
float vref
Definition: isoadc6.h:475
err_t isoadc6_read_byte(isoadc6_t *ctx, uint8_t reg, uint8_t *data_out)
ISO ADC 6 byte reading function.
uint32_t spi_speed
Definition: isoadc6.h:471
err_t isoadc6_write_byte(isoadc6_t *ctx, uint8_t reg, uint8_t data_in)
ISO ADC 6 byte writing function.
err_t isoadc6_get_adc_data(isoadc6_t *ctx, uint32_t *adc_data)
ISO ADC 6 get ADC data function.
pin_name_t cs
Definition: isoadc6.h:468
err_t isoadc6_generic_write(isoadc6_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len)
ISO ADC 6 data writing function.
err_t isoadc6_read_dword(isoadc6_t *ctx, uint8_t reg, uint32_t *data_out)
ISO ADC 6 dword reading function.
spi_master_mode_t spi_mode
Definition: isoadc6.h:472
err_t isoadc6_read_word(isoadc6_t *ctx, uint8_t reg, uint16_t *data_out)
ISO ADC 6 word reading function.
ISO ADC 6 Click configuration object.
Definition: isoadc6.h:463
err_t isoadc6_init(isoadc6_t *ctx, isoadc6_cfg_t *cfg)
ISO ADC 6 initialization function.
err_t isoadc6_set_adc_control(isoadc6_t *ctx, uint16_t adc_ctrl)
ISO ADC 6 set ADC control function.
err_t isoadc6_write_word(isoadc6_t *ctx, uint8_t reg, uint16_t data_in)
ISO ADC 6 word writing function.
pin_name_t mosi
Definition: isoadc6.h:466
spi_master_t spi
Definition: isoadc6.h:448
@ ISOADC6_ERROR
Definition: isoadc6.h:488
err_t isoadc6_generic_read(isoadc6_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len)
ISO ADC 6 data reading function.
err_t isoadc6_set_ch_gain(isoadc6_t *ctx, uint32_t gain)
ISO ADC 6 set channel gain function.
err_t isoadc6_default_cfg(isoadc6_t *ctx)
ISO ADC 6 default configuration function.
err_t isoadc6_set_channel(isoadc6_t *ctx, uint8_t sel_ch, uint16_t ch_data)
ISO ADC 6 set channel function.
float vref
Definition: isoadc6.h:452
float calib
Definition: isoadc6.h:476
err_t isoadc6_get_ch_offset(isoadc6_t *ctx, uint32_t *offset)
ISO ADC 6 get channel offset function.
err_t isoadc6_set_ch_offset(isoadc6_t *ctx, uint32_t offset)
ISO ADC 6 set channel offset function.
pin_name_t miso
Definition: isoadc6.h:465
uint8_t ch_sel
Definition: isoadc6.h:477
err_t isoadc6_write_dword(isoadc6_t *ctx, uint8_t reg, uint32_t data_in)
ISO ADC 6 dword writing function.
err_t isoadc6_get_ch_gain(isoadc6_t *ctx, uint32_t *gain)
ISO ADC 6 get channel gain function.