no-OS
iio_adpd410x.h
Go to the documentation of this file.
1 /***************************************************************************/
40 #ifndef IIO_ADPD410X_H
41 #define IIO_ADPD410X_H
42 
43 /******************************************************************************/
44 /***************************** Include Files **********************************/
45 /******************************************************************************/
46 
47 #include "iio_types.h"
48 
49 /******************************************************************************/
50 /********************** Macros and Constants Definitions **********************/
51 /******************************************************************************/
52 
54 extern struct iio_device const adpd410x_iio_descriptor;
55 
56 #endif //IIO_ADPD410X_H
END_ATTRIBUTES_ARRAY
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:114
iio_channel
Struct describing the scan type.
Definition: iio_types.h:177
scan_type::sign
char sign
Definition: iio_types.h:162
adpd410x_iio_descriptor
struct iio_device const adpd410x_iio_descriptor
Definition: iio_adpd410x.c:402
sampling_freq
uint64_t sampling_freq
Definition: headless.c:78
adpd410x_get_opmode
int32_t adpd410x_get_opmode(struct adpd410x_dev *dev, enum adpd410x_opmode *mode)
Get operation mode.
Definition: adpd410x.c:249
iio_ch_info
Structure holding channel attributess.
Definition: iio_types.h:101
adpd410x_iio_descriptor
struct iio_device const adpd410x_iio_descriptor
Definition: iio_adpd410x.c:402
ADPD410X_GOMODE
@ ADPD410X_GOMODE
Definition: adpd410x.h:929
device
Definition: ad9361_util.h:75
NO_OS_ARRAY_SIZE
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:53
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:270
no_os_error.h
Error codes definition.
iio_attribute::name
const char * name
Definition: iio_types.h:140
adpd410x_dev
Device driver handler.
Definition: adpd410x.h:1184
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:283
iio_attribute
Structure holding pointers to show and store functions.
Definition: iio_types.h:138
ADPD410X_STANDBY
@ ADPD410X_STANDBY
Definition: adpd410x.h:927
adpd410x_opmode
adpd410x_opmode
Operation modes of the device.
Definition: adpd410x.h:925
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:339
iio_channel::attributes
struct iio_attribute * attributes
Definition: iio_types.h:195
iio_types.h
Header file for iio_types.
iio_device::num_ch
uint16_t num_ch
Definition: iio_types.h:259
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:304
iio_ch_info::ch_num
int16_t ch_num
Definition: iio_types.h:103
iio_device
Structure holding channels and attributes of a device.
Definition: iio_types.h:254
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:630
adpd410x_reg_read
int32_t adpd410x_reg_read(struct adpd410x_dev *dev, uint16_t address, uint16_t *data)
Read device register.
Definition: adpd410x.c:61
ADPD410X_IIO_NUM_CH
#define ADPD410X_IIO_NUM_CH
Definition: iio_adpd410x.c:56
scan_type
Definition: iio_types.h:160
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:345
adpd410x_reg_write
int32_t adpd410x_reg_write(struct adpd410x_dev *dev, uint16_t address, uint16_t data)
Write device register.
Definition: adpd410x.c:143
adpd410x_set_opmode
int32_t adpd410x_set_opmode(struct adpd410x_dev *dev, enum adpd410x_opmode mode)
Set operation mode.
Definition: adpd410x.c:236