precision-converters-firmware
pl_gui_iio_wrapper.h
Go to the documentation of this file.
1 /*************************************************************************/
13 #ifndef _PL_GUI_IIO_WRAPPER_
14 #define _PL_GUI_IIO_WRAPPER_
15 
16 /******************************************************************************/
17 /***************************** Include Files **********************************/
18 /******************************************************************************/
19 
20 #include <stdint.h>
21 #include "iio.h"
22 
23 /******************************************************************************/
24 /********************** Macros and Constants Definition ***********************/
25 /******************************************************************************/
26 
27 /******************************************************************************/
28 /************************ Public Declarations *********************************/
29 /******************************************************************************/
30 
31 int32_t pl_gui_save_dev_param_desc(struct iio_init_param *param);
32 int32_t pl_gui_get_dev_names(char *dev_names);
33 int32_t pl_gui_get_chn_names(char *chn_names, uint32_t *nb_of_chn,
34  uint32_t dev_indx);
35 int32_t pl_gui_get_chn_unit(char *chn_unit, uint32_t chn_indx,
36  uint32_t dev_indx);
37 int32_t pl_gui_get_global_attr_names(char *attr_names, uint32_t dev_indx);
38 int32_t pl_gui_get_chn_attr_names(char *attr_names, uint32_t chn_indx,
39  uint32_t dev_indx);
40 int32_t pl_gui_get_global_attr_avail_options(const char *attr_name,
41  char *attr_val, uint32_t dev_indx);
42 int32_t pl_gui_get_chn_attr_avail_options(const char *attr_name,
43  char *attr_val, uint32_t chn_indx, uint32_t dev_indx);
44 int32_t pl_gui_read_global_attr(const char *attr_name, char *attr_val,
45  uint32_t dev_indx);
46 int32_t pl_gui_read_chn_attr(char *attr_name, char *attr_val,
47  uint32_t chn_indx, uint32_t dev_indx);
48 int32_t pl_gui_write_global_attr(const char *attr_name, char *attr_val,
49  uint32_t dev_indx);
50 int32_t pl_gui_write_chn_attr(const char *attr_name, char *attr_val,
51  uint32_t chn_indx, uint32_t dev_indx);
52 int32_t pl_gui_read_reg(uint32_t addr, uint32_t *data, uint32_t dev_indx);
53 int32_t pl_gui_write_reg(uint32_t addr, uint32_t data, uint32_t dev_indx);
54 int32_t pl_gui_get_dmm_reading(char *val, uint32_t chn_indx, uint32_t dev_indx);
55 int32_t pl_gui_read_chn_info(struct scan_type *chn_info, uint32_t chn_indx,
56  uint32_t dev_indx);
57 
58 #endif // _PL_GUI_IIO_WRAPPER_
int32_t pl_gui_read_global_attr(const char *attr_name, char *attr_val, uint32_t dev_indx)
Read global attr value.
Definition: pl_gui_iio_wrapper.c:323
int32_t pl_gui_write_reg(uint32_t addr, uint32_t data, uint32_t dev_indx)
Write register value.
Definition: pl_gui_iio_wrapper.c:518
int32_t pl_gui_write_global_attr(const char *attr_name, char *attr_val, uint32_t dev_indx)
Write global attr value.
Definition: pl_gui_iio_wrapper.c:409
int32_t pl_gui_get_dmm_reading(char *val, uint32_t chn_indx, uint32_t dev_indx)
Get DMM reading.
Definition: pl_gui_iio_wrapper.c:540
int32_t pl_gui_get_global_attr_names(char *attr_names, uint32_t dev_indx)
Get IIO global attributes names.
Definition: pl_gui_iio_wrapper.c:165
int32_t pl_gui_read_chn_info(struct scan_type *chn_info, uint32_t chn_indx, uint32_t dev_indx)
Read channel scan info.
Definition: pl_gui_iio_wrapper.c:632
int32_t pl_gui_get_chn_attr_names(char *attr_names, uint32_t chn_indx, uint32_t dev_indx)
Get IIO channel attributes names.
Definition: pl_gui_iio_wrapper.c:195
int32_t pl_gui_read_reg(uint32_t addr, uint32_t *data, uint32_t dev_indx)
Read register value.
Definition: pl_gui_iio_wrapper.c:496
int32_t pl_gui_get_chn_names(char *chn_names, uint32_t *nb_of_chn, uint32_t dev_indx)
Get IIO channels names.
Definition: pl_gui_iio_wrapper.c:89
int32_t pl_gui_get_dev_names(char *dev_names)
Get IIO device names.
Definition: pl_gui_iio_wrapper.c:64
int32_t pl_gui_get_global_attr_avail_options(const char *attr_name, char *attr_val, uint32_t dev_indx)
Get global available attributes options.
Definition: pl_gui_iio_wrapper.c:228
int32_t pl_gui_read_chn_attr(char *attr_name, char *attr_val, uint32_t chn_indx, uint32_t dev_indx)
Read channel attr value.
Definition: pl_gui_iio_wrapper.c:364
int32_t pl_gui_write_chn_attr(const char *attr_name, char *attr_val, uint32_t chn_indx, uint32_t dev_indx)
Write channel attr value.
Definition: pl_gui_iio_wrapper.c:451
int32_t pl_gui_get_chn_attr_avail_options(const char *attr_name, char *attr_val, uint32_t chn_indx, uint32_t dev_indx)
Get channel available attributes options.
Definition: pl_gui_iio_wrapper.c:273
int32_t pl_gui_save_dev_param_desc(struct iio_init_param *param)
Save the iio init params descriptor for future use.
Definition: pl_gui_iio_wrapper.c:48
int32_t pl_gui_get_chn_unit(char *chn_unit, uint32_t chn_indx, uint32_t dev_indx)
Get IIO channels unit type (in string format)
Definition: pl_gui_iio_wrapper.c:120