Subversion Repositories HomeAutomation

Rev

Rev 173 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 173 Rev 174
Line 37... Line 37...
37
 
37
 
38
    /*
38
    /*
39
     * <SID>, 9 bits = Sender ID.
39
     * <SID>, 9 bits = Sender ID.
40
     */
40
     */
41
    uint16_t Sid    :9;
41
    uint16_t Sid    :9;
-
 
42
   
-
 
43
    /*
-
 
44
     * DATA section. Contains up to 8 data bytes.
-
 
45
     */
-
 
46
    union {
-
 
47
        /* read as 8bit unsigned data */
-
 
48
        uint8_t bytes[8];
-
 
49
       
-
 
50
        /* read as 16bit unsigned data */
-
 
51
        uint16_t words[4];
-
 
52
       
-
 
53
        /* read as 32bit unsigned data */
-
 
54
        uint32_t dwords[2];
-
 
55
    } Data;
42
 
56
 
43
} Com_Message_t;
57
} Com_Message_t;
44
 
58
 
45
 
59
 
46
/*-----------------------------------------------------------------------------
60
/*-----------------------------------------------------------------------------