LibIIO.BufferType

This class is used for all I/O operations of buffer capable devices.

source
LibIIO.BufferMethod
Buffer(device::T, samples_count, cyclic::Bool = false) where {T <: AbstractDeviceOrTrigger}

Initializes a new Buffer instance.

Parameters

  • device::AbstractDeviceOrTrigger : A device instance (either Device or Trigger to which the buffer belongs
  • samples_count : The size of the buffer in samples
  • cyclic : If set to true, the buffer is circular
source
Base.readMethod
read(buf::Buffer)

Retrieves the samples contained inside the Buffer.

Returns

  • A Vector{Cuchar} containing the samples
source
Base.writeMethod
write(buf::Buffer, data::Vector{T}) where {T}

Copy the given vector of samples into the buffer

Parameters

  • data : The data vector containing the samples to copy

Returns

  • The number of bytes written into the buffer
source
LibIIO.pushMethod
push(buf::Buffer [, samples_count])

Submit the samples contained in this buffer to the hardware.

Parameters

  • buf::Buffer : The buffer struct
  • samples_count (optional) : The number of samples to submit, default = full buffer
source
LibIIO.set_blocking_modeMethod
set_blocking_mode(buf::Buffer, blocking)

Set the buffer's blocking mode.

Parameters:

  • blocking : True if in blocking mode else false.
source