- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I want to use function I2C_SensorRead to verify that the data was successfully written to the register. But I have no ideal how to use it and how to provide register address and see the value of register.
And why the warning occur?
Best regards,
ZhangWan
Solved! Go to Solution.
- Labels:
-
USB Superspeed Peripherals
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello ZhangWan,
The function I2C_SensorRead accepts three parameters. The description of each parameter is given below:
1. regAddr: This is a 16 bit parameter. This parameter is used to specify the register address of the image sensor from which read needs to be done.
2. count: This parameter is used to specify the size of I2C transfer in bytes.
3. *buf: This is the pointer to the buffer that will hold the data after read operation.
The I2C_SensorRead can be used in the same way as I2C_SensorWrite.
For removing the warning, please change the I2C_SensorWrite calls as follows:
I2C_SensorWrite (configSettings[regCounter].regAddr, 1, rwBuffer);
Jayakrishna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello ZhangWan,
The function I2C_SensorRead accepts three parameters. The description of each parameter is given below:
1. regAddr: This is a 16 bit parameter. This parameter is used to specify the register address of the image sensor from which read needs to be done.
2. count: This parameter is used to specify the size of I2C transfer in bytes.
3. *buf: This is the pointer to the buffer that will hold the data after read operation.
The I2C_SensorRead can be used in the same way as I2C_SensorWrite.
For removing the warning, please change the I2C_SensorWrite calls as follows:
I2C_SensorWrite (configSettings[regCounter].regAddr, 1, rwBuffer);
Jayakrishna