Hello,
I am using Mips 32 target and i use below structure
typedef struct packet_t {
unsigned int length;
unsigned short int value;
unsigned id;
union {
struct {
unsigned int p1;
unsigned int p2;
} patterns;
unsigned char data[3]
}load;
} packet;
when i use
packet mypacket;
mypacket.length = 10;
mypacket.value = 1;
mypacket.id = 1251
and so on,
the data passed is
"00 00 00 10 "
"00 01"
"12 51"
whereas the correct data that i need to pass is
"10 00 00 00"
"01 00"
"51 12"
some endian ness issue is coming,
please tell me, how can i convert my data in above format...
regards,
Simon.
_______________________________________________
ilugd mailinglist -- [email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
http://www.mail-archive.com/[email protected]/