i2c-lpi2c

I2C manager for Lower Power I2C interface

Syntax:

i2c-lpi2c [options]

Runs on:

QNX OS

Options:

There are phyBOARD-NASH-specific (single-dash) and generic (double-dash) options available.
CAUTION:
The phyBOARD-NASH-specific options must always appear before generic options, otherwise the driver fails to initialize. For example, the correct sequence would as follows:
i2c-lpi2c -v --u0 
However, if you incorrectly issue the command in the wrong sequence as shown here, it will fail:
i2c-lpi2c --u0 -v 

phyBOARD-NASH-specific options:

These are the board-specific options available for this driver.

-b
Driver in blocking mode. Transmits are not interrupt driven. DEPRECATED option.
-c clock
Input clock. If this option isn't specified, the default is 24000000 Hz.
-i intr
IRQ number. (Default: -1)
-I interface
I2C unit number in HWI table(0 | 1 | 2 | 3 | .. Default: 0).
-p physbase
Device physical base address. (Default: 0)
-r retry
Number of retries before NACK is detected. If the specified timeout is a non-zero value and NACK is detected, a transaction is repeated the maximum of timeout-times where timeout can be value between 0-255. The default is 0.
-t timeout
Command timeout value, in milliseconds. The default is 1000 ms.
-v
Set to be verbose.

Generic options:

These are generic options for the driver.

--b bus_speed
The default bus speed. If this option isn't specified, the default is 100000.
--u unit
Unit number. Number to append to device name prefix (/dev/i2c). The default is 0.
Page updated: