libsigrok
Data Fields
context Struct Reference

#include <asix-sigma.h>

Collaboration diagram for context:
Collaboration graph
[legend]

Data Fields

uint64_t cur_rate
uint64_t limit_samples
 The current sampling limit (in number of samples).
snd_pcm_t * capture_handle
snd_pcm_hw_params_t * hw_params
void * session_dev_id
 TODO.
struct ftdi_context ftdic
uint64_t cur_samplerate
 The currently configured samplerate of the device.
uint64_t period_ps
uint64_t limit_msec
 The current sampling limit (in ms).
struct timeval start_tv
int cur_firmware
int num_probes
int samples_per_event
int capture_ratio
struct sigma_trigger trigger
int use_triggers
struct sigma_state state
struct ftdi_context * ftdic
 FTDI device context (used by libftdi).
uint8_t mangled_buf [BS]
 A buffer containing some (mangled) samples from the device.
uint8_t * final_buf
 An 8MB buffer where we'll store the de-mangled samples.
uint8_t trigger_pattern
 Trigger pattern (MSB = channel 7, LSB = channel 0).
uint8_t trigger_mask
 Trigger mask (MSB = channel 7, LSB = channel 0).
uint64_t trigger_timeout
 Time (in seconds) before the trigger times out.
int trigger_found
 Tells us whether an SR_DF_TRIGGER packet was already sent.
time_t done
 TODO.
int block_counter
 Counter/index for the data block to be read.
uint8_t divcount
 The divcount value (determines the sample period) for the LA8.
int pipe_fds [2]
uint8_t sample_generator
uint8_t thread_running
uint64_t samples_counter
int dev_index
GTimer * timer
struct fx2lafw_profileprofile
int64_t fw_updated
uint8_t trigger_value [NUM_TRIGGER_STAGES]
int trigger_stage
uint8_t trigger_buffer [NUM_TRIGGER_STAGES]
int num_samples
int submitted_transfers
struct sr_usb_dev_inst * usb
uint32_t max_samplerate
uint32_t max_samples
uint32_t protocol_version
uint32_t cur_samplerate_divider
uint32_t flag_reg
int trigger_at
uint32_t probe_mask
uint32_t trigger_mask [4]
uint32_t trigger_value [4]
int num_stages
unsigned int num_transfers
unsigned int num_samples
int rle_count
int num_bytes
unsigned char sample [4]
unsigned char tmp_sample [4]
unsigned char * raw_sample_buf
struct sr_serial_dev_inst * serial
int num_channels
uint64_t memory_size
uint8_t probe_mask
unsigned int num_enabled_probes
unsigned int unitsize
char * probelist [SR_MAX_NUM_PROBES+1]
uint64_t trigger_point
uint64_t samplerate
GString * header
char separator
char * header
uint64_t num_samples
int samples_per_line
int line_offset
int linebuf_len
uint8_t * linebuf
int spl_cnt
uint8_t * linevalues
int mark_trigger
uint64_t prevsample
enum outputmode mode
int num_enabled_probes
int unitsize
int * prevbits
int period

Detailed Description

Definition at line 61 of file alsa.c.


Field Documentation

Counter/index for the data block to be read.

Definition at line 110 of file chronovu-la8.c.

Definition at line 64 of file alsa.c.

Definition at line 186 of file asix-sigma.h.

Definition at line 183 of file asix-sigma.h.

Definition at line 62 of file alsa.c.

The currently configured samplerate of the device.

Definition at line 179 of file asix-sigma.h.

Definition at line 70 of file ols.h.

Definition at line 74 of file demo.c.

The divcount value (determines the sample period) for the LA8.

Definition at line 113 of file chronovu-la8.c.

time_t context::done

TODO.

Definition at line 107 of file chronovu-la8.c.

An 8MB buffer where we'll store the de-mangled samples.

Format: Each sample is 1 byte, MSB is channel 7, LSB is channel 0.

Definition at line 85 of file chronovu-la8.c.

Definition at line 73 of file ols.h.

struct ftdi_context* context::ftdic

FTDI device context (used by libftdi).

Definition at line 61 of file chronovu-la8.c.

struct ftdi_context context::ftdic

Definition at line 178 of file asix-sigma.h.

Definition at line 65 of file fx2lafw.h.

Definition at line 32 of file gnuplot.c.

GString * context::header

Definition at line 33 of file csv.c.

Referenced by data_ascii(), data_bits(), data_hex(), and init().

snd_pcm_hw_params_t* context::hw_params

Definition at line 65 of file alsa.c.

The current sampling limit (in ms).

Definition at line 181 of file asix-sigma.h.

The current sampling limit (in number of samples).

Definition at line 63 of file alsa.c.

Definition at line 37 of file text.h.

