libsigrok  unreleased development snapshot
sigrok hardware access and backend library
Data Fields
sr_channel Struct Reference

Information on single channel. More...

#include <libsigrok.h>

+ Collaboration diagram for sr_channel:

Data Fields

struct sr_dev_inst * sdi
 The device this channel is attached to. More...
 
int index
 The index of this channel, starting at 0. More...
 
int type
 Channel type (SR_CHANNEL_LOGIC, ...) More...
 
gboolean enabled
 Is this channel enabled? More...
 
char * name
 Name of channel. More...
 
voidpriv
 Private data for driver use. More...
 

Detailed Description

Information on single channel.

Definition at line 639 of file libsigrok.h.

Field Documentation

gboolean sr_channel::enabled

Is this channel enabled?

Definition at line 648 of file libsigrok.h.

Referenced by sr_dev_channel_enable(), and sr_session_start().

int sr_channel::index

The index of this channel, starting at 0.

Logic channels will be encoded according to this index in SR_DF_LOGIC packets.

Definition at line 644 of file libsigrok.h.

Referenced by sr_dev_channel_enable(), and sr_session_load().

char* sr_channel::name

Name of channel.

Definition at line 650 of file libsigrok.h.

Referenced by sr_dev_channel_enable(), sr_dev_channel_name_set(), and sr_session_trigger_set().

void* sr_channel::priv

Private data for driver use.

Definition at line 652 of file libsigrok.h.

struct sr_dev_inst* sr_channel::sdi

The device this channel is attached to.

Definition at line 641 of file libsigrok.h.

Referenced by sr_dev_channel_enable().

int sr_channel::type

Channel type (SR_CHANNEL_LOGIC, ...)

Definition at line 646 of file libsigrok.h.

Referenced by sr_dev_channel_enable(), and sr_trigger_match_add().


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