Hi,
我在用python脚本重新实现DLPC350的通信。我没太理解dlpu010g-DLPC350 Programmer Guide文档里面关于sequence byte的解释。
文档描述是:
Host sends the sequence byte. When a single command is more than 64 bytes, the command is sent
as multiple USB packets and the sequence byte numbers the packets so the device can assemble
them in the right sequence. In other cases, this value is irrelevant and generally set to 0.
这是说当command+数据大于64bytes就需要修改sequence byte么?
我看SDK源码里面DLPC_PrepReadCmd 这个byte是设置为0,而DLPC_PrepWriteCmd这个byte又是全局变量g_SeqNum++。这是为什么?