Go to the documentation of this file.
46 #define AD7768_REG_CH_STANDBY 0x00
47 #define AD7768_REG_CH_MODE_A 0x01
48 #define AD7768_REG_CH_MODE_B 0x02
49 #define AD7768_REG_CH_MODE_SEL 0x03
50 #define AD7768_REG_PWR_MODE 0x04
51 #define AD7768_REG_GENERAL_CFG 0x05
52 #define AD7768_REG_DATA_CTRL 0x06
53 #define AD7768_REG_INTERFACE_CFG 0x07
54 #define AD7768_REG_BIST_CTRL 0x08
55 #define AD7768_REG_DEV_STATUS 0x09
56 #define AD7768_REG_REV_ID 0x0A
57 #define AD7768_REG_DEV_ID_MSB 0x0B
58 #define AD7768_REG_DEV_ID_LSB 0x0C
59 #define AD7768_REG_SW_REV_ID 0x0D
60 #define AD7768_REG_GPIO_CTRL 0x0E
61 #define AD7768_REG_GPIO_WR_DATA 0x0F
62 #define AD7768_REG_GPIO_RD_DATA 0x10
63 #define AD7768_REG_PRECHARGE_BUF_1 0x11
64 #define AD7768_REG_PRECHARGE_BUF_2 0x12
65 #define AD7768_REG_POS_REF_BUF 0x13
66 #define AD7768_REG_NEG_REF_BUF 0x14
67 #define AD7768_REG_CH_OFFSET_1(ch) (0x1E + (ch) * 3)
68 #define AD7768_REG_CH_OFFSET_2(ch) (0x1F + (ch) * 3)
69 #define AD7768_REG_CH_OFFSET_3(ch) (0x20 + (ch) * 3)
70 #define AD7768_REG_CH_GAIN_1(ch) (0x36 + (ch) * 3)
71 #define AD7768_REG_CH_GAIN_2(ch) (0x37 + (ch) * 3)
72 #define AD7768_REG_CH_GAIN_3(ch) (0x38 + (ch) * 3)
73 #define AD7768_REG_CH_SYNC_OFFSET(ch) (0x4E + (ch) * 3)
74 #define AD7768_REG_DIAG_METER_RX 0x56
75 #define AD7768_REG_DIAG_CTRL 0x57
76 #define AD7768_REG_DIAG_MOD_DELAY_CTRL 0x58
77 #define AD7768_REG_DIAG_CHOP_CTRL 0x59
80 #define AD7768_CH_STANDBY(x) (1 << (x))
83 #define AD7768_CH_MODE_FILTER_TYPE (1 << 3)
84 #define AD7768_CH_MODE_DEC_RATE_MSK NO_OS_GENMASK(2, 0)
85 #define AD7768_CH_MODE_DEC_RATE(x) (((x) & 0x7) << 0)
88 #define AD7768_CH_MODE(x) (1 << (x))
91 #define AD7768_PWR_MODE_POWER_MODE_MSK NO_OS_GENMASK(5, 4)
92 #define AD7768_PWR_MODE_SLEEP_MODE (1 << 7)
93 #define AD7768_PWR_MODE_POWER_MODE(x) (((x) & 0x3) << 4)
94 #define AD7768_PWR_MODE_LVDS_ENABLE (1 << 3)
95 #define AD7768_PWR_MODE_MCLK_DIV_MSK NO_OS_GENMASK(1, 0)
96 #define AD7768_PWR_MODE_MCLK_DIV(x) (((x) & 0x3) << 0)
97 #define ad7768_map_power_mode_to_regval(x) ((x) ? ((x) + 1) : 0)
100 #define AD7768_DATA_CTRL_SPI_SYNC (1 << 7)
101 #define AD7768_DATA_CTRL_SINGLE_SHOT_EN (1 << 4)
102 #define AD7768_DATA_CTRL_SPI_RESET(x) (((x) & 0x3) << 0)
103 #define AD7768_DATA_CONTROL_SPI_SYNC_MSK NO_OS_BIT(7)
104 #define AD7768_DATA_CONTROL_SPI_SYNC NO_OS_BIT(7)
105 #define AD7768_DATA_CONTROL_SPI_SYNC_CLEAR 0
108 #define AD7768_INTERFACE_CFG_CRC_SEL(x) (((x) & 0x3) << 2)
109 #define AD7768_INTERFACE_CFG_DCLK_DIV(x) (((x) & 0x3) << 0)
110 #define AD7768_INTERFACE_CFG_DCLK_DIV_MSK NO_OS_GENMASK(1, 0)
111 #define AD7768_INTERFACE_CFG_DCLK_DIV_MODE(x) (4 - no_os_find_first_set_bit(x))
112 #define AD7768_MAX_DCLK_DIV 8
114 #define AD7768_RESOLUTION 24
115 #define AD7768_SAMPLE_SIZE 32
116 #define AD7768_MAX_FREQ_PER_MODE 6
117 #define AD7768_NUM_CHANNELS 8
208 static const int ad7768_dec_rate_vals[6] = {
209 32, 64, 128, 256, 512, 1024
212 static const int ad7768_mclk_div_vals[3] = {
int32_t ad7768_setup(ad7768_dev **device, ad7768_init_param init_param)
Definition: ad7768.c:619
void ad7768_set_available_sampl_freq(ad7768_dev *dev)
Definition: ad7768.c:846
int32_t ad7768_get_ch_state(ad7768_dev *dev, ad7768_ch ch, ad7768_ch_state *state)
Definition: ad7768.c:492
int32_t ad7768_set_power_mode(ad7768_dev *dev, ad7768_power_mode mode)
Definition: ad7768.c:223
ad7768_sleep_mode sleep_mode
Definition: ad7768.h:265
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
#define ad7768_map_power_mode_to_regval(x)
Definition: ad7768.h:97
#define AD7768_MAX_DCLK_DIV
Definition: ad7768.h:112
@ AD7768_DEC_X1024_2ND
Definition: ad7768.h:204
ad7768_power_mode
Definition: ad7768.h:127
int32_t ad7768_get_crc_sel(ad7768_dev *dev, ad7768_crc_sel *crc_sel)
Definition: ad7768.c:439
#define AD7768_PWR_MODE_MCLK_DIV_MSK
Definition: ad7768.h:95
ad7768_sleep_mode sleep_mode
Definition: ad7768.h:236
ad7768_mclk_div
Definition: ad7768.h:140
int32_t ad7768_set_sleep_mode(ad7768_dev *dev, ad7768_sleep_mode mode)
Definition: ad7768.c:159
@ AD7768_CH3
Definition: ad7768.h:174
#define AD7768_CH_MODE_DEC_RATE(x)
Definition: ad7768.h:85
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
ad7768_mclk_div mclk_div
Definition: ad7768.h:239
@ AD7768_NUM_POWER_MODES
Definition: ad7768.h:137
int32_t ad7768_spi_write_mask(ad7768_dev *dev, uint8_t reg_addr, uint8_t mask, uint8_t data)
Definition: ad7768.c:135
Header file of SPI Interface.
ad7768_pin_spi_ctrl pin_spi_ctrl
Definition: ad7768.h:235
@ AD7768_DEC_X256
Definition: ad7768.h:201
@ AD7768_DEC_X512
Definition: ad7768.h:202
uint8_t gpio_reset_value
Definition: ad7768.h:229
@ AD7768_FAST_MODE
Definition: ad7768.h:136
int32_t ad7768_spi_write(ad7768_dev *dev, uint8_t reg_addr, uint8_t reg_data)
Definition: ad7768.c:91
int32_t ad7768_set_sleep_mode(ad7768_dev *dev, ad7768_sleep_mode mode)
Definition: ad7768.c:159
@ AD7768_DCLK_DIV_2
Definition: ad7768.h:149
#define AD7768_CH_MODE_DEC_RATE_MSK
Definition: ad7768.h:84
unsigned int n_freqs
Definition: ad7768.h:222
@ AD7768_DCLK_DIV_1
Definition: ad7768.h:150
unsigned int mclk
Definition: ad7768.h:247
@ AD7768_LOW_POWER_MODE
Definition: ad7768.h:134
int32_t ad7768_setup_finish(ad7768_dev *dev, ad7768_init_param init_param)
Definition: ad7768.c:701
@ AD7768_FILTER_SINC
Definition: ad7768.h:194
ad7768_crc_sel crc_sel
Definition: ad7768.h:270
int32_t ad7768_get_ch_mode(ad7768_dev *dev, ad7768_ch ch, ad7768_ch_mode *mode)
Definition: ad7768.c:603
int32_t ad7768_spi_write(ad7768_dev *dev, uint8_t reg_addr, uint8_t reg_data)
Definition: ad7768.c:91
int32_t ad7768_get_mclk_div(ad7768_dev *dev, ad7768_mclk_div *clk_div)
Definition: ad7768.c:295
@ AD7768_FILTER_WIDEBAND
Definition: ad7768.h:193
#define AD7768_SAMPLE_SIZE
Definition: ad7768.h:115
@ AD7768_STANDARD_CONV
Definition: ad7768.h:159
#define NO_OS_DIV_ROUND_CLOSEST_ULL(x, y)
Definition: no_os_util.h:56
@ AD7768_DEC_X1024
Definition: ad7768.h:203
#define AD7768_REG_CH_STANDBY
Definition: ad7768.h:46
enum no_os_spi_mode mode
Definition: no_os_spi.h:148
ad7768_crc_sel
Definition: ad7768.h:163
Definition: ad9361_util.h:69
ad7768_dec_rate dec_rate[2]
Definition: ad7768.h:246
int32_t ad7768_get_sleep_mode(ad7768_dev *dev, ad7768_sleep_mode *mode)
Definition: ad7768.c:177
#define AD7768_REG_INTERFACE_CFG
Definition: ad7768.h:53
int32_t ad7768_get_conv_op(ad7768_dev *dev, ad7768_conv_op *conv_op)
Definition: ad7768.c:404
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
ad7768_ch_state
Definition: ad7768.h:182
int ad7768_remove(ad7768_dev *dev)
Definition: ad7768.c:916
#define AD7768_INTERFACE_CFG_DCLK_DIV_MODE(x)
Definition: ad7768.h:111
int32_t ad7768_get_sleep_mode(ad7768_dev *dev, ad7768_sleep_mode *mode)
Definition: ad7768.c:177
struct no_os_gpio_desc * gpio_mode0
Definition: ad7768.h:230
int32_t ad7768_setup_finish(ad7768_dev *dev, ad7768_init_param init_param)
Definition: ad7768.c:701
ad7768_power_mode power_mode
Definition: ad7768.h:237
@ NO_OS_GPIO_LOW
Definition: no_os_gpio.h:115
ad7768_power_mode power_mode
Definition: ad7768.h:266
int32_t ad7768_set_conv_op(ad7768_dev *dev, ad7768_conv_op conv_op)
Definition: ad7768.c:367
@ AD7768_DEC_X64
Definition: ad7768.h:199
@ AD7768_ACTIVE
Definition: ad7768.h:123
int32_t ad7768_set_mode_pins(ad7768_dev *dev, uint8_t state)
Definition: ad7768.c:191
@ AD7768_CH_NO
Definition: ad7768.h:179
int32_t ad7768_set_crc_sel(ad7768_dev *dev, ad7768_crc_sel crc_sel)
Definition: ad7768.c:421
#define AD7768_DATA_CTRL_SINGLE_SHOT_EN
Definition: ad7768.h:101
@ AD7768_DCLK_DIV_8
Definition: ad7768.h:147
@ AD7768_MCLK_DIV_8
Definition: ad7768.h:142
int32_t ad7768_set_mode_config(ad7768_dev *dev, ad7768_ch_mode mode, ad7768_filt_type filt_type, ad7768_dec_rate dec_rate)
Definition: ad7768.c:519
int32_t ad7768_set_crc_sel(ad7768_dev *dev, ad7768_crc_sel crc_sel)
Definition: ad7768.c:421
int32_t ad7768_get_dclk_div(ad7768_dev *dev, ad7768_dclk_div *clk_div)
Definition: ad7768.c:350
#define AD7768_CH_MODE(x)
Definition: ad7768.h:88
ad7768_ch
Definition: ad7768.h:170
unsigned int freq
Definition: ad7768.h:217
ad7768_dclk_div dclk_div
Definition: ad7768.h:240
int32_t ad7768_setup_begin(ad7768_dev **device, ad7768_init_param init_param)
Definition: ad7768.c:651
#define AD7768_INTERFACE_CFG_DCLK_DIV_MSK
Definition: ad7768.h:110
@ AD7768_MCLK_DIV_4
Definition: ad7768.h:143
int32_t ad7768_get_power_mode(ad7768_dev *dev, ad7768_power_mode *mode)
Definition: ad7768.c:260
ad7768_conv_op conv_op
Definition: ad7768.h:269
int32_t ad7768_set_dclk_div(ad7768_dev *dev, ad7768_dclk_div clk_div)
Definition: ad7768.c:313
@ AD7768_ENABLED
Definition: ad7768.h:183
int ad7768_set_power_mode_and_sampling_freq(ad7768_dev *dev, enum ad7768_power_modes_raw mode)
Definition: ad7768.c:877
ad7768_dec_rate
Definition: ad7768.h:197
int32_t ad7768_spi_read_mask(ad7768_dev *dev, uint8_t reg_addr, uint8_t mask, uint8_t *data)
Definition: ad7768.c:113
@ AD7768_CRC_4
Definition: ad7768.h:165
#define AD7768_REG_DATA_CTRL
Definition: ad7768.h:52
ad7768_pin_spi_ctrl
Definition: ad7768.h:153
ad7768_filt_type filt_type[2]
Definition: ad7768.h:245
@ AD7768_DEC_X1024_3RD
Definition: ad7768.h:205
enum ad7768_power_modes_raw power_mode_raw
Definition: ad7768.h:238
@ AD7768_ECO
Definition: ad7768.h:128
#define AD7768_PWR_MODE_POWER_MODE_MSK
Definition: ad7768.h:91
struct no_os_gpio_desc * gpio_mode2
Definition: ad7768.h:232
int32_t ad7768_set_conv_op(ad7768_dev *dev, ad7768_conv_op conv_op)
Definition: ad7768.c:367
struct no_os_gpio_desc * gpio_reset
Definition: ad7768.h:228
ad7768_ch_mode
Definition: ad7768.h:187
int32_t ad7768_setup(ad7768_dev **device, ad7768_init_param init_param)
Definition: ad7768.c:619
#define AD7768_PWR_MODE_POWER_MODE(x)
Definition: ad7768.h:93
void ad7768_set_available_sampl_freq(ad7768_dev *dev)
Definition: ad7768.c:846
ad7768_mclk_div mclk_div
Definition: ad7768.h:267
Header file of AD7768 Driver.
struct no_os_gpio_desc * gpio_mode1
Definition: ad7768.h:231
ad7768_filt_type
Definition: ad7768.h:192
@ AD7768_MEDIAN
Definition: ad7768.h:129
@ AD7768_CH4
Definition: ad7768.h:175
@ AD7768_DEC_X128
Definition: ad7768.h:200
unsigned int sampling_freq
Definition: ad7768.h:249
unsigned int mclk
Definition: ad7768.h:271
@ AD7768_STANDBY
Definition: ad7768.h:184
#define AD7768_INTERFACE_CFG_DCLK_DIV(x)
Definition: ad7768.h:109
#define AD7768_PWR_MODE_MCLK_DIV(x)
Definition: ad7768.h:96
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
@ AD7768_CH1
Definition: ad7768.h:172
#define AD7768_DATA_CONTROL_SPI_SYNC_MSK
Definition: ad7768.h:103
struct no_os_spi_init_param spi_init
Definition: common_data.c:120
#define AD7768_NUM_CHANNELS
Definition: ad7768.h:117
@ AD7768_MODE_A
Definition: ad7768.h:188
int32_t ad7768_spi_read_mask(ad7768_dev *dev, uint8_t reg_addr, uint8_t mask, uint8_t *data)
Definition: ad7768.c:113
int32_t ad7768_get_conv_op(ad7768_dev *dev, ad7768_conv_op *conv_op)
Definition: ad7768.c:404
ad7768_crc_sel crc_sel
Definition: ad7768.h:242
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
@ AD7768_CH7
Definition: ad7768.h:178
@ AD7768_CH6
Definition: ad7768.h:177
@ AD7768_CRC_16_2ND
Definition: ad7768.h:167
#define AD7768_REG_CH_MODE_B
Definition: ad7768.h:48
ad7768_conv_op
Definition: ad7768.h:158
int32_t ad7768_spi_write_mask(ad7768_dev *dev, uint8_t reg_addr, uint8_t mask, uint8_t data)
Definition: ad7768.c:135
@ AD7768_FAST
Definition: ad7768.h:130
const uint8_t standard_pin_ctrl_mode_sel[3][4]
Definition: ad7768.c:44
ad7768_conv_op conv_op
Definition: ad7768.h:241
#define AD7768_MAX_FREQ_PER_MODE
Definition: ad7768.h:116
int32_t ad7768_set_ch_mode(ad7768_dev *dev, ad7768_ch ch, ad7768_ch_mode mode)
Definition: ad7768.c:575
uint8_t pin_spi_input_value
Definition: ad7768.h:234
@ AD7768_CH2
Definition: ad7768.h:173
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:49
@ AD7768_MCLK_DIV_32
Definition: ad7768.h:141
ad7768_ch_state ch_state[8]
Definition: ad7768.h:243
ad7768_ch_mode ch_mode[8]
Definition: ad7768.h:244
int32_t ad7768_get_mode_config(ad7768_dev *dev, ad7768_ch_mode mode, ad7768_filt_type *filt_type, ad7768_dec_rate *dec_rate)
Definition: ad7768.c:547
uint32_t no_os_find_last_set_bit(uint32_t word)
@ AD7768_ONE_SHOT_CONV
Definition: ad7768.h:160
ad7768_power_modes_raw
Definition: ad7768.h:133
int32_t ad7768_get_mclk_div(ad7768_dev *dev, ad7768_mclk_div *clk_div)
Definition: ad7768.c:295
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 ad7768_freq_config freq_cfg[AD7768_MAX_FREQ_PER_MODE]
Definition: ad7768.h:223
int32_t ad7768_set_power_mode(ad7768_dev *dev, ad7768_power_mode mode)
Definition: ad7768.c:223
unsigned int dec_rate
Definition: ad7768.h:218
#define AD7768_DATA_CONTROL_SPI_SYNC
Definition: ad7768.h:104
int32_t ad7768_set_mode_config(ad7768_dev *dev, ad7768_ch_mode mode, ad7768_filt_type filt_type, ad7768_dec_rate dec_rate)
Definition: ad7768.c:519
@ AD7768_SPI_CTRL
Definition: ad7768.h:155
@ AD7768_DEC_X32
Definition: ad7768.h:198
#define AD7768_REG_PWR_MODE
Definition: ad7768.h:50
int32_t ad7768_get_power_mode(ad7768_dev *dev, ad7768_power_mode *mode)
Definition: ad7768.c:260
struct no_os_gpio_desc * gpio_mode3
Definition: ad7768.h:233
struct ad7768_avail_freq avail_freq[AD7768_NUM_POWER_MODES]
Definition: ad7768.h:250
struct no_os_spi_desc * spi_desc
Definition: ad7768.h:227
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
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
int32_t ad7768_set_ch_mode(ad7768_dev *dev, ad7768_ch ch, ad7768_ch_mode mode)
Definition: ad7768.c:575
@ AD7768_PIN_CTRL
Definition: ad7768.h:154
#define AD7768_INTERFACE_CFG_CRC_SEL(x)
Definition: ad7768.h:108
ad7768_dclk_div
Definition: ad7768.h:146
int32_t ad7768_get_mode_config(ad7768_dev *dev, ad7768_ch_mode mode, ad7768_filt_type *filt_type, ad7768_dec_rate *dec_rate)
Definition: ad7768.c:547
int ad7768_remove(ad7768_dev *dev)
Definition: ad7768.c:916
int32_t ad7768_set_mclk_div(ad7768_dev *dev, ad7768_mclk_div clk_div)
Definition: ad7768.c:277
@ AD7768_MODE_B
Definition: ad7768.h:189
@ AD7768_CH0
Definition: ad7768.h:171
uint8_t pin_spi_input_value
Definition: ad7768.h:264
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
@ AD7768_NO_CRC
Definition: ad7768.h:164
int32_t ad7768_spi_read(ad7768_dev *dev, uint8_t reg_addr, uint8_t *reg_data)
Definition: ad7768.c:65
Header file of GPIO Interface.
int32_t ad7768_set_ch_state(ad7768_dev *dev, ad7768_ch ch, ad7768_ch_state state)
Definition: ad7768.c:464
#define AD7768_REG_CH_MODE_A
Definition: ad7768.h:47
unsigned int datalines
Definition: ad7768.h:272
int32_t ad7768_set_mclk_div(ad7768_dev *dev, ad7768_mclk_div clk_div)
Definition: ad7768.c:277
unsigned int datalines
Definition: ad7768.h:248
int32_t ad7768_get_ch_mode(ad7768_dev *dev, ad7768_ch ch, ad7768_ch_mode *mode)
Definition: ad7768.c:603
#define AD7768_CH_STANDBY(x)
Definition: ad7768.h:80
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
@ AD7768_DCLK_DIV_4
Definition: ad7768.h:148
int32_t ad7768_spi_read(ad7768_dev *dev, uint8_t reg_addr, uint8_t *reg_data)
Definition: ad7768.c:65
@ AD7768_MEDIAN_MODE
Definition: ad7768.h:135
Header file of utility functions.
unsigned int no_os_hweight32(uint32_t word)
@ AD7768_SLEEP
Definition: ad7768.h:124
#define AD7768_PWR_MODE_SLEEP_MODE
Definition: ad7768.h:92
#define AD7768_REG_CH_MODE_SEL
Definition: ad7768.h:49
int32_t ad7768_get_dclk_div(ad7768_dev *dev, ad7768_dclk_div *clk_div)
Definition: ad7768.c:350
int32_t ad7768_setup_begin(ad7768_dev **device, ad7768_init_param init_param)
Definition: ad7768.c:651
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
const uint8_t one_shot_pin_ctrl_mode_sel[3][4]
Definition: ad7768.c:51
ad7768_dclk_div dclk_div
Definition: ad7768.h:268
int32_t ad7768_get_crc_sel(ad7768_dev *dev, ad7768_crc_sel *crc_sel)
Definition: ad7768.c:439
int ad7768_set_power_mode_and_sampling_freq(ad7768_dev *dev, enum ad7768_power_modes_raw mode)
Definition: ad7768.c:877
int32_t ad7768_set_dclk_div(ad7768_dev *dev, ad7768_dclk_div clk_div)
Definition: ad7768.c:313
ad7768_sleep_mode
Definition: ad7768.h:122
@ AD7768_CRC_16
Definition: ad7768.h:166
uint8_t gpio_reset_value
Definition: ad7768.h:258
int32_t ad7768_get_ch_state(ad7768_dev *dev, ad7768_ch ch, ad7768_ch_state *state)
Definition: ad7768.c:492
int32_t ad7768_set_ch_state(ad7768_dev *dev, ad7768_ch ch, ad7768_ch_state state)
Definition: ad7768.c:464
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140
@ AD7768_CH5
Definition: ad7768.h:176
#define AD7768_CH_MODE_FILTER_TYPE
Definition: ad7768.h:83
#define AD7768_DATA_CONTROL_SPI_SYNC_CLEAR
Definition: ad7768.h:105