libsigrokcxx  0.4.0
C++ bindings for libsigrok
Public Member Functions | List of all members
sigrok::Channel Class Reference

A channel on a device. More...

#include <libsigrokcxx/libsigrokcxx.hpp>

Inherits sigrok::ParentOwned< Class, Parent >.

Public Member Functions

string name () const
 Current name of this channel. More...
 
void set_name (string name)
 Set the name of this channel. More...
 
const ChannelTypetype () const
 Type of this channel. More...
 
bool enabled () const
 Enabled status of this channel. More...
 
void set_enabled (bool value)
 Set the enabled status of this channel. More...
 
unsigned int index () const
 Get the index number of this channel. More...
 

Detailed Description

A channel on a device.

Definition at line 452 of file libsigrokcxx.hpp.

Member Function Documentation

string sigrok::Channel::name ( ) const

Current name of this channel.

void sigrok::Channel::set_name ( string  name)

Set the name of this channel.

  • Parameters
    nameName string to set.
const ChannelType* sigrok::Channel::type ( ) const

Type of this channel.

bool sigrok::Channel::enabled ( ) const

Enabled status of this channel.

void sigrok::Channel::set_enabled ( bool  value)

Set the enabled status of this channel.

Parameters
valueBoolean value to set.
unsigned int sigrok::Channel::index ( ) const

Get the index number of this channel.


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