Go to the documentation of this file.
34 #ifndef _PULSAR_ADC_IIO_H_
35 #define _PULSAR_ADC_IIO_H_
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
@ IIO_DIRECTION_INPUT
Definition: iio_types.h:200
uint32_t samples
Definition: iio_types.h:217
struct scan_type scan_type
Definition: iio_pulsar_adc.h:61
@ IIO_VAL_INT
Definition: iio_types.h:50
Struct describing the scan type.
Definition: iio_types.h:168
char sign
Definition: iio_types.h:153
struct iio_channel * channels
Definition: iio_types.h:254
int32_t pulsar_adc_spi_reg_write(struct pulsar_adc_dev *dev, uint8_t reg_data)
Definition: pulsar_adc.c:134
@ IIO_VAL_FRACTIONAL_LOG2
Definition: iio_types.h:56
void * dev
Definition: iio_types.h:227
Structure holding channel attributess.
Definition: iio_types.h:103
int pulsar_adc_iio_init(struct pulsar_adc_iio_dev **dev, struct pulsar_adc_iio_init_param *iio_init_param)
Initialize PULSAR_ADC for IIO interfacing.
Definition: iio_pulsar_adc.c:179
bool is_big_endian
Definition: iio_types.h:161
uint8_t storagebits
Definition: iio_types.h:157
Definition: pulsar_adc.h:119
Definition: ad9361_util.h:69
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
int iio_buffer_block_done(struct iio_buffer *buffer)
Definition: iio.c:1422
int pulsar_adc_iio_init(struct pulsar_adc_iio_dev **dev, struct pulsar_adc_iio_init_param *iio_init_param)
Initialize PULSAR_ADC for IIO interfacing.
Definition: iio_pulsar_adc.c:179
uint32_t ref_voltage_mv
Definition: iio_pulsar_adc.h:59
uint32_t ref_voltage_mv
Definition: iio_pulsar_adc.h:71
uint8_t shift
Definition: iio_types.h:159
const char * name
Definition: iio_types.h:131
pulsar_adc IIO initialization structure
Definition: iio_pulsar_adc.h:68
const char * name
Definition: iio_types.h:170
char sign
Definition: pulsar_adc.h:92
int pulsar_adc_iio_remove(struct pulsar_adc_iio_dev *iio_dev)
Release resources.
Definition: iio_pulsar_adc.c:218
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
int32_t pulsar_adc_remove(struct pulsar_adc_dev *dev)
Free the resources allocated by pulsar_adc_init().
Definition: pulsar_adc.c:386
Definition: iio_types.h:209
int pulsar_adc_iio_remove(struct pulsar_adc_iio_dev *dev)
Release resources.
Definition: iio_pulsar_adc.c:218
Definition: pulsar_adc.h:96
@ IIO_VOLTAGE
Definition: iio_types.h:65
Header file for PULSAR_ADC IIO interface.
struct iio_buffer * buffer
Definition: iio_types.h:228
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:686
int32_t pulsar_adc_init(struct pulsar_adc_dev **device, struct pulsar_adc_init_param *init_param)
Definition: pulsar_adc.c:296
Header file for iio_types.
uint16_t num_ch
Definition: iio_types.h:252
struct scan_type * scan_type
Definition: iio_types.h:184
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
pulsar_adc IIO device structure
Definition: iio_pulsar_adc.h:53
uint16_t resolution
Definition: pulsar_adc.h:91
struct pulsar_adc_init_param * init_param
Definition: iio_pulsar_adc.h:69
int16_t ch_num
Definition: iio_types.h:105
int32_t pulsar_adc_read_data(struct pulsar_adc_dev *dev, uint32_t *buf, uint16_t samples)
Definition: pulsar_adc.c:267
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
int32_t pulsar_adc_spi_reg_read(struct pulsar_adc_dev *dev, uint8_t *reg_data)
Definition: pulsar_adc.c:89
const struct pulsar_adc_dev_info * dev_info
Definition: pulsar_adc.h:112
Definition: iio_types.h:151
struct iio_device * iio_dev
Definition: iio_pulsar_adc.h:57
int iio_buffer_get_block(struct iio_buffer *buffer, void **addr)
Definition: iio.c:1409
Header file of utility functions.
Definition: iio_types.h:226
int32_t no_os_sign_extend32(uint32_t value, int index)
struct pulsar_adc_dev * pulsar_adc_dev
Definition: iio_pulsar_adc.h:55
Header file for pulsar_adc Driver.
uint8_t realbits
Definition: iio_types.h:155