avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Order of bytes


From: Royce Pereira
Subject: [avr-gcc-list] Order of bytes
Date: Sun, 07 Oct 2007 20:58:29 +0530
User-agent: Opera Mail/9.22 (Win32)

Hi,

Sorry for my rusty C,

In the following union

union
     {
        uint32_t as_ul;

        struct
           {
                uint8_t by0;
                uint8_t by1;
                uint8_t by2;
                uint8_t by3;
           }
        asbyte;
      }
    lvar;

What is the order of the bytes? by0= MSB, or by3= MSB ?
AVR stores low byte at the lower address. Is this order retained in the above 
example?

Thanks,

--Royce

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]