LibIIO.Device — Method
Device(ctx::AbstractContext, device::Ptr{iio_device})

Initializes a new Device instance.

Parameters

  • ctx : The IIO context instance with which the device is accessed
  • device : A pointer to an iio_device which represents this device
source
LibIIO.Trigger — Type

Contains the representation of an IIO device that can act as a trigger.

source
LibIIO.Trigger — Method
Trigger(ctx::AbstractContext, device::Ptr{iio_device})

Initializes a new Trigger instance.

Parameters

  • ctx : The IIO context instance with which the device is accessed
  • device : A pointer to an iio_device which represents this trigger
source
LibIIO.attrs — Method
attrs(d::AbstractDeviceOrTrigger)

List of attributes for the IIO device.

source
LibIIO.channels — Method
channels(d::AbstractDeviceOrTrigger)

List of channels available with this IIO device.

source
LibIIO.find_channel — Function
find_channel(d::AbstractDeviceOrTrigger, name_or_id, is_output = false)

Find an IIO channel by its name or ID.

Parameters

  • d : The device instance
  • name_or_id : The name or ID of the channel to find
  • is_output : Set to true to search for an output channel

Returns

  • The IIO channel as Channel
source
LibIIO.id — Method
id(d::AbstractDeviceOrTrigger)

An identifier of the device, only valid in this IIO context.

source
LibIIO.reg_read — Method
reg_read(d::AbstractDeviceOrTrigger, reg)

Read the content of a register of this device.

Parameters

  • d : The device instance
  • reg : The register address

Returns

  • The value of the register
source
LibIIO.reg_write — Method
reg_write(d::AbstractDeviceOrTrigger, reg, value)

Set a valie to one register of the device.

Parameters

  • d : The device instance
  • reg : The register address
  • value ; The value that will be used for this register
source
LibIIO.sample_size — Method
sample_size(d::AbstractDeviceOrTrigger)

Sample size of the device. The sample size varies each time channels get enabled or disabled.

source
LibIIO.set_kernel_buffers_count — Method
set_kernel_buffers_count(d::AbstractDeviceOrTrigger, count)

Set the number of kernel buffers to use with the specified device

Parameters

  • d : The device instance
  • count : The number of kernel buffers
source
LibIIO.trigger! — Method
trigger!(d::Device, trigger::Trigger)

Sets the configured trigger for this IIO device.

source
LibIIO.trigger — Method
trigger(d::Device)

Returns the configured trigger for this IIO device, if present in the current context.

source