Go to the documentation of this file.
64 int32_t iio_ad463x_init(
struct iio_ad463x **desc,
68 int32_t iio_ad463x_remove(
struct iio_ad463x *desc);
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
int32_t scale_table[4][2]
Definition: ad463x.h:272
@ IIO_VAL_INT
Definition: iio_types.h:50
Struct describing the scan type.
Definition: iio_types.h:168
@ IIO_VAL_INT_PLUS_NANO
Definition: iio_types.h:52
uint8_t pgia_idx
Definition: ad463x.h:270
char sign
Definition: iio_types.h:153
struct iio_channel * channels
Definition: iio_types.h:254
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
@ IIO_VAL_FRACTIONAL_LOG2
Definition: iio_types.h:56
Header file of SPI Interface.
Structure holding channel attributess.
Definition: iio_types.h:103
@ IIO_VAL_FRACTIONAL
Definition: iio_types.h:55
#define BITS_PER_SAMPLE
Definition: basic_example.c:42
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
uint8_t real_bits_precision
Definition: ad463x.h:276
const char * name
Definition: iio_types.h:131
@ ID_AD4632_16
Definition: ad463x.h:167
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:628
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
#define REAL_BITS
Definition: basic_example.c:43
int32_t iio_parse_value(char *buf, enum iio_val fmt, int32_t *val, int32_t *val2)
Definition: iio.c:630
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:686
Header file of iio_ad463x.
struct scan_type adc_scan_type
Definition: iio_adc_demo.c:227
Header file for iio_types.
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
int32_t ad463x_set_pgia_gain(struct ad463x_dev *dev, enum ad463x_pgia_gain gain_idx)
Set the PGIA gain.
Definition: ad463x.c:916
int16_t ch_num
Definition: iio_types.h:105
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
Device initialization parameters.
Definition: ad463x.h:237
enum ad463x_id device_id
Definition: ad463x.h:254
Definition: iio_types.h:151
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:262