helpers.jl

AdalmPluto.libIIO_jl.iio_decode_blocksMethod
iio_decode_blocks(buf, size)

Decodes an array of blocks containing attributes values. Those come from iio_[target]_attr_read functions when C_NULL ("" for the julia wrapper) is passed as the attribute to read.

Arguments

  • buf::Array{UInt8} : an array containing the blocks returned by an IIO function.
  • size::Cssize_t : the total size of the blocks in the array

Returns

An array containing :

  • (errno::Int, "") for attributes that cannot be read as a string, where errno is a negative error number.
  • (size::Int, value::String) for attributes that can be read. Size is the size of the block and not the actual size of the value.
source
AdalmPluto.libIIO_jl.toggleNoAssertionsFunction
toggleNoAssertions([value])

Toggles the assertions in the libIIO_jl module.

Arguments

  • value::Bool : an optional value to set the NO_ASSERT toggle to.

Returns

  • NO_ASSERT::Bool : the actual value of the NO_ASSERT toggle.
source