libsigrokdecode  0.5.2
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...
 
int decoder_state
 Indicates the current state of the decoder stack. More...
 
GCond got_new_samples_cond
 
GCond handled_all_samples_cond
 
GMutex data_mutex
 

Detailed Description

Definition at line 232 of file libsigrokdecode.h.

Field Documentation

◆ abs_cur_samplenum

uint64_t srd_decoder_inst::abs_cur_samplenum

Absolute current samplenumber.

Definition at line 263 of file libsigrokdecode.h.

◆ abs_end_samplenum

uint64_t srd_decoder_inst::abs_end_samplenum

Absolute end sample number.

Definition at line 254 of file libsigrokdecode.h.

◆ abs_start_samplenum

uint64_t srd_decoder_inst::abs_start_samplenum

Absolute start sample number.

Definition at line 251 of file libsigrokdecode.h.

◆ channel_samples

uint8_t* srd_decoder_inst::channel_samples

Definition at line 241 of file libsigrokdecode.h.

Referenced by srd_inst_new().

◆ condition_list

GSList* srd_decoder_inst::condition_list

List of conditions a PD wants to wait for.

Definition at line 245 of file libsigrokdecode.h.

◆ data_mutex

GMutex srd_decoder_inst::data_mutex

Definition at line 285 of file libsigrokdecode.h.

◆ data_unitsize

int srd_decoder_inst::data_unitsize

Definition at line 240 of file libsigrokdecode.h.

◆ dec_channelmap

int* srd_decoder_inst::dec_channelmap

Definition at line 239 of file libsigrokdecode.h.

Referenced by srd_inst_new().

◆ dec_num_channels

int srd_decoder_inst::dec_num_channels

◆ decoder

struct srd_decoder* srd_decoder_inst::decoder

Definition at line 233 of file libsigrokdecode.h.

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

◆ decoder_state

int srd_decoder_inst::decoder_state

Indicates the current state of the decoder stack.

Definition at line 281 of file libsigrokdecode.h.

◆ got_new_samples

gboolean srd_decoder_inst::got_new_samples

Indicates whether new samples are available for processing.

Definition at line 272 of file libsigrokdecode.h.

◆ got_new_samples_cond

GCond srd_decoder_inst::got_new_samples_cond

Definition at line 283 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 275 of file libsigrokdecode.h.

◆ handled_all_samples_cond

GCond srd_decoder_inst::handled_all_samples_cond

Definition at line 284 of file libsigrokdecode.h.

◆ inbuf

const uint8_t* srd_decoder_inst::inbuf

Pointer to the buffer/chunk of input samples.

Definition at line 257 of file libsigrokdecode.h.

◆ inbuflen

uint64_t srd_decoder_inst::inbuflen

Length (in bytes) of the input sample buffer.

Definition at line 260 of file libsigrokdecode.h.

◆ inst_id

char* srd_decoder_inst::inst_id

◆ match_array

GArray* srd_decoder_inst::match_array

Array of booleans denoting which conditions matched.

Definition at line 248 of file libsigrokdecode.h.

◆ next_di

GSList* srd_decoder_inst::next_di

Definition at line 242 of file libsigrokdecode.h.

Referenced by srd_inst_stack().

◆ old_pins_array

GArray* srd_decoder_inst::old_pins_array

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

Definition at line 266 of file libsigrokdecode.h.

◆ pd_output

GSList* srd_decoder_inst::pd_output

Definition at line 237 of file libsigrokdecode.h.

◆ py_inst

void* srd_decoder_inst::py_inst

Definition at line 235 of file libsigrokdecode.h.

Referenced by srd_inst_option_set().

◆ sess

struct srd_session* srd_decoder_inst::sess

◆ thread_handle

GThread* srd_decoder_inst::thread_handle

Handle for this PD stack's worker thread.

Definition at line 269 of file libsigrokdecode.h.

◆ want_wait_terminate

gboolean srd_decoder_inst::want_wait_terminate

Requests termination of wait() and decode().

Definition at line 278 of file libsigrokdecode.h.


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