LibIIO.DeviceMethod
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.TriggerType

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

source
LibIIO.TriggerMethod
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.attrsMethod
attrs(d::AbstractDeviceOrTrigger)

List of attributes for the IIO device.

source
LibIIO.channelsMethod
channels(d::AbstractDeviceOrTrigger)

List of channels available with this IIO device.

source
LibIIO.find_channelFunction
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.idMethod
id(d::AbstractDeviceOrTrigger)

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

source
LibIIO.reg_readMethod
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_writeMethod
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_sizeMethod
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_countMethod
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.triggerMethod
trigger(d::Device)

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

source