unsignedshortint DataToTransfer[512]; //The Data is in there (I'm sure)
//(...)
unsignedint b;
for(b=0;b<16;b++)
{
unsignedint l;
for(l=0;l<1;l++){
unsignedint j,i;
for(j=0, i=0;j<64;j++)
{
INPacket[j]=DataToTransfer[i];
j++;
INPacket[j]=DataToTransfer[i]>>8;
i++;
}
if(!USBHandleBusy(USBGenericInHandle))
{
USBGenericInHandle = USBGenWrite(USBGEN_EP_NUM,(BYTE*)&INPacket,USBGEN_EP_SIZE);
}
}
}
When I use this code, the first 32 values of the array are send and displayed in a chart 16 times (16*32=512). I just need to shift the array to send not the same 32 values but the other values in the array. Using pointers is the correct way but I dont know how.
I know I need to assign a pointer: shortint *ptr;
and then assign it to other part of the array I don't know how. Could anyone help me?