libsigrokdecode  0.5.0
sigrok protocol decoding library
Data Fields
srd_decoder_inst Struct Reference

#include <libsigrokdecode.h>

+ Collaboration diagram for srd_decoder_inst:

Data Fields

struct srd_decoderdecoder
 
struct srd_session * sess
 
void * py_inst
 
char * inst_id
 
GSList * pd_output
 
int dec_num_channels
 
int * dec_channelmap
 
int data_unitsize
 
uint8_t * channel_samples
 
GSList * next_di
 
GSList * condition_list
 List of conditions a PD wants to wait for. More...
 
GArray * match_array
 Array of booleans denoting which conditions matched. More...
 
uint64_t abs_start_samplenum
 Absolute start sample number. More...
 
uint64_t abs_end_samplenum
 Absolute end sample number. More...
 
const uint8_t * inbuf
 Pointer to the buffer/chunk of input samples. More...
 
uint64_t inbuflen
 Length (in bytes) of the input sample buffer. More...
 
uint64_t abs_cur_samplenum
 Absolute current samplenumber. More...
 
GArray * old_pins_array
 Array of "old" (previous sample) pin values. More...
 
GThread * thread_handle
 Handle for this PD stack's worker thread. More...
 
gboolean got_new_samples
 Indicates whether new samples are available for processing. More...
 
gboolean handled_all_samples
 Indicates whether the worker thread has handled all samples. More...
 
gboolean want_wait_terminate
 Requests termination of wait() and decode(). More...
 
GCond got_new_samples_cond
 
GCond handled_all_samples_cond
 
GMutex data_mutex
 

Detailed Description

Definition at line 231 of file libsigrokdecode.h.

Field Documentation

◆ abs_cur_samplenum

uint64_t srd_decoder_inst::abs_cur_samplenum

Absolute current samplenumber.

Definition at line 262 of file libsigrokdecode.h.

◆ abs_end_samplenum

uint64_t srd_decoder_inst::abs_end_samplenum

Absolute end sample number.

Definition at line 253 of file libsigrokdecode.h.

◆ abs_start_samplenum

uint64_t srd_decoder_inst::abs_start_samplenum

Absolute start sample number.

Definition at line 250 of file libsigrokdecode.h.

◆ channel_samples

uint8_t* srd_decoder_inst::channel_samples

Definition at line 240 of file libsigrokdecode.h.

◆ condition_list

GSList* srd_decoder_inst::condition_list

List of conditions a PD wants to wait for.

Definition at line 244 of file libsigrokdecode.h.

◆ data_mutex

GMutex srd_decoder_inst::data_mutex

Definition at line 281 of file libsigrokdecode.h.

◆ data_unitsize

int srd_decoder_inst::data_unitsize

Definition at line 239 of file libsigrokdecode.h.

◆ dec_channelmap

int* srd_decoder_inst::dec_channelmap

Definition at line 238 of file libsigrokdecode.h.

◆ dec_num_channels

int srd_decoder_inst::dec_num_channels

Definition at line 237 of file libsigrokdecode.h.

Referenced by srd_inst_channel_set_all(), and srd_inst_initial_pins_set_all().

◆ decoder

struct srd_decoder* srd_decoder_inst::decoder

Definition at line 232 of file libsigrokdecode.h.

Referenced by srd_inst_channel_set_all(), and srd_inst_option_set().

◆ got_new_samples

gboolean srd_decoder_inst::got_new_samples

Indicates whether new samples are available for processing.

Definition at line 271 of file libsigrokdecode.h.

◆ got_new_samples_cond

GCond srd_decoder_inst::got_new_samples_cond

Definition at line 279 of file libsigrokdecode.h.

◆ handled_all_samples

gboolean srd_decoder_inst::handled_all_samples

Indicates whether the worker thread has handled all samples.

Definition at line 274 of file libsigrokdecode.h.

◆ handled_all_samples_cond

GCond srd_decoder_inst::handled_all_samples_cond

Definition at line 280 of file libsigrokdecode.h.

◆ inbuf

const uint8_t* srd_decoder_inst::inbuf

Pointer to the buffer/chunk of input samples.

Definition at line 256 of file libsigrokdecode.h.

◆ inbuflen

uint64_t srd_decoder_inst::inbuflen

Length (in bytes) of the input sample buffer.

Definition at line 259 of file libsigrokdecode.h.

◆ inst_id

char* srd_decoder_inst::inst_id

Definition at line 235 of file libsigrokdecode.h.

Referenced by srd_inst_channel_set_all(), srd_inst_new(), and srd_inst_option_set().

◆ match_array

GArray* srd_decoder_inst::match_array

Array of booleans denoting which conditions matched.

Definition at line 247 of file libsigrokdecode.h.

◆ next_di

GSList* srd_decoder_inst::next_di

Definition at line 241 of file libsigrokdecode.h.

◆ old_pins_array

GArray* srd_decoder_inst::old_pins_array

Array of "old" (previous sample) pin values.

Definition at line 265 of file libsigrokdecode.h.

Referenced by srd_inst_initial_pins_set_all().

◆ pd_output

GSList* srd_decoder_inst::pd_output

Definition at line 236 of file libsigrokdecode.h.

◆ py_inst

void* srd_decoder_inst::py_inst

Definition at line 234 of file libsigrokdecode.h.

Referenced by srd_inst_option_set().

◆ sess

struct srd_session* srd_decoder_inst::sess

Definition at line 233 of file libsigrokdecode.h.

◆ thread_handle

GThread* srd_decoder_inst::thread_handle

Handle for this PD stack's worker thread.

Definition at line 268 of file libsigrokdecode.h.

◆ want_wait_terminate

gboolean srd_decoder_inst::want_wait_terminate

Requests termination of wait() and decode().

Definition at line 277 of file libsigrokdecode.h.


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