LibIIO.CLibIIO.iio_contextLibIIO.DeviceLibIIO.DeviceLibIIO.DeviceAttrLibIIO.DeviceBufferAttrLibIIO.DeviceDebugAttrLibIIO.TriggerLibIIO.TriggerLibIIO.attrsLibIIO.buffer_attrsLibIIO.channelsLibIIO.debug_attrsLibIIO.find_channelLibIIO.frequencyLibIIO.frequency!LibIIO.idLibIIO.labelLibIIO.nameLibIIO.reg_readLibIIO.reg_writeLibIIO.sample_sizeLibIIO.set_kernel_buffers_countLibIIO.triggerLibIIO.trigger!
LibIIO.CLibIIO.iio_context — Methodcontext(d::Device)Context for the device.
LibIIO.Device — TypeContains the representation of an IIO device.
LibIIO.Device — MethodDevice(ctx::AbstractContext, device::Ptr{iio_device})Initializes a new Device instance.
Parameters
ctx: The IIO context instance with which the device is accesseddevice: A pointer to an iio_device which represents this device
LibIIO.DeviceAttr — TypeDeviceAttr <: AttrRepresents an attribute of an IIO device
LibIIO.DeviceBufferAttr — TypeDeviceAttr <: AttrRepresents a buffer attribute of an IIO device
LibIIO.DeviceDebugAttr — TypeDeviceAttr <: AttrRepresents a debug attribute of an IIO device
LibIIO.Trigger — TypeContains the representation of an IIO device that can act as a trigger.
LibIIO.Trigger — MethodTrigger(ctx::AbstractContext, device::Ptr{iio_device})Initializes a new Trigger instance.
Parameters
ctx: The IIO context instance with which the device is accesseddevice: A pointer to an iio_device which represents this trigger
LibIIO.attrs — Methodattrs(d::AbstractDeviceOrTrigger)List of attributes for the IIO device.
LibIIO.buffer_attrs — Methodbuffer_attrs(d::AbstractDeviceOrTrigger)List of buffer attributes for the IIO device.
LibIIO.channels — Methodchannels(d::AbstractDeviceOrTrigger)List of channels available with this IIO device.
LibIIO.debug_attrs — Methoddebug_attrs(d::AbstractDeviceOrTrigger)List of debug attributes for the IIO device.
LibIIO.find_channel — Functionfind_channel(d::AbstractDeviceOrTrigger, name_or_id, is_output = false)Find an IIO channel by its name or ID.
Parameters
d: The device instancename_or_id: The name or ID of the channel to findis_output: Set to true to search for an output channel
Returns
- The IIO channel as
Channel
LibIIO.frequency! — Methodfrequency!(t::Trigger, value)Set the trigger rate.
LibIIO.frequency — Methodfrequency(t::Trigger)Configured frequency (in Hz) of the trigger.
LibIIO.id — Methodid(d::AbstractDeviceOrTrigger)An identifier of the device, only valid in this IIO context.
LibIIO.label — Methodlabel(d::AbstractDeviceOrTrigger)The label of the device.
LibIIO.name — Methodname(d::AbstractDeviceOrTrigger)The name of the device.
LibIIO.reg_read — Methodreg_read(d::AbstractDeviceOrTrigger, reg)Read the content of a register of this device.
Parameters
d: The device instancereg: The register address
Returns
- The value of the register
LibIIO.reg_write — Methodreg_write(d::AbstractDeviceOrTrigger, reg, value)Set a valie to one register of the device.
Parameters
d: The device instancereg: The register addressvalue; The value that will be used for this register
LibIIO.sample_size — Methodsample_size(d::AbstractDeviceOrTrigger)Sample size of the device. The sample size varies each time channels get enabled or disabled.
LibIIO.set_kernel_buffers_count — Methodset_kernel_buffers_count(d::AbstractDeviceOrTrigger, count)Set the number of kernel buffers to use with the specified device
Parameters
d: The device instancecount: The number of kernel buffers
LibIIO.trigger! — Methodtrigger!(d::Device, trigger::Trigger)Sets the configured trigger for this IIO device.
LibIIO.trigger — Methodtrigger(d::Device)Returns the configured trigger for this IIO device, if present in the current context.