GLAST/LAT > DAQ and FSW > FSW > Index by Name within Package

CADDR32 offset - Telecommand Bitfield


"32-Bit Address/Offset Bitfield" (SVC/MEM)

View Options: (help)

Ancestry:

Definition:

    Alignment:4-byte boundary
    APID:1604/0x644:9
    Attribute(s):
    C type:unsigned int
    Length: 32 bits (4 bytes)
    Offset:0x00C

Description:

    Bitfield containing the full 32 bits of the starting address or offset.

Layout: (hide detail; help)

    Start Stop Size Item Type and Name

    typedef struct _MEM_CADDR32_Bfl {
    
        #if ENDIANNESS_IS_BIG
    
        /* Upper 16 Bits of Address/Offset */
        unsigned int         hi:16;
    
        /* Lower 16 Bits of Address/Offset */
        unsigned int         lo:16;
    
        #elif ENDIANNESS_IS_LITTLE
    
        /* Lower 16 Bits of Address/Offset */
        unsigned int         lo:16;
    
        /* Upper 16 Bits of Address/Offset */
        unsigned int         hi:16;
    
        #else
    
        #error _FILE_ ENDIANNESS NOT DEFINED
    
        #endif
    
    } __attribute__((packed)) MEM_CADDR32_Bfl;
    
    typedef union _MEM_CADDR32 {
    
        /* underlying unsigned int */
        unsigned int                    ui;
    
        /* struct mapped bitfield */
        struct _MEM_CADDR32_Bfl         bf;
    
    } MEM_CADDR32;