Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef union _MessagePureData_TypeDef
- {
- signed int S32[1];
- unsigned int U32[1];
- unsigned short U16[2];
- signed short S16[2];
- unsigned char U8[4];
- } messagePureData;
- typedef union _MessageData_TypeDef
- {
- unsigned char ptr[6];
- struct
- {
- unsigned char srcDevice;
- unsigned char srcSpecifier;
- messagePureData data;
- } section;
- } messageData;
- messageData.section.srcDevice = 0xAA;
- messageData.section.srcSpecifier = 0xBB;
- messageData.section.data.U32 = 0x11223344;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement