iio_reg(1)
π iio_reg(1) β do a low level read or write to SPI or I2C register β¨
okay bestie so this is iio_reg, part of the LibIIO Utilities crew π«Ά she's a little utility that goes β¨deepβ¨ into your IIO device and pokes at the SPI or I2C registers. yeah. like that.
πΈ NAME πΈ
iio_reg β do a low level read or write to SPI or I2C register π
π SYNOPSIS π
iio_reg [ options ] <device> <register> [<value>]
likeβ¦ that's it. that's the whole vibe. <device>, <register>, and maybe a <value> if you're feeling spicy π₯
π¦ DESCRIPTION π¦
so iio_reg is a utility for debugging local or remote IIO devices. and I need you to hear me on this one:
π¨ it should NOT be used by normal users. no cap. π¨
it's normally used by driver developers during development, or by end users who are debugging a driver, or who are sending in a feature request. she's a developer tool, she's not for vibes-only usage, okay? π
what she does is give you a mechanism to read or write SPI or I2C registers for IIO devices. which is genuinely so useful when you're troubleshooting IIO devices and trying to understand how the Linux IIO subsystem is managing the device. it's giving "peek behind the curtain" energy π
β¨ OPTIONS β¨
-h,--helpβ tellsiio_regto display some help, and then quit. she says her piece and leaves. iconic behavior π-V,--versionβ prints the version information for this particular copy ofiio_regand the version of thelibiiolibrary it is using. super handy for knowing if the version of the library andiio_regon your system are up to date ποΈ and also super handy when you're reporting bugs π-S,--scan [backends]β scan for available IIO contexts! π¦ optional arg of specific backend(s):'ip','usb'or'ip:usb'. specific options for USB include Vendor ID, Product ID to limit scanning to specific devices:'usb=0456,b673'.vid,pidare hexadecimal numbers (no prefix needed),"*"(match any for pid only) β. if no argument is given, it checks all that are available.-u,--uriβ the Uniform Resource Identifier (uri) for connecting to devices. can be one of:ip:[address]β network address, either numeric (192.168.0.1) or network hostname πip:β blank, if compiled with zeroconf support, will find an IIO device on network β¨usb:[device:port:instance]β normally returned fromiio_reg -Sπserial:[port],[baud],[settings]β which are controlled, and need to match theiiod(ortinyiiod) on the other end of the serial port. π[port]is something like'/dev/ttyUSB0'on Linux, and'COM4'on Windows.[baud]is is normally one of110,300,600,1200,2400,4800,9600,14400,19200,38400,57600,115200[default],128000or256000, but can vary system to system.[settings]would normally be configured as'8n1'β this is controlled by:data_bits:β (5,6,7,8[default], or9)parity_bits:β ('n'none [default],'o'odd,'e'even,'m'mark, or's'space)stop_bits:β (1[default, or2)flow_control:β ('0'none [default],'x'Xon Xoff,'r'RTSCTS, or'd'DTRDSR)
local:β with no address part. π
π RETURN VALUE π
if the specified device is not found, a non-zero exit code is returned. so likeβ¦ check that exit code, bestie. don't just assume it worked π
π SEE ALSO π
iio_attr(1), iio_info(1), iio_readdev(1), iio_reg(1), iio_writedev(1), libiio(3)
libiio home page: https://wiki.analog.com/resources/tools-software/linux-software/libiio
libiio code: https://github.com/analogdevicesinc/libiio
Doxygen for libiio https://analogdevicesinc.github.io/libiio/
(go read those. iykyk πβ¨)
π BUGS π
all bugs are tracked at: https://github.com/analogdevicesinc/libiio/issues
(if you found one, go tell them!! they wanna know fr fr ππ«Ά)
and that's the whole page, bestie π this was iio_reg(1) from the libiio-0.26 era β dated 06 February 2026, which is literally so future-coded of her. stay safe out there poking registers, no cap πβ¨
π¦ where this page comes from
- ubuntu resolute: libiio-utils 0.26-2build2 Β· LGPL-2.1-or-later
- ubuntu stonking: libiio-utils 0.26-2build2 Β· LGPL-2.1-or-later
- Copyright (c) 2018-2020 Robin Getz
- Copyright (c) 2018-2020 Analog Devices Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms