Attr
- class iio.Attr
iio.Attr class: Contains the representation of an iio_attr.
Public Functions
- string read ()
Read the value of this attribute as a
string.- Throws IioLib.IIOException:
The attribute could not be read.
- void write (string val)
Set this attribute to the value contained in the
stringargument.- Param val:
The
stringvalue to set the parameter to.- Throws IioLib.IIOException:
The attribute could not be written.
- bool read_bool ()
Read the value of this attribute as a
bool.- Throws IioLib.IIOException:
The attribute could not be read.
- double read_double ()
Read the value of this attribute as a
double.- Throws IioLib.IIOException:
The attribute could not be read.
- long read_long ()
Read the value of this attribute as a
long.- Throws IioLib.IIOException:
The attribute could not be read.
- void write (bool val)
Set this attribute to the value contained in the
boolargument.- Param val:
The
boolvalue to set the parameter to.- Throws IioLib.IIOException:
The attribute could not be written.
- void write (long val)
Set this attribute to the value contained in the
longargument.- Param val:
The
longvalue to set the parameter to.- Throws IioLib.IIOException:
The attribute could not be written.
- void write (double val)
Set this attribute to the value contained in the
doubleargument.- Param val:
The
doublevalue to set the parameter to.- Throws IioLib.IIOException:
The attribute could not be written.