if(u32Pages) {
/* Update data to page buffer to upload */
/* TODO: We need to update the page data if got a page read command. (0xFF is used in this sample code) */
for(i=0; i<PAGE_SIZE; i++)
g_u8PageBuff[i] = 0xFF;
g_u32BytesInPageBuf = PAGE_SIZE;
/* The signature word is used as page counter */
pCmd->u32Signature = 1;
/* Trigger HID IN */
len = Minimum(g_u32EpAMaxPacketSize, g_u32BytesInPageBuf);