Holger Hans Peter Freyther | a7d50bf | 2013-12-23 14:26:36 +0100 | [diff] [blame^] | 1 | #ifndef protocol_h |
| 2 | #define protocol_h |
| 3 | |
| 4 | #include <stdint.h> |
| 5 | |
| 6 | /* |
| 7 | * 79 00 03 00 06 00 9C 76 B6 07 00 00 D4 00 00 00 y......v¶...Ô... |
| 8 | * 02 00 00 00 39 00 00 00 63 F9 FF FF 00 00 00 00 ....9...cùÿÿ.... |
| 9 | * 41 43 51 20 53 74 61 72 74 65 64 2C 20 41 52 46 ACQ.Started,.ARF |
| 10 | * 43 4E 3D 25 64 2C 20 52 78 50 57 52 78 31 36 3D CN=%d,.RxPWRx16= |
| 11 | * 25 64 00 6C 31 5F 61 63 71 2E 63 00 %d.l1_acq.c. |
| 12 | */ |
| 13 | |
| 14 | struct ext_log_msg { |
| 15 | uint8_t type; |
| 16 | uint16_t unknown1; /* 0x00 0x03 type??? */ |
| 17 | uint16_t unknown2; /* 0x00 0x06 type??? */ |
| 18 | uint64_t timestamp; /* More 32 bit but dm-commands.h */ |
| 19 | uint8_t unknown3[3]; /* 0x00 0x00 0x00 */ |
| 20 | uint32_t unknown4; /* 0x02 0x00 0x00 0x00 */ |
| 21 | int32_t params[3]; /* three params */ |
| 22 | uint8_t data[0]; /* two NULL terminated strings from here */ |
| 23 | } __attribute__((packed)); |
| 24 | |
| 25 | #endif |