precision-converters-firmware
|
Pocket lab GUI IIO wrapper interfaces. More...
#include <stdint.h>
#include "iio.h"
Go to the source code of this file.
Functions | |
int32_t | pl_gui_save_dev_param_desc (struct iio_init_param *param) |
Save the iio init params descriptor for future use. More... | |
int32_t | pl_gui_get_dev_names (char *dev_names) |
Get IIO device names. More... | |
int32_t | pl_gui_get_chn_names (char *chn_names, uint32_t *nb_of_chn, uint32_t dev_indx) |
Get IIO channels names. More... | |
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) More... | |
int32_t | pl_gui_get_global_attr_names (char *attr_names, uint32_t dev_indx) |
Get IIO global attributes names. More... | |
int32_t | pl_gui_get_chn_attr_names (char *attr_names, uint32_t chn_indx, uint32_t dev_indx) |
Get IIO channel attributes names. More... | |
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. More... | |
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. More... | |
int32_t | pl_gui_read_global_attr (const char *attr_name, char *attr_val, uint32_t dev_indx) |
Read global attr value. More... | |
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. More... | |
int32_t | pl_gui_write_global_attr (const char *attr_name, char *attr_val, uint32_t dev_indx) |
Write global attr value. More... | |
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. More... | |
int32_t | pl_gui_read_reg (uint32_t addr, uint32_t *data, uint32_t dev_indx) |
Read register value. More... | |
int32_t | pl_gui_write_reg (uint32_t addr, uint32_t data, uint32_t dev_indx) |
Write register value. More... | |
int32_t | pl_gui_get_dmm_reading (char *val, uint32_t chn_indx, uint32_t dev_indx) |
Get DMM reading. More... | |
int32_t | pl_gui_read_chn_info (struct scan_type *chn_info, uint32_t chn_indx, uint32_t dev_indx) |
Read channel scan info. More... | |
Pocket lab GUI IIO wrapper interfaces.
Copyright (c) 2023 Analog Devices, Inc. All rights reserved.
This software is proprietary to Analog Devices, Inc. and its licensors. By using this software you agree to the terms of the associated Analog Devices Software License Agreement.
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.
attr_name[in] | - Attribute name |
attr_val[in,out] | - Attribute values/options |
chn_indx[in] | - Current channel index |
dev_indx[in] | - Current device index |
int32_t pl_gui_get_chn_attr_names | ( | char * | attr_names, |
uint32_t | chn_indx, | ||
uint32_t | dev_indx | ||
) |
Get IIO channel attributes names.
attr_names[in,out] | - Attribute names |
chn_indx[in] | - Current channel index |
dev_indx[in] | - Current device index |
int32_t pl_gui_get_chn_names | ( | char * | chn_names, |
uint32_t * | nb_of_chn, | ||
uint32_t | dev_indx | ||
) |
Get IIO channels names.
chn_names[in,out] | - Channel names string |
nb_of_chn[in,out] | - Channels count |
dev_indx[in] | - Current device index |
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)
chn_unit[in,out] | - Channel unit string |
chn_indx[in] | - Current channel index |
dev_indx[in] | - Current device index |
int32_t pl_gui_get_dev_names | ( | char * | dev_names | ) |
Get IIO device names.
dev_names[in,out] | - Device names string |
int32_t pl_gui_get_dmm_reading | ( | char * | val, |
uint32_t | chn_indx, | ||
uint32_t | dev_indx | ||
) |
Get DMM reading.
val[in,out] | - DMM reading |
chn_indx[in] | - Current channel index |
dev_indx[in] | - Current device index |
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.
attr_name[in] | - Attribute name |
attr_val[in,out] | - Attribute values/options |
dev_indx[in] | - Current device index |
int32_t pl_gui_get_global_attr_names | ( | char * | attr_names, |
uint32_t | dev_indx | ||
) |
Get IIO global attributes names.
attr_names[in,out] | - Attribute names string |
dev_indx[in] | - Current device index |
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.
attr_name[in] | - Attribute name |
attr_val[in,out] | - Attribute value |
chn_indx[in] | - Current channel index |
dev_indx[in] | - Current device index |
int32_t pl_gui_read_chn_info | ( | struct scan_type * | chn_info, |
uint32_t | chn_indx, | ||
uint32_t | dev_indx | ||
) |
Read channel scan info.
chn_info[in,out] | - Channel scan info |
chn_indx[in] | - Current channel index |
dev_indx[in] | - Current device index |
int32_t pl_gui_read_global_attr | ( | const char * | attr_name, |
char * | attr_val, | ||
uint32_t | dev_indx | ||
) |
Read global attr value.
attr_name[in] | - Attribute name |
attr_val[in,out] | - Attribute value |
dev_indx[in] | - Current device index |
int32_t pl_gui_read_reg | ( | uint32_t | addr, |
uint32_t * | data, | ||
uint32_t | dev_indx | ||
) |
Read register value.
addr[in] | - Register address |
data[in,out] | - Register value |
dev_indx[in] | - Current device index |
int32_t pl_gui_save_dev_param_desc | ( | struct iio_init_param * | param | ) |
Save the iio init params descriptor for future use.
param[in] | - IIO init parameters structure pointer |
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.
attr_name[in] | - Attribute name |
attr_val[in] | - Attribute value |
chn_indx[in] | - Current channel index |
dev_indx[in] | - Current device index |
int32_t pl_gui_write_global_attr | ( | const char * | attr_name, |
char * | attr_val, | ||
uint32_t | dev_indx | ||
) |
Write global attr value.
attr_names[in] | - Attribute name |
attr_val[in] | - Attribute value |
dev_indx[in] | - Current device index |
int32_t pl_gui_write_reg | ( | uint32_t | addr, |
uint32_t | data, | ||
uint32_t | dev_indx | ||
) |
Write register value.
addr[in] | - Register address |
data[in] | - Register value |
dev_indx[in] | - Current device index |