Rev 73 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 73 | Rev 127 | ||
|---|---|---|---|
| 1 | /** |
1 | /** |
| 2 | * Parser for the home automation protocol. |
2 | * Parser for the home automation protocol. |
| 3 | * |
3 | * |
| 4 | * @date 2006-10-29 |
4 | * @date 2006-10-29 |
| 5 | * @author Jimmy Myhrman |
5 | * @author Jimmy Myhrman |
| 6 | */ |
6 | */ |
| 7 | 7 | ||
| 8 | /*----------------------------------------------------------------------------- |
8 | /*----------------------------------------------------------------------------- |
| 9 | * Includes |
9 | * Includes |
| 10 | *---------------------------------------------------------------------------*/ |
10 | *---------------------------------------------------------------------------*/ |
| 11 | #include <protocol.h> |
11 | #include <protocol.h> |
| 12 | #include <can.h> |
12 | #include <can.h> |
| 13 | 13 | ||
| 14 | /*----------------------------------------------------------------------------- |
14 | /*----------------------------------------------------------------------------- |
| 15 | * Public Functions |
15 | * Public Functions |
| 16 | *---------------------------------------------------------------------------*/ |
16 | *---------------------------------------------------------------------------*/ |
| 17 | 17 | ||
| 18 | void ProtocolParseCanMessage( |
18 | void ProtocolParseCanMessage(Can_Message_t *cmsg) { |
| 19 | /* parse as protocol message */ |
19 | /* parse as protocol message */ |
| 20 | ProtocolMessage_t pmsg; |
20 | ProtocolMessage_t pmsg; |
| 21 | pmsg.Header.Raw = cmsg->Id; |
21 | pmsg.Header.Raw = cmsg->Id; |
| 22 | } |
22 | } |
| 23 | 23 | ||