Go to the documentation of this file.
70 int32_t iio_ad463x_init(
struct iio_ad463x **desc,
74 int32_t iio_ad463x_remove(
struct iio_ad463x *desc);
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:121
int32_t scale_table[4][2]
Definition: ad463x.h:272
@ IIO_VAL_INT
Definition: iio_types.h:56
Struct describing the scan type.
Definition: iio_types.h:173
@ IIO_VAL_INT_PLUS_NANO
Definition: iio_types.h:58
uint8_t pgia_idx
Definition: ad463x.h:270
char sign
Definition: iio_types.h:158
struct iio_channel * channels
Definition: iio_types.h:259
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:673
@ IIO_VAL_FRACTIONAL_LOG2
Definition: iio_types.h:62
Header file of SPI Interface.
Structure holding channel attributess.
Definition: iio_types.h:108
@ IIO_VAL_FRACTIONAL
Definition: iio_types.h:61
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:60
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:53
uint8_t real_bits_precision
Definition: ad463x.h:276
const char * name
Definition: iio_types.h:136
@ ID_AD4632_16
Definition: ad463x.h:173
Header file of AD463x Driver.
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:410
Structure holding pointers to show and store functions.
Definition: iio_types.h:134
int32_t ad463x_enter_config_mode(struct ad463x_dev *dev)
Enter register configuration mode.
Definition: ad463x.c:129
int32_t iio_parse_value(char *buf, enum iio_val fmt, int32_t *val, int32_t *val2)
Definition: iio.c:615
uint8_t capture_data_width
Definition: ad463x.h:260
int32_t vref
Definition: ad463x.h:268
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:666
Header file of iio_ad463x.
struct scan_type adc_scan_type
Definition: iio_adc_demo.c:233
Header file for iio_types.
#define NO_OS_BIT(x)
Definition: no_os_util.h:51
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:75
int32_t ad463x_set_pgia_gain(struct ad463x_dev *dev, enum ad463x_pgia_gain gain_idx)
Set the PGIA gain.
Definition: ad463x.c:701
int16_t ch_num
Definition: iio_types.h:110
Structure holding channels and attributes of a device.
Definition: iio_types.h:252
Device initialization parameters.
Definition: ad463x.h:238
enum ad463x_id device_id
Definition: ad463x.h:254
Definition: iio_types.h:156
int32_t no_os_sign_extend32(uint32_t value, int index)
bool has_pgia
Definition: ad463x.h:278
int32_t ad463x_exit_reg_cfg_mode(struct ad463x_dev *dev)
Exit register configuration mode.
Definition: ad463x.c:266