Referenced by data_ascii(), data_bits(), data_hex(), and init().

uint8_t* context::linebuf

Definition at line 40 of file text.h.

Referenced by data_ascii(), data_bits(), data_hex(), flush_linebufs(), and init().

Definition at line 38 of file text.h.

Referenced by data_ascii(), data_bits(), data_hex(), flush_linebufs(), and init().

Definition at line 42 of file text.h.

Referenced by data_hex(), and init().

A buffer containing some (mangled) samples from the device.

Format: Pretty mangled-up (due to hardware reasons), see code.

Definition at line 79 of file chronovu-la8.c.

Definition at line 44 of file text.h.

Referenced by data_ascii(), data_bits(), event(), flush_linebufs(), and init().

Definition at line 64 of file ols.h.

Definition at line 65 of file ols.h.

Definition at line 151 of file zeroplus.c.

Definition at line 46 of file text.h.

Referenced by flush_linebufs(), and init().

Definition at line 87 of file ols.h.

Definition at line 150 of file zeroplus.c.

Definition at line 28 of file chronovu_la8.c.

Referenced by data_ascii(), data_bits(), data_hex(), event(), and init().

Definition at line 30 of file vcd.c.

Definition at line 184 of file asix-sigma.h.

Definition at line 36 of file ols.c.

Definition at line 76 of file fx2lafw.h.

unsigned int context::num_samples

Definition at line 85 of file ols.h.

Definition at line 82 of file ols.h.

unsigned int context::num_transfers

Definition at line 84 of file ols.h.

Definition at line 36 of file vcd.c.

Definition at line 180 of file asix-sigma.h.

Definition at line 70 of file demo.c.

Definition at line 33 of file vcd.c.

Definition at line 45 of file text.h.

Referenced by data_ascii(), and data_bits().

Definition at line 79 of file ols.h.

Definition at line 152 of file zeroplus.c.

Definition at line 30 of file chronovu_la8.c.

Referenced by flush_linebufs(), and init().

Definition at line 57 of file fx2lafw.h.

Definition at line 66 of file ols.h.

unsigned char* context::raw_sample_buf

Definition at line 90 of file ols.h.

Definition at line 86 of file ols.h.

unsigned char context::sample[4]

Definition at line 88 of file ols.h.

Referenced by data_ascii(), data_bits(), and data_hex().

Definition at line 71 of file demo.c.

Definition at line 32 of file chronovu_la8.c.

Definition at line 73 of file demo.c.

Definition at line 185 of file asix-sigma.h.

Definition at line 35 of file text.h.

Referenced by data_ascii(), data_bits(), data_hex(), event(), and init().

Definition at line 34 of file csv.c.

struct sr_serial_dev_inst* context::serial

Definition at line 92 of file ols.h.

TODO.

Definition at line 66 of file alsa.c.

Definition at line 41 of file text.h.

Referenced by data_ascii(), data_bits(), data_hex(), event(), and init().

struct timeval context::start_tv

Definition at line 182 of file asix-sigma.h.

Definition at line 189 of file asix-sigma.h.

Definition at line 77 of file fx2lafw.h.

Definition at line 72 of file demo.c.

GTimer* context::timer

Definition at line 76 of file demo.c.

unsigned char context::tmp_sample[4]

Definition at line 89 of file ols.h.

Definition at line 187 of file asix-sigma.h.

Definition at line 78 of file ols.h.

Definition at line 74 of file fx2lafw.h.

Tells us whether an SR_DF_TRIGGER packet was already sent.

Definition at line 104 of file chronovu-la8.c.

uint32_t context::trigger_mask[4]

Definition at line 80 of file ols.h.

Trigger mask (MSB = channel 7, LSB = channel 0).

A 1 bit means "must match trigger_pattern", 0 means "don't care".

Definition at line 98 of file chronovu-la8.c.

Trigger pattern (MSB = channel 7, LSB = channel 0).

A 1 bit matches a high signal, 0 matches a low signal on a probe. Only low/high triggers (but not e.g. rising/falling) are supported.

Definition at line 92 of file chronovu-la8.c.

Definition at line 31 of file chronovu_la8.c.

Definition at line 73 of file fx2lafw.h.

Time (in seconds) before the trigger times out.

Definition at line 101 of file chronovu-la8.c.

Definition at line 72 of file fx2lafw.h.

Definition at line 81 of file ols.h.

unsigned int context::unitsize

Definition at line 29 of file chronovu_la8.c.

Referenced by data_ascii(), data_bits(), data_hex(), and init().

Definition at line 31 of file vcd.c.

struct sr_usb_dev_inst * context::usb

Definition at line 81 of file fx2lafw.h.

Definition at line 188 of file asix-sigma.h.


The documentation for this struct was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines