libsigrokdecode unreleased development snapshot
sigrok protocol decoding library
Loading...
Searching...
No Matches
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.
 
GArray * match_array
 Array of booleans denoting which conditions matched.
 
uint64_t abs_start_samplenum
 Absolute start sample number.
 
uint64_t abs_end_samplenum
 Absolute end sample number.
 
const uint8_t * inbuf
 Pointer to the buffer/chunk of input samples.
 
uint64_t inbuflen
 Length (in bytes) of the input sample buffer.
 
uint64_t abs_cur_samplenum
 Absolute current samplenumber.
 
GArray * old_pins_array
 Array of "old" (previous sample) pin values.
 
GThread * thread_handle
 Handle for this PD stack's worker thread.
 
gboolean got_new_samples
 Indicates whether new samples are available for processing.
 
gboolean handled_all_samples
 Indicates whether the worker thread has handled all samples.
 
gboolean want_wait_terminate
 Requests termination of wait() and decode().
 
gboolean communicate_eof
 Requests that .wait() terminates a Python iteration.
 
int decoder_state
 Indicates the current state of the decoder stack.
 
GCond got_new_samples_cond
 
GCond handled_all_samples_cond
 
GMutex data_mutex
 

Detailed Description

Definition at line 250 of file libsigrokdecode.h.

Field Documentation

◆ abs_cur_samplenum

uint64_t srd_decoder_inst::abs_cur_samplenum

Absolute current samplenumber.

Definition at line 281 of file libsigrokdecode.h.

Referenced by srd_inst_new().

◆ abs_end_samplenum

uint64_t srd_decoder_inst::abs_end_samplenum

Absolute end sample number.

Definition at line 272 of file libsigrokdecode.h.

Referenced by srd_inst_new(), and srd_session_send().

◆ abs_start_samplenum

uint64_t srd_decoder_inst::abs_start_samplenum

Absolute start sample number.

Definition at line 269 of file libsigrokdecode.h.

Referenced by srd_inst_new(), and srd_session_send().

◆ channel_samples

uint8_t* srd_decoder_inst::channel_samples

Definition at line 259 of file libsigrokdecode.h.

Referenced by srd_inst_new().

◆ communicate_eof

gboolean srd_decoder_inst::communicate_eof

Requests that .wait() terminates a Python iteration.

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

Referenced by srd_inst_new().

◆ data_mutex

GMutex srd_decoder_inst::data_mutex

Definition at line 306 of file libsigrokdecode.h.

Referenced by srd_inst_new().

◆ data_unitsize

int srd_decoder_inst::data_unitsize

Definition at line 258 of file libsigrokdecode.h.

◆ dec_channelmap

int* srd_decoder_inst::dec_channelmap

Definition at line 257 of file libsigrokdecode.h.

Referenced by srd_inst_channel_set_all(), and srd_inst_new().

◆ dec_num_channels

int srd_decoder_inst::dec_num_channels

◆ decoder

struct srd_decoder* srd_decoder_inst::decoder

◆ decoder_state

int srd_decoder_inst::decoder_state

Indicates the current state of the decoder stack.

Definition at line 302 of file libsigrokdecode.h.

Referenced by srd_inst_new().

◆ got_new_samples

gboolean srd_decoder_inst::got_new_samples

Indicates whether new samples are available for processing.

Definition at line 290 of file libsigrokdecode.h.

Referenced by srd_inst_new().

◆ got_new_samples_cond

GCond srd_decoder_inst::got_new_samples_cond

Definition at line 304 of file libsigrokdecode.h.

Referenced by srd_inst_new().

◆ handled_all_samples

gboolean srd_decoder_inst::handled_all_samples

Indicates whether the worker thread has handled all samples.

Definition at line 293 of file libsigrokdecode.h.

Referenced by srd_inst_new().

◆ handled_all_samples_cond

GCond srd_decoder_inst::handled_all_samples_cond

Definition at line 305 of file libsigrokdecode.h.

Referenced by srd_inst_new().

◆ inbuf

const uint8_t* srd_decoder_inst::inbuf

Pointer to the buffer/chunk of input samples.

Definition at line 275 of file libsigrokdecode.h.

Referenced by srd_inst_new(), and srd_session_send().

◆ inbuflen

uint64_t srd_decoder_inst::inbuflen

Length (in bytes) of the input sample buffer.

Definition at line 278 of file libsigrokdecode.h.

Referenced by srd_inst_new(), and srd_session_send().

◆ 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 266 of file libsigrokdecode.h.

Referenced by srd_inst_new().

◆ next_di

GSList* srd_decoder_inst::next_di

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

Referenced by srd_inst_initial_pins_set_all().

◆ pd_output

GSList* srd_decoder_inst::pd_output

Definition at line 255 of file libsigrokdecode.h.

◆ py_inst

void* srd_decoder_inst::py_inst

Definition at line 253 of file libsigrokdecode.h.

Referenced by srd_inst_new(), and srd_inst_option_set().

◆ sess

◆ thread_handle

GThread* srd_decoder_inst::thread_handle

Handle for this PD stack's worker thread.

Definition at line 287 of file libsigrokdecode.h.

Referenced by srd_inst_new().

◆ want_wait_terminate

gboolean srd_decoder_inst::want_wait_terminate

Requests termination of wait() and decode().

Definition at line 296 of file libsigrokdecode.h.

Referenced by srd_inst_new().


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