-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I2C_State_Check return value meaning #6
Comments
I2C_State_Check() is Read a 0x10 Register. http://ww1.microchip.com/downloads/en/DeviceDoc/20005565B.pdf Please look at page 23. 3.1 USB HID Commands/Responses This is the content of I2C_State_Check. |
Yes, it is byte[8] of the Response 1 Structure, described as the Internal I2C state machine state value. But what do the various values (responses I see are 37, 69, 98, etc.) actually mean? |
Aaaaa..... I remember !! I wrote it because the Microchip Linux driver is in C language. http://ww1.microchip.com/downloads/en/DeviceDoc/mcp2221_0_1.tar.gz The driver has the following declaration statement. i2c-mcp2221.c#define RESP_I2C_IDLE 0x00 Is it right? (responses I see are 37, 69, 98, etc.) 37 = 0x25 = RESP_I2C_WRADDRL_NACK ? Can someone test it? |
Thanks, that's quite helpful already. I cannot verify this, but I can possibly shed some light on the meaning of 37/0x25 and 69/0x45: |
Can you please tell me how to interpret the values that I2C_State_Check() return?
Thanks in advance,
Beat
The text was updated successfully, but these errors were encountered: