libsigrokcxx  unreleased development snapshot
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

std::string name () const
 Current name of this channel. More...
 
void set_name (std::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 456 of file libsigrokcxx.hpp.

Member Function Documentation

std::string sigrok::Channel::name ( ) const

Current name of this channel.

void sigrok::Channel::set_name ( std::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: