芯正
2021-07-22 11:36
采纳率: 60%
浏览 88

CYAPI bulk传输问题

for (int i=1; i<eptCount; i++)
        {
            bool bIn = ((USBDevice->EndPoints[i]->Address & 0x80) == 0x80);
            bool bBulk = (USBDevice->EndPoints[i]->Attributes == 2);
            if (bBulk && bIn) BulkInEpt = (CCyBulkEndPoint *) USBDevice->EndPoints[i];
            if (bBulk && !bIn) BulkOutEpt = (CCyBulkEndPoint *) USBDevice->EndPoints[i];
        }

请问以上四句话代表什么意思?希望能详细点

2条回答 默认 最新

相关推荐 更多相似问题