圍紀實驗室
Advertisement

i2c-tools

The original i2cget command supports only a byte or word read. To read the values set in subaddress 0x4b (R/G/B LED current) or subaddress 0x60 (keystone settings) of the TI DPP6401F DLP processor, the I2C block read is required. So I modified i2cget.c to include I2C block read for DPP6401F.
However, although the values of those subaddresses of DPP6401F mentioned above are 6 bytes (or 3 words) in length, the first byte obtained by calling i2c_smbus_read_i2c_block_data() is always 0x00 (the status byte??); therefore to get all the 6 bytes of the data in subaddresses 0x4b or 0x60 of DPP6401F, the length parameter passed to i2c_smbus_read_i2c_block_data() must be greater than 6 (I opted for 8 in the modified i2cget.c.)


Advertisement