本帖最后由 缥缈九哥 于 2012-9-14 12:04 编辑
/* This callback will be executed whenever the interrupt IN transaction is received from HOST to get
report. */
void HID_GetInReport(uint8_t *buf)
//这是干啥用的?
{
}
/* This callback will be executed whenever the interrupt OUT transaction is received from HOST to set
report. */
void HID_SetOutReport(uint8_t *pu8EpBuf)
//这是干啥用的?
{
uint32_t u32Size = (uint32_t)pu8EpBuf[1];
//Set new index
g_u8CmdIndex = pu8EpBuf[0];
V6M_ProcessCommand((uint8_t *)&pu8EpBuf[2], u32Size); |