no-OS
iio_adpd410x.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef IIO_ADPD410X_H
35 #define IIO_ADPD410X_H
36 
37 /******************************************************************************/
38 /***************************** Include Files **********************************/
39 /******************************************************************************/
40 
41 #include "iio_types.h"
42 
43 /******************************************************************************/
44 /********************** Macros and Constants Definitions **********************/
45 /******************************************************************************/
46 
48 extern struct iio_device const adpd410x_iio_descriptor;
49 
50 #endif //IIO_ADPD410X_H
END_ATTRIBUTES_ARRAY
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
iio_channel
Struct describing the scan type.
Definition: iio_types.h:168
scan_type::sign
char sign
Definition: iio_types.h:153
adpd410x_iio_descriptor
struct iio_device const adpd410x_iio_descriptor
Definition: iio_adpd410x.c:396
sampling_freq
uint64_t sampling_freq
Definition: headless.c:73
adpd410x_get_opmode
int32_t adpd410x_get_opmode(struct adpd410x_dev *dev, enum adpd410x_opmode *mode)
Get operation mode.
Definition: adpd410x.c:244
iio_ch_info
Structure holding channel attributess.
Definition: iio_types.h:103
adpd410x_iio_descriptor
struct iio_device const adpd410x_iio_descriptor
Definition: iio_adpd410x.c:396
ADPD410X_GOMODE
@ ADPD410X_GOMODE
Definition: adpd410x.h:923
device
Definition: ad9361_util.h:69
NO_OS_ARRAY_SIZE
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
no_os_str_to_uint32
uint32_t no_os_str_to_uint32(const char *str)
adpd410x_set_last_timeslot
int32_t adpd410x_set_last_timeslot(struct adpd410x_dev *dev, enum adpd410x_timeslots timeslot_no)
Set number of active time slots.
Definition: adpd410x.c:265
no_os_error.h
Error codes definition.
iio_attribute::name
const char * name
Definition: iio_types.h:131
adpd410x_dev
Device driver handler.
Definition: adpd410x.h:1178
adpd410x_get_last_timeslot
int32_t adpd410x_get_last_timeslot(struct adpd410x_dev *dev, enum adpd410x_timeslots *timeslot_no)
Get number of active time slots.
Definition: adpd410x.c:278
iio_attribute
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
ADPD410X_STANDBY
@ ADPD410X_STANDBY
Definition: adpd410x.h:921
adpd410x_opmode
adpd410x_opmode
Operation modes of the device.
Definition: adpd410x.h:919
adpd410x_get_sampling_freq
int32_t adpd410x_get_sampling_freq(struct adpd410x_dev *dev, uint32_t *sampling_freq)
Get device sampling frequency.
Definition: adpd410x.c:334
iio_channel::attributes
struct iio_attribute * attributes
Definition: iio_types.h:186
iio_types.h
Header file for iio_types.
iio_device::num_ch
uint16_t num_ch
Definition: iio_types.h:252
NULL
#define NULL
Definition: wrapper.h:64
adpd410x_set_sampling_freq
int32_t adpd410x_set_sampling_freq(struct adpd410x_dev *dev, uint32_t sampling_freq)
Set device sampling frequency.
Definition: adpd410x.c:299
iio_ch_info::ch_num
int16_t ch_num
Definition: iio_types.h:105
iio_device
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
adpd410x_get_data
int32_t adpd410x_get_data(struct adpd410x_dev *dev, uint32_t *data)
Get a full data packet from the device containing data from all active time slots.
Definition: adpd410x.c:626
adpd410x_reg_read
int32_t adpd410x_reg_read(struct adpd410x_dev *dev, uint16_t address, uint16_t *data)
Read device register.
Definition: adpd410x.c:56
ADPD410X_IIO_NUM_CH
#define ADPD410X_IIO_NUM_CH
Definition: iio_adpd410x.c:50
scan_type
Definition: iio_types.h:151
no_os_util.h
Header file of utility functions.
adpd410x.h
ADPD410X_IIO_CHANN_DEF
#define ADPD410X_IIO_CHANN_DEF(nm, ch)
Definition: iio_adpd410x.c:339
adpd410x_reg_write
int32_t adpd410x_reg_write(struct adpd410x_dev *dev, uint16_t address, uint16_t data)
Write device register.
Definition: adpd410x.c:138
adpd410x_set_opmode
int32_t adpd410x_set_opmode(struct adpd410x_dev *dev, enum adpd410x_opmode mode)
Set operation mode.
Definition: adpd410x.c:231