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.
◆ IOBuffer()
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. |
◆ cancel()
void iio.IOBuffer.cancel |
( |
| ) |
|
|
inline |
Cancels the current buffer.
◆ Dispose()
void iio.IOBuffer.Dispose |
( |
| ) |
|
|
inline |
◆ fill()
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.
◆ first()
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. |
◆ get_device()
Device iio.IOBuffer.get_device |
( |
| ) |
|
|
inline |
Gets the device of the current buffer.
- Returns
- The device of the current buffer.
◆ get_poll_fd()
int iio.IOBuffer.get_poll_fd |
( |
| ) |
|
|
inline |
Returns poll file descriptor for the current buffer.
◆ push() [1/2]
void iio.IOBuffer.push |
( |
| ) |
|
|
inline |
Submit all the samples contained in this buffer to the hardware.
◆ push() [2/2]
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. |
◆ read()
void iio.IOBuffer.read |
( |
byte[] |
array | ) |
|
|
inline |
Extract the samples from the iio.IOBuffer object.
- Parameters
-
array | A byte array containing the extracted samples. |
◆ refill()
void iio.IOBuffer.refill |
( |
| ) |
|
|
inline |
Fetch a new set of samples from the hardware.
- Exceptions
-
System.Exception | The buffer could not be refilled. |
◆ set_blocking_mode()
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 |
◆ step()
long iio.IOBuffer.step |
( |
| ) |
|
|
inline |
Gets the step size of the current buffer.
◆ circular
readonly bool iio.IOBuffer.circular |
If true
, the buffer is circular.
◆ samples_count
readonly uint iio.IOBuffer.samples_count |
The size of this buffer, in samples.
The documentation for this class was generated from the following file:
- /__w/1/s/bindings/csharp/IOBuffer.cs