libiio
Public Member Functions | Public Attributes | List of all members
iio.Attr Class Referenceabstract

iio.Attr class: Contains the representation of a channel or device attribute. More...

Public Member Functions

abstract string read ()
 Read the value of this attribute as a string. More...
 
abstract void write (string val)
 Set this attribute to the value contained in the string argument. More...
 
bool read_bool ()
 Read the value of this attribute as a bool. More...
 
double read_double ()
 Read the value of this attribute as a double. More...
 
long read_long ()
 Read the value of this attribute as a long. More...
 
void write (bool val)
 Set this attribute to the value contained in the bool argument. More...
 
void write (long val)
 Set this attribute to the value contained in the long argument. More...
 
void write (double val)
 Set this attribute to the value contained in the double argument. More...
 

Public Attributes

readonly string name
 The name of this attribute. More...
 
readonly string filename
 The filename in sysfs to which this attribute is bound. More...
 

Detailed Description

iio.Attr class: Contains the representation of a channel or device attribute.

Member Function Documentation

◆ read()

abstract string iio.Attr.read ( )
pure virtual

Read the value of this attribute as a string.

Exceptions
IioLib.IIOExceptionThe attribute could not be read.

◆ read_bool()

bool iio.Attr.read_bool ( )
inline

Read the value of this attribute as a bool.

Exceptions
IioLib.IIOExceptionThe attribute could not be read.

◆ read_double()

double iio.Attr.read_double ( )
inline

Read the value of this attribute as a double.

Exceptions
IioLib.IIOExceptionThe attribute could not be read.

◆ read_long()

long iio.Attr.read_long ( )
inline

Read the value of this attribute as a long.

Exceptions
IioLib.IIOExceptionThe attribute could not be read.

◆ write() [1/4]

abstract void iio.Attr.write ( string  val)
pure virtual

Set this attribute to the value contained in the string argument.

Parameters
valThe string value to set the parameter to.
Exceptions
IioLib.IIOExceptionThe attribute could not be written.

◆ write() [2/4]

void iio.Attr.write ( bool  val)
inline

Set this attribute to the value contained in the bool argument.

Parameters
valThe bool value to set the parameter to.
Exceptions
IioLib.IIOExceptionThe attribute could not be written.

◆ write() [3/4]

void iio.Attr.write ( long  val)
inline

Set this attribute to the value contained in the long argument.

Parameters
valThe long value to set the parameter to.
Exceptions
IioLib.IIOExceptionThe attribute could not be written.

◆ write() [4/4]

void iio.Attr.write ( double  val)
inline

Set this attribute to the value contained in the double argument.

Parameters
valThe double value to set the parameter to.
Exceptions
IioLib.IIOExceptionThe attribute could not be written.

Member Data Documentation

◆ filename

readonly string iio.Attr.filename

The filename in sysfs to which this attribute is bound.

◆ name

readonly string iio.Attr.name

The name of this attribute.


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