Comments below...

On Sun, Oct 24, 2010 at 3:32 AM, Paul Boniol <[email protected]> wrote:
...
>
> BYTE btNumBytesReceived : 3;
> BYTE btReserved1 : 5;
>
> These lines appear to be the reverse of the order I'm seeing the data
> in.  Of course they could have accidentally reversed the lines when
> writing it up.
>

This is a bit field in C:

http://en.wikipedia.org/wiki/C_syntax#Bit_fields

The reversed order you are seeing is probably due to endianness
issues.  Really experimentation the best way to figure out exactly how
a compiler orders bit fields on a specific platform.

HTH,

Jamie

-- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en

Reply via email to