libsigrok  0.3.0
sigrok hardware access and backend library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
sr_datafeed_analog Struct Reference

Analog datafeed payload for type SR_DF_ANALOG. More...

#include <libsigrok.h>

+ Collaboration diagram for sr_datafeed_analog:

Data Fields

GSList * channels
 The channels for which data is included in this packet. More...
 
int num_samples
 Number of samples in data. More...
 
int mq
 Measured quantity (voltage, current, temperature, and so on). More...
 
int unit
 Unit in which the MQ is measured. More...
 
uint64_t mqflags
 Bitmap with extra information about the MQ. More...
 
float * data
 The analog value(s). More...
 

Detailed Description

Analog datafeed payload for type SR_DF_ANALOG.

Definition at line 342 of file libsigrok.h.

Field Documentation

GSList* sr_datafeed_analog::channels

The channels for which data is included in this packet.

Definition at line 344 of file libsigrok.h.

float* sr_datafeed_analog::data

The analog value(s).

The data is interleaved according to the channels list.

Definition at line 356 of file libsigrok.h.

int sr_datafeed_analog::mq

Measured quantity (voltage, current, temperature, and so on).

Use SR_MQ_VOLTAGE, ...

Definition at line 349 of file libsigrok.h.

uint64_t sr_datafeed_analog::mqflags

Bitmap with extra information about the MQ.

Use SR_MQFLAG_AC, ...

Definition at line 353 of file libsigrok.h.

int sr_datafeed_analog::num_samples

Number of samples in data.

Definition at line 346 of file libsigrok.h.

int sr_datafeed_analog::unit

Unit in which the MQ is measured.

Use SR_UNIT_VOLT, ...

Definition at line 351 of file libsigrok.h.


The documentation for this struct was generated from the following file: