![]() |
i2c
1.4.2
RoadNarrows Robotics I2C Package
|
i2ctrans - Do a write/read transaction for a device on the I2C Bus
i2ctrans [OPTIONS] byte1 [byte2 ...]
Perform a message request/response transaction with a device of the given address on the I2C Bus. The specified bytes are writen to the device. Then <count> bytes are read. The bytes read are printed to stdout
in ASCII hex format.
-a, --address=<addr> I2C device 7-bit address. REQUIRED. -c, --count=<count> Read count bytes. DEFAULT: 1 -d, --device=<device> I2C device. DEFAULT: /dev/i2c/0 --fd=<n> Opened I2C device file descriptor. -v, --verbose Set print verbosity. DEFAULT: false RNR_OPTIONS Standard set of options provided by librnr.
Exit status is 0 if the transaction was completed successfully. Exist status is >= 2 if error(s) are encountered.
I2CCHECK(1), I2CREAD(1), I2CSCAN(1), I2CWRITE(1)
Robin Knight (robin) .kni ght@r oadn arrow s.co m
(C) 2007. RoadNarrows LLC. (http://www.roadnarrows.com)
All Rights Reserved