libsigrokdecode
unreleased development snapshot
sigrok protocol decoding library
|
#include <libsigrokdecode.h>
Data Fields | |
struct srd_decoder * | decoder |
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... | |
gboolean | communicate_eof |
Requests that .wait() terminates a Python iteration. 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 |
Definition at line 250 of file libsigrokdecode.h.
uint64_t srd_decoder_inst::abs_cur_samplenum |
Absolute current samplenumber.
Definition at line 281 of file libsigrokdecode.h.
Referenced by srd_inst_initial_pins_set_all(), and srd_inst_new().
uint64_t srd_decoder_inst::abs_end_samplenum |
Absolute end sample number.
Definition at line 272 of file libsigrokdecode.h.
Referenced by srd_inst_initial_pins_set_all(), and srd_inst_new().
uint64_t srd_decoder_inst::abs_start_samplenum |
Absolute start sample number.
Definition at line 269 of file libsigrokdecode.h.
Referenced by srd_inst_initial_pins_set_all(), and srd_inst_new().
uint8_t* srd_decoder_inst::channel_samples |
Definition at line 259 of file libsigrokdecode.h.
Referenced by srd_inst_initial_pins_set_all(), and srd_inst_new().
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_initial_pins_set_all(), and srd_inst_new().
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_initial_pins_set_all(), and srd_inst_new().
GMutex srd_decoder_inst::data_mutex |
Definition at line 306 of file libsigrokdecode.h.
Referenced by srd_inst_initial_pins_set_all(), and srd_inst_new().
int srd_decoder_inst::data_unitsize |
Definition at line 258 of file libsigrokdecode.h.
Referenced by srd_inst_initial_pins_set_all().
int* srd_decoder_inst::dec_channelmap |
Definition at line 257 of file libsigrokdecode.h.
Referenced by srd_inst_channel_set_all(), srd_inst_initial_pins_set_all(), and srd_inst_new().
int srd_decoder_inst::dec_num_channels |
Definition at line 256 of file libsigrokdecode.h.
Referenced by srd_inst_channel_set_all(), srd_inst_initial_pins_set_all(), and srd_inst_new().
struct srd_decoder* srd_decoder_inst::decoder |
Definition at line 251 of file libsigrokdecode.h.
Referenced by srd_inst_channel_set_all(), srd_inst_new(), srd_inst_option_set(), and srd_inst_stack().
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_initial_pins_set_all(), and srd_inst_new().
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_initial_pins_set_all(), and srd_inst_new().
GCond srd_decoder_inst::got_new_samples_cond |
Definition at line 304 of file libsigrokdecode.h.
Referenced by srd_inst_initial_pins_set_all(), and srd_inst_new().
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_initial_pins_set_all(), and srd_inst_new().
GCond srd_decoder_inst::handled_all_samples_cond |
Definition at line 305 of file libsigrokdecode.h.
Referenced by srd_inst_initial_pins_set_all(), and srd_inst_new().
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_initial_pins_set_all(), and srd_inst_new().
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_initial_pins_set_all(), and srd_inst_new().
char* srd_decoder_inst::inst_id |
Definition at line 254 of file libsigrokdecode.h.
Referenced by srd_inst_channel_set_all(), srd_inst_initial_pins_set_all(), srd_inst_new(), srd_inst_option_set(), and srd_inst_stack().
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_initial_pins_set_all(), and srd_inst_new().
GSList* srd_decoder_inst::next_di |
Definition at line 260 of file libsigrokdecode.h.
Referenced by srd_inst_initial_pins_set_all(), srd_inst_stack(), and srd_session_start().
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().
GSList* srd_decoder_inst::pd_output |
Definition at line 255 of file libsigrokdecode.h.
Referenced by srd_inst_initial_pins_set_all().
void* srd_decoder_inst::py_inst |
Definition at line 253 of file libsigrokdecode.h.
Referenced by srd_inst_initial_pins_set_all(), srd_inst_new(), srd_inst_option_set(), and srd_session_start().
struct srd_session* srd_decoder_inst::sess |
Definition at line 252 of file libsigrokdecode.h.
Referenced by srd_inst_new().
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_initial_pins_set_all(), and srd_inst_new().
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_initial_pins_set_all(), and srd_inst_new().