gtkIOStream
1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
|
The iio_channel_info structure is external. More...
#include <IIO.H>
Public Member Functions | |
IIO () | |
virtual | ~IIO () |
int | findDevicesByChipName (std::string chipName) |
uint | getDeviceCnt () |
uint | getChCnt () |
void | printInfo () |
int | open (void) |
int | close (void) |
int | getChFrameSize (void) |
int | getDevFrameSize (void) |
template<typename TYPE > | |
int | getReadArray (uint N, Eigen::Array< TYPE, Eigen::Dynamic, Eigen::Dynamic > &array) |
template<typename TYPE > | |
int | getReadArraySampleCount (Eigen::Array< TYPE, Eigen::Dynamic, Eigen::Dynamic > &array) |
template<typename TYPE > | |
int | read (uint N, const Eigen::Array< TYPE, Eigen::Dynamic, Eigen::Dynamic > &array) |
int | enable (bool enable) |
int | getChannelBufferCnt () |
int | setChannelBufferCnt (int chBufCnt) |
Private Member Functions | |
std::string | findChipName (std::string devicePath) |
Static Private Attributes | |
static const char * | iioDir = "/sys/bus/iio/devices/" |
The sys fs location of iio devcies "/sys/bus/iio/devices/". More... | |
The iio_channel_info structure is external.
Industrial IO class.
In this version, this class assumes that all devices are driven by the same chip. For this reason, each device has the same number of channels and word size.
This class will open and maintain all IIO devices with the same chip name. For example :
Which produces the following output :
|
inlinevirtual |
|
inline |
Close all of the devices.
Definition at line 179 of file IIO.H.
|
inline |
Enable or disable all of the devices.
enable | True to enable, false to disable. |
Definition at line 290 of file IIO.H.
|
inlineprivate |
|
inline |
Find all IIO devices with a particular chip name
chipName | The name of the iio chip, e.g. "AD7476" |
Definition at line 97 of file IIO.H.
|
inline |
|
inline |
Find the total number of channels across all devices.
Definition at line 137 of file IIO.H.
|
inline |
|
inline |
|
inline |
Open an iio device by name.
deviceName | The name of the iio device, e.g. "iio:1" |
Definition at line 130 of file IIO.H.
|
inline |
Get an Array suitable for reading N samples from each channel on each device. The arrays are shaped as N*chCnt rows and device count columns.
N | The number of samples to read from each channel. | |
[out] | array | The array to create and resize appropriately |
Definition at line 222 of file IIO.H.
|
inline |
Get the numbers of samples per channel which the read array can handle.
array | The array to create and resize appropriately |
Definition at line 241 of file IIO.H.
|
inline |
Open all of the devices all channels.
Definition at line 156 of file IIO.H.
|
inline |
Print the info for each device.
Definition at line 146 of file IIO.H.
|
inline |
Read N samples from each channel.
N | The number of samples to read from each channel. |
array | The array to fill with data. |
TYPE | the type of the samples to read in, for example signed 16 bit is short int. |
Definition at line 254 of file IIO.H.
|
inline |
Set the number of samples per channel which the buffer can hold.
chBufferCnt | The number of samples per channel the buffer can hold. |
Definition at line 315 of file IIO.H.
|
staticprivate |
GTK+ IOStream
Beta
|