helpers.jl
AdalmPluto.libIIO_jl.iio_decode_blocks
AdalmPluto.libIIO_jl.toString
AdalmPluto.libIIO_jl.toggleNoAssertions
AdalmPluto.libIIO_jl.iio_decode_blocks
— Methodiio_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.
AdalmPluto.libIIO_jl.toString
— MethodtoString(array)
Returns a String
from a Array{UInt8, 1}
. Stops at the first