Rev 172 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 172 | Rev 173 | ||
|---|---|---|---|
| Line 21... | Line 21... | ||
| 21 | typedef struct { |
21 | typedef struct { |
| 22 | 22 | ||
| 23 | /* |
23 | /* |
| 24 | * <FUNCT>, 4 bits = Function Type. |
24 | * <FUNCT>, 4 bits = Function Type. |
| 25 | */ |
25 | */ |
| 26 | uint8_t Funct; |
26 | uint8_t Funct :4; |
| 27 | 27 | ||
| 28 | /* |
28 | /* |
| 29 | * <FUNCC>, 10 bits = Function Code. |
29 | * <FUNCC>, 10 bits = Function Code. |
| 30 | */ |
30 | */ |
| 31 | uint16_t Funcc; |
31 | uint16_t Funcc :10; |
| 32 | 32 | ||
| 33 | /* |
33 | /* |
| 34 | * <NID>, 6 bits = Network ID. |
34 | * <NID>, 6 bits = Network ID. |
| 35 | */ |
35 | */ |
| 36 | uint8_t Nid; |
36 | uint8_t Nid :6; |
| 37 | 37 | ||
| 38 | /* |
38 | /* |
| 39 | * <SID>, 9 bits = Sender ID. |
39 | * <SID>, 9 bits = Sender ID. |
| 40 | */ |
40 | */ |
| 41 | uint16_t Sid; |
41 | uint16_t Sid :9; |
| 42 | 42 | ||
| 43 | } Com_Message_t; |
43 | } Com_Message_t; |
| 44 | 44 | ||
| 45 | 45 | ||
| 46 | /*----------------------------------------------------------------------------- |
46 | /*----------------------------------------------------------------------------- |