#include <IIOThreaded.H>
|
| | IIOThreaded () |
| |
| virtual | ~IIOThreaded () |
| |
| int | setSampleCountChannelCount (uint N, uint ch) |
| |
| void | bufferInfo () |
| |
| Eigen::Array< unsigned short int, Eigen::Dynamic, Eigen::Dynamic > * | getFullBuffer () |
| |
| | 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) |
| |
| virtual int | run (int priority=0) |
| |
| | Thread (void) |
| |
| virtual | ~Thread (void) |
| |
| void * | stop (void) |
| |
| int | run (void *(*start_routine)(void *), void *data, int priority=0) |
| |
| int | setPriority (pthread_attr_t *attributes, int priority) |
| |
| int | getPriority () |
| |
| void * | meetThread (void) |
| |
| void | exit (void *retVal) |
| |
| bool | running () |
| |
| | Cond () |
| | Constructor. More...
|
| |
| virtual | ~Cond () |
| | Destructor. More...
|
| |
| void | wait () |
| |
| void | signal () |
| |
| void | boroadcast () |
| |
| | Mutex () |
| |
| virtual | ~Mutex () |
| |
| int | lock () |
| |
| int | tryLock () |
| |
| int | unLock () |
| |
|
| bool | bufFull |
| | Indicates when the read has completed and a buffer is full. More...
|
| |
|
| LinkList< Eigen::Array< unsigned short int, Eigen::Dynamic, Eigen::Dynamic > * > | buffers |
| | The load and unload buffers. More...
|
| |
| Eigen::Array< unsigned short int, Eigen::Dynamic, Eigen::Dynamic > * | fullBuffer |
| |
|
| pthread_mutex_t | mut |
| | The POSIX mutex semaphore. More...
|
| |
Definition at line 25 of file IIOThreaded.H.
◆ IIOThreaded()
| IIOThreaded::IIOThreaded |
( |
| ) |
|
|
inline |
◆ ~IIOThreaded()
| virtual IIOThreaded::~IIOThreaded |
( |
| ) |
|
|
inlinevirtual |
◆ bufferInfo()
| void IIOThreaded::bufferInfo |
( |
| ) |
|
|
inline |
◆ getFullBuffer()
| Eigen::Array<unsigned short int, Eigen::Dynamic, Eigen::Dynamic>* IIOThreaded::getFullBuffer |
( |
void |
| ) |
|
|
inline |
Get the full buffer.
- Returns
- The buffer which was last filled.
Definition at line 130 of file IIOThreaded.H.
◆ resizeBuffers()
| int IIOThreaded::resizeBuffers |
( |
int |
N, |
|
|
int |
ch |
|
) |
| |
|
inlineprivate |
Resize the internal buffers for reading. The end result will be buffers which capture N samples per channel, where the total number of channels is the number requested + the remainder non-requested channels on the last device. i.e. the total number of channels will be ceil(ch / number of channels per device) * number of channels per device. For example, if ch=3 but there are 2 channels per device, we will get ceil(3/2)*2 = 4.
- Parameters
-
| N | the number of samples to read. |
| ch | the number of channels to read. |
- Returns
- NO_ERROR or the suitable error. The arrays are returned correctly sized for reading N samples.
Definition at line 80 of file IIOThreaded.H.
◆ setSampleCountChannelCount()
| int IIOThreaded::setSampleCountChannelCount |
( |
uint |
N, |
|
|
uint |
ch |
|
) |
| |
|
inline |
◆ threadMain()
| void* IIOThreaded::threadMain |
( |
void |
| ) |
|
|
inlineprivatevirtual |
All reading is done in a threaded environment. This ensures that you can process data whilst new data is being read in.
Implements ThreadedMethod.
Definition at line 36 of file IIOThreaded.H.
◆ buffers
| LinkList<Eigen::Array<unsigned short int, Eigen::Dynamic, Eigen::Dynamic> *> IIOThreaded::buffers |
|
private |
◆ bufFull
| bool IIOThreaded::bufFull |
Indicates when the read has completed and a buffer is full.
Definition at line 105 of file IIOThreaded.H.
◆ fullBuffer
| Eigen::Array<unsigned short int, Eigen::Dynamic, Eigen::Dynamic>* IIOThreaded::fullBuffer |
|
private |
The documentation for this class was generated from the following file: