Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
radio.h@1:5fc0c0996264, 2017-10-11 (annotated)
- Committer:
- Cheroukee
- Date:
- Wed Oct 11 18:57:19 2017 +0000
- Revision:
- 1:5fc0c0996264
- Parent:
- 0:5999fed1929b
- Child:
- 2:fdb34827d964
Added structure for messages
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Cheroukee | 1:5fc0c0996264 | 1 | |
Cheroukee | 1:5fc0c0996264 | 2 | #define HEADER_DELIMITER 0b01010101 |
Cheroukee | 1:5fc0c0996264 | 3 | |
Cheroukee | 1:5fc0c0996264 | 4 | #define HEADER_START 0b11111110 |
Cheroukee | 1:5fc0c0996264 | 5 | |
Cheroukee | 1:5fc0c0996264 | 6 | #define FOOTER_END 0b11111110 |
Cheroukee | 1:5fc0c0996264 | 7 | |
Cheroukee | 1:5fc0c0996264 | 8 | #define MAX_MESSAGE_LENGTH 80 |
Cheroukee | 1:5fc0c0996264 | 9 | |
Cheroukee | 1:5fc0c0996264 | 10 | typedef byte char; |
Cheroukee | 1:5fc0c0996264 | 11 | |
Cheroukee | 1:5fc0c0996264 | 12 | typedef struct { |
Cheroukee | 1:5fc0c0996264 | 13 | byte preambule; |
Cheroukee | 1:5fc0c0996264 | 14 | byte start; |
Cheroukee | 1:5fc0c0996264 | 15 | byte options; |
Cheroukee | 1:5fc0c0996264 | 16 | byte length; |
Cheroukee | 1:5fc0c0996264 | 17 | byte[MAX_MESSAGE_LENGTH] data; |
Cheroukee | 1:5fc0c0996264 | 18 | byte control; |
Cheroukee | 1:5fc0c0996264 | 19 | byte end; |
Cheroukee | 1:5fc0c0996264 | 20 | } radio_message_t; |
Cheroukee | 1:5fc0c0996264 | 21 | |
Cheroukee | 1:5fc0c0996264 | 22 | // Private |
Cheroukee | 1:5fc0c0996264 | 23 | |
Cheroukee | 1:5fc0c0996264 | 24 | |
Cheroukee | 1:5fc0c0996264 | 25 | |
Cheroukee | 1:5fc0c0996264 | 26 | // API |