void GetUSBCmd(void) { /* here I receive the host command */ iLen = USBHwEPRead(BULK_CMD_OUT_EP, abBulkBuf, sizeof(abBulkBuf)); if( .... ) { /* here I make some controls on the command received from the host and If it is correct I reply with a confirmation message that I send here after */ iLen = USBHwEPWrite(BULK_CMD_IN_EP, abBulkBuf, 0x10); } } |