This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

USB: sending an structure on InReport instead of BYTE typedef

I want to know how to modify the next function to send an structure and no the typedef BYTE;

USB_WriteEP(0x81,InReport, sizeof(InReport));


the structure is:

typedef struct{
unsigned char   Header;
RTC_TIME TStamp;        // Timestamp Hs,Ms,Ss,mS.
unsigned char IMU[18];
}S_IMUPACKET;


May be there is another way to send the data. I'm all ears :)
Thanks..