iio.IOBuffer class: The class used for all I/O operations.
More...
Inherits IDisposable.
iio.IOBuffer class: The class used for all I/O operations.
iio.IOBuffer.IOBuffer |
( |
Device |
dev, |
|
|
uint |
samples_count, |
|
|
bool |
circular = false |
|
) |
| |
|
inline |
Initializes a new instance of the iio.IOBuffer class.
- Parameters
-
dev | The iio.Device object that represents the device where the I/O operations will be performed. |
samples_count | The size of the buffer, in samples. |
circular | If set to true , the buffer is circular. |
- Exceptions
-
System.Exception | The buffer could not be created. |
void iio.IOBuffer.cancel |
( |
| ) |
|
|
inline |
Cancels the current buffer.
void iio.IOBuffer.Dispose |
( |
| ) |
|
|
inline |
void iio.IOBuffer.fill |
( |
byte[] |
array | ) |
|
|
inline |
Copy the given array of samples inside the iio.IOBuffer object.
- Parameters
-
array | A byte array containing the samples that should be written. |
The number of samples written will not exceed the size of the buffer.
IntPtr iio.IOBuffer.first |
( |
Channel |
ch | ) |
|
|
inline |
Gets a pointer to the first sample from the current buffer for a specific channel.
- Parameters
-
ch | The channel for which to find the first sample. |
Device iio.IOBuffer.get_device |
( |
| ) |
|
|
inline |
Gets the device of the current buffer.
- Returns
- The device of the current buffer.
int iio.IOBuffer.get_poll_fd |
( |
| ) |
|
|
inline |
Returns poll file descriptor for the current buffer.
void iio.IOBuffer.push |
( |
uint |
samples_count | ) |
|
|
inline |
Submit the samples contained in this buffer to the hardware.
- Exceptions
-
System.Exception | The buffer could not be pushed. |
void iio.IOBuffer.push |
( |
| ) |
|
|
inline |
Submit all the samples contained in this buffer to the hardware.
void iio.IOBuffer.read |
( |
byte[] |
array | ) |
|
|
inline |
Extract the samples from the iio.IOBuffer object.
- Parameters
-
array | A byte array containing the extracted samples. |
void iio.IOBuffer.refill |
( |
| ) |
|
|
inline |
Fetch a new set of samples from the hardware.
- Exceptions
-
System.Exception | The buffer could not be refilled. |
int iio.IOBuffer.set_blocking_mode |
( |
bool |
blocking | ) |
|
|
inline |
Sets the blocking behavior of the current buffer.
- Parameters
-
blocking | true if blocking buffer, otherwise false |
long iio.IOBuffer.step |
( |
| ) |
|
|
inline |
Gets the step size of the current buffer.
readonly bool iio.IOBuffer.circular |
If true
, the buffer is circular.
readonly uint iio.IOBuffer.samples_count |
The size of this buffer, in samples.
The documentation for this class was generated from the following file:
- /home/travis/build/analogdevicesinc/libiio/bindings/csharp/IOBuffer.cs