void HID_IntOutCallback(void * pVoid) { uint8_t *pu8EpBuf; uint32_t u32Size; //get the data payload of current data out packet pu8EpBuf = DrvUSB_GetOutData(HID_OUT_EP_NUM, &u32Size); if ((uint32_t)pfHID_SetOutReport) pfHID_SetOutReport(pu8EpBuf); DrvUSB_DataOutTrigger(HID_OUT_EP_NUM, HID_MAX_PACKET_SIZE_EP2); // Trigger data out ready flag by write MXPLD register }
void HID_IntOutCallback(void * pVoid) { uint8_t *pu8EpBuf; uint32_t u32Size; pu8EpBuf = DrvUSB_GetOutData(HID_OUT_EP_NUM, &u32Size); if ((uint32_t)pfHID_SetOutReport) pfHID_SetOutReport(pu8EpBuf, u32Size); DrvUSB_DataOutTrigger(HID_OUT_EP_NUM, HID_MAX_PACKET_SIZE_INT_OUT); }