Go to the documentation of this file.
50 #define ADPD1080_CHANNEL_NO 8
51 #define APDP1080_WORD_BIT_SIZE 16
52 #define ADPD1080_BITS_PER_SAMPLE 32
53 #define ADPD1080_WORDS_PER_SAMPLE \
54 (ADPD1080_BITS_PER_SAMPLE / APDP1080_WORD_BIT_SIZE)
int32_t adpd188_iio_remove(struct adpd188_iio_desc *dev)
Free mmory allocated by adpd188_iio_init().
Definition: iio_adpd188.c:557
#define ADPD188_PD_LED_SELECT_SLOTB_PD_SEL_MASK
Definition: adpd188.h:230
int32_t adpd188_adc_fsample_set(struct adpd188_dev *dev, uint16_t freq_hz)
Set sample frequency of the ADC.
Definition: adpd188.c:631
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:118
struct adpd188_dev * drv_dev
Definition: iio_adpd188.h:61
#define ADPD188_REG_NUM_AVG
Definition: adpd188.h:72
Struct describing the scan type.
Definition: iio_types.h:170
char sign
Definition: iio_types.h:155
#define ADPD188_PD_LED_SELECT_SLOTA_LED_SEL_MASK
Definition: adpd188.h:233
int32_t adpd188_mode_set(struct adpd188_dev *dev, enum adpd188_mode new_mode)
Set the mode of operation of the ADPD188.
Definition: adpd188.c:267
@ ADPD188_NORMAL
Definition: adpd188.h:546
#define ADPD188_REG_SAMPLE_CLK
Definition: adpd188.h:105
#define ADPD188_REG_FIFO_ACCESS
Definition: adpd188.h:116
Definition: iio_adpd188.h:60
#define ADPD1080_WORDS_PER_SAMPLE
Definition: iio_adpd188.h:53
Structure holding channel attributess.
Definition: iio_types.h:105
ADPD188 driver header file.
@ ADPD188_32BIT_4CHAN
Definition: adpd188.h:641
#define NO_OS_IS_ERR_VALUE(x)
Definition: no_os_error.h:56
@ ADPD188_PROGRAM
Definition: adpd188.h:544
Definition: ad9361_util.h:75
#define ADPD188_SAMPLE_CLK_CLK32K_EN_MASK
Definition: adpd188.h:411
enum adpd188_slots slot_id
Definition: adpd188.h:650
Header of the ADPD188 IIO driver.
void * no_os_calloc(size_t nitems, size_t size)
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:53
int32_t adpd188_adc_fsample_get(struct adpd188_dev *dev, uint16_t *freq_hz)
Get sample frequency of the ADC.
Definition: adpd188.c:649
int channel
Definition: iio_types.h:176
#define ADPD188_REG_PD_LED_SELECT
Definition: adpd188.h:71
#define ADPD188_PD_LED_SELECT_SLOTA_LED_SEL_POS
Definition: adpd188.h:237
const char * name
Definition: iio_types.h:133
int32_t adpd188_iio_remove(struct adpd188_iio_desc *dev)
Free mmory allocated by adpd188_iio_init().
Definition: iio_adpd188.c:557
int32_t adpd188_reg_write(struct adpd188_dev *dev, uint8_t reg_addr, uint16_t reg_val)
Write one 16 bit register of the ADPD188.
Definition: adpd188.c:211
#define ADPD188_PD_LED_SELECT_SLOTA_PD_SEL_POS
Definition: adpd188.h:235
@ ADPD188_STANDBY
Definition: adpd188.h:542
int32_t adpd188_reg_read(struct adpd188_dev *dev, uint8_t reg_addr, uint16_t *reg_val)
Read one 16 bit register of the ADPD188.
Definition: adpd188.c:173
Slot configuration initialization structure.
Definition: adpd188.h:648
Structure holding pointers to show and store functions.
Definition: iio_types.h:131
struct scan_type adpd188_iio_scan_type
Definition: iio_adpd188.c:94
#define ADPD188_PD_LED_SELECT_SLOTB_LED_SEL_MASK
Definition: adpd188.h:232
@ ADPD188_SLOTB
Definition: adpd188.h:624
int32_t adpd188_remove(struct adpd188_dev *dev)
Free resources allocated by adpd188_init().
Definition: adpd188.c:141
Definition: iio_adpd188.h:56
struct iio_device iio_adpd188_device
Definition: iio_adpd188.c:570
Driver initialization structure.
Definition: adpd188.h:678
struct iio_attribute * attributes
Definition: iio_types.h:188
uint16_t num_ch
Definition: iio_types.h:252
void no_os_free(void *ptr)
int32_t adpd188_fifo_status_get(struct adpd188_dev *dev, uint8_t *bytes_no)
Get the number of bytes currently present in FIFO.
Definition: adpd188.c:282
int32_t adpd188_slot_setup(struct adpd188_dev *dev, struct adpd188_slot_config config)
Enable slot and setup its FIFO interaction.
Definition: adpd188.c:594
#define ADPD188_IIO_CHANN_DEF(nm, ch1)
Definition: iio_adpd188.c:102
#define ADPD188_PD_LED_SELECT_SLOTB_PD_SEL_POS
Definition: adpd188.h:234
struct adpd188_init_param drv_init_param
Definition: iio_adpd188.h:57
#define NULL
Definition: wrapper.h:64
int32_t adpd188_iio_init(struct adpd188_iio_desc **device, struct adpd188_iio_init_param *init_param)
Initialize the IIO driver and allocate memory.
Definition: iio_adpd188.c:467
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:96
int16_t ch_num
Definition: iio_types.h:107
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
uint8_t ch_mask
Definition: iio_adpd188.h:62
Definition: iio_types.h:153
#define ADPD188_PD_LED_SELECT_SLOTB_LED_SEL_POS
Definition: adpd188.h:236
Driver descriptor structure.
Definition: adpd188.h:661
#define ADPD1080_CHANNEL_NO
Definition: iio_adpd188.h:50
@ ADPD188_SLOTA
Definition: adpd188.h:622
Header file of utility functions.
#define ADPD188_REG_SLOTA_CH1_OFFSET
Definition: adpd188.h:75
int32_t adpd188_iio_init(struct adpd188_iio_desc **device, struct adpd188_iio_init_param *init_param)
Initialize the IIO driver and allocate memory.
Definition: iio_adpd188.c:467
#define ADPD188_PD_LED_SELECT_SLOTA_PD_SEL_MASK
Definition: adpd188.h:231
struct iio_device iio_adpd188_device
Definition: iio_adpd188.c:570
int32_t adpd188_init(struct adpd188_dev **device, struct adpd188_init_param *init_param)
Initialize the ADPD188 driver.
Definition: adpd188.c:61