你好,Geethanjali,
-您已经提到,将端点2定义为BULL IN。因此,只能使用此端点执行读取事务。要执行写事务,需要定义一个外端点。
-注意,TDYPOLL()函数被重复调用。因此,这个函数块中的任何代码都被重复执行。如果在TDYPOLL()块中有与端点6和端点2有关的代码语句,则两个循环都将被执行。
-考虑使用端点0和供应商命令进行I2C EEPROM读/写。
最好的问候,
斯里纳斯
以上来自于百度翻译
以下为原文
Hello Geethanjali,
- You have mentioned that you define endpoint 2 as BULK IN. So, you can only perform read transactions using this endpoint. TO perform write transactions, you need to define an OUT endpoint.
- Also, note that TD_POLL() function is called repeatedly. So, any code within this function block gets executed repeatedly. In case you have code statements pertaining to endpoint 6 and endpoint 2 in TD_POLL() block, both gets executed for every iteration of the loop.
- Consider using endpoint 0 and vendor commands for I2C EEPROM read/write.
Best regards,
Srinath S
你好,Geethanjali,
-您已经提到,将端点2定义为BULL IN。因此,只能使用此端点执行读取事务。要执行写事务,需要定义一个外端点。
-注意,TDYPOLL()函数被重复调用。因此,这个函数块中的任何代码都被重复执行。如果在TDYPOLL()块中有与端点6和端点2有关的代码语句,则两个循环都将被执行。
-考虑使用端点0和供应商命令进行I2C EEPROM读/写。
最好的问候,
斯里纳斯
以上来自于百度翻译
以下为原文
Hello Geethanjali,
- You have mentioned that you define endpoint 2 as BULK IN. So, you can only perform read transactions using this endpoint. TO perform write transactions, you need to define an OUT endpoint.
- Also, note that TD_POLL() function is called repeatedly. So, any code within this function block gets executed repeatedly. In case you have code statements pertaining to endpoint 6 and endpoint 2 in TD_POLL() block, both gets executed for every iteration of the loop.
- Consider using endpoint 0 and vendor commands for I2C EEPROM read/write.
Best regards,
Srinath S
举报