Rev 170 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 170 | Rev 172 | ||
|---|---|---|---|
| Line 12... | Line 12... | ||
| 12 | /*----------------------------------------------------------------------------- |
12 | /*----------------------------------------------------------------------------- |
| 13 | * Type Definitions |
13 | * Type Definitions |
| 14 | *---------------------------------------------------------------------------*/ |
14 | *---------------------------------------------------------------------------*/ |
| 15 | /** |
15 | /** |
| 16 | * Communication Message Type. |
16 | * Communication Message Type. |
| - | 17 | * |
|
| - | 18 | * IDENT:<FUNCT><FUNCC><NID><SID> DATA:<data7>...<data0> |
|
| - | 19 | * |
|
| 17 | */ |
20 | */ |
| 18 | typedef struct { |
21 | typedef struct { |
| - | 22 | ||
| 19 |
|
23 | /* |
| - | 24 | * <FUNCT>, 4 bits = Function Type. |
|
| - | 25 | */ |
|
| - | 26 | uint8_t Funct; |
|
| - | 27 | ||
| - | 28 | /* |
|
| - | 29 | * <FUNCC>, 10 bits = Function Code. |
|
| - | 30 | */ |
|
| - | 31 | uint16_t Funcc; |
|
| - | 32 | ||
| - | 33 | /* |
|
| - | 34 | * <NID>, 6 bits = Network ID. |
|
| - | 35 | */ |
|
| - | 36 | uint8_t Nid; |
|
| - | 37 | ||
| - | 38 | /* |
|
| - | 39 | * <SID>, 9 bits = Sender ID. |
|
| - | 40 | */ |
|
| - | 41 | uint16_t Sid; |
|
| - | 42 | ||
| 20 | } Com_Message_t; |
43 | } Com_Message_t; |
| 21 | 44 | ||
| 22 | 45 | ||
| 23 | /*----------------------------------------------------------------------------- |
46 | /*----------------------------------------------------------------------------- |
| 24 | * Public Function Prototypes |
47 | * Public Function Prototypes |