Introduction
The package wraps all of the libiio C-functions in Julia functions with the same name. You can load them into your current namespace with
using LibIIO.CLibIIOUsage of these low-level functions is recommended for advanced users who are familiar with the inner workings of iio/libiio. Please not that while the provided functions are almost identical to their C counterparts, they have been modified for some convenience. All functions working with char pointers, take Julia Strings as their inputs and also return Julia strings if the C function would require a modifiable C-pointer. Furthermore, most functions requiring pointers (e.g. buffers) to be passed to the C function will create them within the wrapper and return a Julia-type to the user with the value instead. This requires a bit more allocations but in turn you do not have to take care of pointers and garbage collection issues.
LibIIO.CLibIIO.iio_bufferLibIIO.CLibIIO.iio_chan_typeLibIIO.CLibIIO.iio_channelLibIIO.CLibIIO.iio_contextLibIIO.CLibIIO.iio_context_infoLibIIO.CLibIIO.iio_data_formatLibIIO.CLibIIO.iio_deviceLibIIO.CLibIIO.iio_modifier
LibIIO.CLibIIO.iio_buffer — TypeAn input or output buffer, used to read or write samples
See libiio
LibIIO.CLibIIO.iio_chan_type — Typeiio_chan_typeIIO channel type
An IIO channel has a type specifying the type of data associated with the channel.
See libiio
LibIIO.CLibIIO.iio_channel — TypeRepresents an input or output channel of a device
See libiio
LibIIO.CLibIIO.iio_context — TypeContains the representation of an IIO context
See libiio
LibIIO.CLibIIO.iio_context_info — TypeThe information related to a discovered context
See libiio
LibIIO.CLibIIO.iio_data_format — Typeiio_data_formatContains the format of a data sample.
Data Fields
length::Cuint: Total length of the sample in bitsbits::Cuint: Length of the valuable data in the samples, in bitsshift:Cuint: Right-shift to apply when converting sampleis_signed::Cuchar: Contains true if the sample is signedis_fully_defined::Cuchar: Contains true if the sample is fully defoned, sign extended, etc.is_be::Cuchar: Contains true if the sample is in big-endian formatwith_scale::Cuchar: Contains true if the sample should be scaled or convertedscale::Cdouble: Contains the scale to apply ifwith_scaleis setrepeat::Cuint: Numver of times length repeats
See libiio
LibIIO.CLibIIO.iio_device — TypeRepresents a device in the IIO context
See libiio
LibIIO.CLibIIO.iio_modifier — Typeiio_modifierIIO channel type.
An IIO channel has a type specifying the type of data associated with the channel.
See libiio