#include "iio_pqm.h"
Macros | |
#define | PQM_VOLTAGE_CHANNEL(_idx, _scan_idx, _name) |
#define | PQM_CURRENT_CHANNEL(_idx, _scan_idx, _name) |
#define | PQM_EVENT_CHANNEL(_idx, _scan_idx, _name, _attrb_def) |
#define | EVENT_COMMON_ATTR |
Functions | |
int | read_pqm_attr (void *device, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t attr_id) |
Read a pqm device attribute. | |
int | write_pqm_attr (void *device, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t attr_id) |
Write a pqm device attribute. | |
int | read_ch_attr (void *device, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t attr_id) |
Read a channel attribute. | |
int32_t | read_samples (struct iio_device_data *dev_data) |
function for reading samples from the device. | |
int32_t | pqm_trigger_handler (struct iio_device_data *dev_data) |
Handles trigger: reads one data-set and writes it to the buffer. | |
Variables | |
volatile bool | configChanged = false |
volatile bool | processData = true |
struct iio_attribute | voltage_pqm_attributes [] |
struct iio_attribute | current_pqm_attributes [] |
struct iio_attribute | global_pqm_attributes [] |
struct iio_attribute | event_pqm_dips_attribute [] |
struct iio_attribute | event_pqm_swell_attribute [] |
struct iio_attribute | event_pqm_rvc_attribute [] |
struct iio_attribute | event_pqm_intrpr_attribute [] |
struct scan_type | pqm_scan_type |
struct iio_device | pqm_iio_descriptor |
#define EVENT_COMMON_ATTR |
#define PQM_CURRENT_CHANNEL | ( | _idx, | |
_scan_idx, | |||
_name ) |
#define PQM_EVENT_CHANNEL | ( | _idx, | |
_scan_idx, | |||
_name, | |||
_attrb_def ) |
#define PQM_VOLTAGE_CHANNEL | ( | _idx, | |
_scan_idx, | |||
_name ) |
int32_t pqm_trigger_handler | ( | struct iio_device_data * | dev_data | ) |
Handles trigger: reads one data-set and writes it to the buffer.
dev_data | - The iio device data structure. |
int read_ch_attr | ( | void * | device, |
char * | buf, | ||
uint32_t | len, | ||
const struct iio_ch_info * | channel, | ||
intptr_t | attr_id ) |
Read a channel attribute.
device | - The iio device structure |
buf | - Buffer to be filled with requested data |
len | - Length of the received command buffer in bytes |
channel | - Command channel info |
attr_id | - attribute descriptor |
int read_pqm_attr | ( | void * | device, |
char * | buf, | ||
uint32_t | len, | ||
const struct iio_ch_info * | channel, | ||
intptr_t | attr_id ) |
Read a pqm device attribute.
device | - The iio device structure |
buf | - Buffer to be filled with requested data |
len | - Length of the received command buffer in bytes |
channel | - Command channel info |
attr_id | - attribute descriptor |
int32_t read_samples | ( | struct iio_device_data * | dev_data | ) |
function for reading samples from the device.
dev_data | - The iio device data structure. |
int write_pqm_attr | ( | void * | device, |
char * | buf, | ||
uint32_t | len, | ||
const struct iio_ch_info * | channel, | ||
intptr_t | attr_id ) |
Write a pqm device attribute.
device | - The iio device structure |
buf | - Buffer to be filled with requested data |
len | - Length of the received command buffer in bytes |
channel | - Command channel info |
attr_id | - attribute descriptor |
struct iio_attribute current_pqm_attributes[] |
struct iio_attribute event_pqm_dips_attribute[] |
struct iio_attribute event_pqm_intrpr_attribute[] |
struct iio_attribute event_pqm_rvc_attribute[] |
struct iio_attribute event_pqm_swell_attribute[] |
struct iio_attribute global_pqm_attributes[] |
struct iio_device pqm_iio_descriptor |
struct scan_type pqm_scan_type |
struct iio_attribute voltage_pqm_attributes[] |