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@2:fdb34827d964, 2017-10-11 (annotated)
- Committer:
- Cheroukee
- Date:
- Wed Oct 11 19:14:21 2017 +0000
- Revision:
- 2:fdb34827d964
- Parent:
- 1:5fc0c0996264
- Child:
- 3:6ea97936f6fa
Added functions and includes in radio.cpp
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 | 2:fdb34827d964 | 10 | typedef char byte; |
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 | 2:fdb34827d964 | 17 | byte data[MAX_MESSAGE_LENGTH]; |
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 | 2:fdb34827d964 | 24 | void setup_interrupt_in(); |
Cheroukee | 1:5fc0c0996264 | 25 | |
Cheroukee | 1:5fc0c0996264 | 26 | |
Cheroukee | 2:fdb34827d964 | 27 | // API |
Cheroukee | 2:fdb34827d964 | 28 | |
Cheroukee | 2:fdb34827d964 | 29 | void init_radio_system(); |