Go to the documentation of this file.
44 #define ADPD1080_CHANNEL_NO 8
45 #define ADPD1080_WORD_BIT_SIZE 16
46 #define ADPD1080_BITS_PER_SAMPLE 32
47 #define ADPD1080_WORDS_PER_SAMPLE \
48 (ADPD1080_BITS_PER_SAMPLE / ADPD1080_WORD_BIT_SIZE)
int32_t adpd188_iio_remove(struct adpd188_iio_desc *dev)
Free mmory allocated by adpd188_iio_init().
Definition: iio_adpd188.c:551
#define ADPD188_PD_LED_SELECT_SLOTB_PD_SEL_MASK
Definition: adpd188.h:224
int32_t adpd188_adc_fsample_set(struct adpd188_dev *dev, uint16_t freq_hz)
Set sample frequency of the ADC.
Definition: adpd188.c:625
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
struct adpd188_dev * drv_dev
Definition: iio_adpd188.h:55
#define ADPD188_REG_NUM_AVG
Definition: adpd188.h:66
Struct describing the scan type.
Definition: iio_types.h:168
char sign
Definition: iio_types.h:153
#define ADPD188_PD_LED_SELECT_SLOTA_LED_SEL_MASK
Definition: adpd188.h:227
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:261
@ ADPD188_NORMAL
Definition: adpd188.h:540
#define ADPD188_REG_SAMPLE_CLK
Definition: adpd188.h:99
#define ADPD188_REG_FIFO_ACCESS
Definition: adpd188.h:110
Definition: iio_adpd188.h:54
#define ADPD1080_WORDS_PER_SAMPLE
Definition: iio_adpd188.h:47
Structure holding channel attributess.
Definition: iio_types.h:103
ADPD188 driver header file.
@ ADPD188_32BIT_4CHAN
Definition: adpd188.h:635
#define NO_OS_IS_ERR_VALUE(x)
Definition: no_os_error.h:50
@ ADPD188_PROGRAM
Definition: adpd188.h:538
Definition: ad9361_util.h:69
#define ADPD188_SAMPLE_CLK_CLK32K_EN_MASK
Definition: adpd188.h:405
enum adpd188_slots slot_id
Definition: adpd188.h:644
Header of the ADPD188 IIO driver.
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
int32_t adpd188_adc_fsample_get(struct adpd188_dev *dev, uint16_t *freq_hz)
Get sample frequency of the ADC.
Definition: adpd188.c:643
int channel
Definition: iio_types.h:174
#define ADPD188_REG_PD_LED_SELECT
Definition: adpd188.h:65
#define ADPD188_PD_LED_SELECT_SLOTA_LED_SEL_POS
Definition: adpd188.h:231
const char * name
Definition: iio_types.h:131
int32_t adpd188_iio_remove(struct adpd188_iio_desc *dev)
Free mmory allocated by adpd188_iio_init().
Definition: iio_adpd188.c:551
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:205
#define ADPD188_PD_LED_SELECT_SLOTA_PD_SEL_POS
Definition: adpd188.h:229
@ ADPD188_STANDBY
Definition: adpd188.h:536
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:167
Slot configuration initialization structure.
Definition: adpd188.h:642
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
struct scan_type adpd188_iio_scan_type
Definition: iio_adpd188.c:88
#define ADPD188_PD_LED_SELECT_SLOTB_LED_SEL_MASK
Definition: adpd188.h:226
@ ADPD188_SLOTB
Definition: adpd188.h:618
int32_t adpd188_remove(struct adpd188_dev *dev)
Free resources allocated by adpd188_init().
Definition: adpd188.c:135
Definition: iio_adpd188.h:50
struct iio_device iio_adpd188_device
Definition: iio_adpd188.c:564
Driver initialization structure.
Definition: adpd188.h:672
struct iio_attribute * attributes
Definition: iio_types.h:186
uint16_t num_ch
Definition: iio_types.h:252
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 adpd188_fifo_status_get(struct adpd188_dev *dev, uint8_t *bytes_no)
Get the number of bytes currently present in FIFO.
Definition: adpd188.c:276
int32_t adpd188_slot_setup(struct adpd188_dev *dev, struct adpd188_slot_config config)
Enable slot and setup its FIFO interaction.
Definition: adpd188.c:588
#define ADPD188_IIO_CHANN_DEF(nm, ch1)
Definition: iio_adpd188.c:96
#define ADPD188_PD_LED_SELECT_SLOTB_PD_SEL_POS
Definition: adpd188.h:228
struct adpd188_init_param drv_init_param
Definition: iio_adpd188.h:51
#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:461
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
int16_t ch_num
Definition: iio_types.h:105
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
uint8_t ch_mask
Definition: iio_adpd188.h:56
Definition: iio_types.h:151
#define ADPD188_PD_LED_SELECT_SLOTB_LED_SEL_POS
Definition: adpd188.h:230
Driver descriptor structure.
Definition: adpd188.h:655
#define ADPD1080_CHANNEL_NO
Definition: iio_adpd188.h:44
@ ADPD188_SLOTA
Definition: adpd188.h:616
Header file of utility functions.
#define ADPD188_REG_SLOTA_CH1_OFFSET
Definition: adpd188.h:69
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:461
#define ADPD188_PD_LED_SELECT_SLOTA_PD_SEL_MASK
Definition: adpd188.h:225
struct iio_device iio_adpd188_device
Definition: iio_adpd188.c:564
int32_t adpd188_init(struct adpd188_dev **device, struct adpd188_init_param *init_param)
Initialize the ADPD188 driver.
Definition: adpd188.c:55