libsigrok  0.5.2
sigrok hardware access and backend library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Fields
sr_analog_encoding Struct Reference

#include <libsigrok.h>

+ Collaboration diagram for sr_analog_encoding:

Data Fields

uint8_t unitsize
 
gboolean is_signed
 
gboolean is_float
 
gboolean is_bigendian
 
int8_t digits
 Number of significant digits after the decimal point if positive, or number of non-significant digits before the decimal point if negative (refers to the value we actually read on the wire). More...
 
gboolean is_digits_decimal
 
struct sr_rational scale
 
struct sr_rational offset
 

Detailed Description

Definition at line 508 of file libsigrok.h.

Field Documentation

int8_t sr_analog_encoding::digits

Number of significant digits after the decimal point if positive, or number of non-significant digits before the decimal point if negative (refers to the value we actually read on the wire).

Definition at line 518 of file libsigrok.h.

gboolean sr_analog_encoding::is_bigendian

Definition at line 512 of file libsigrok.h.

Referenced by sr_analog_to_float().

gboolean sr_analog_encoding::is_digits_decimal

Definition at line 519 of file libsigrok.h.

gboolean sr_analog_encoding::is_float

Definition at line 511 of file libsigrok.h.

Referenced by sr_a2l_schmitt_trigger(), sr_a2l_threshold(), and sr_analog_to_float().

gboolean sr_analog_encoding::is_signed

Definition at line 510 of file libsigrok.h.

Referenced by sr_analog_to_float().

struct sr_rational sr_analog_encoding::offset

Definition at line 521 of file libsigrok.h.

Referenced by sr_analog_to_float().

struct sr_rational sr_analog_encoding::scale

Definition at line 520 of file libsigrok.h.

Referenced by sr_analog_to_float().

uint8_t sr_analog_encoding::unitsize

Definition at line 509 of file libsigrok.h.

Referenced by sr_analog_to_float(), and sr_packet_copy().


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