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.
Fork of football_project by
Radio.hh@67:5650f461722a, 2016-02-11 (annotated)
- Committer:
- AntonLS
- Date:
- Thu Feb 11 17:47:28 2016 +0000
- Revision:
- 67:5650f461722a
- Child:
- 69:a3295b74209e
Radio message arch like old cones. Static or Auto node IDs. Missed ack detect. Dark alert fix. Fixes cone death.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| AntonLS | 67:5650f461722a | 1 | #ifndef RADIO_HH |
| AntonLS | 67:5650f461722a | 2 | #define RADIO_HH |
| AntonLS | 67:5650f461722a | 3 | |
| AntonLS | 67:5650f461722a | 4 | #include "types.h" |
| AntonLS | 67:5650f461722a | 5 | |
| AntonLS | 67:5650f461722a | 6 | #define ACK_TIME 20 // max msec for ACK wait - Was 50 |
| AntonLS | 67:5650f461722a | 7 | |
| AntonLS | 67:5650f461722a | 8 | void radio_send( Message *m, bool requestACK=true ); //// |
| AntonLS | 67:5650f461722a | 9 | /// bool radio_send(Message *m); |
| AntonLS | 67:5650f461722a | 10 | |
| AntonLS | 67:5650f461722a | 11 | bool radio_receive_complete(); |
| AntonLS | 67:5650f461722a | 12 | |
| AntonLS | 67:5650f461722a | 13 | bool radio_receive(Message *m); |
| AntonLS | 67:5650f461722a | 14 | |
| AntonLS | 67:5650f461722a | 15 | void radio_send_ack(); //// |
| AntonLS | 67:5650f461722a | 16 | |
| AntonLS | 67:5650f461722a | 17 | bool radio_ack_received(int cone); |
| AntonLS | 67:5650f461722a | 18 | |
| AntonLS | 67:5650f461722a | 19 | void radio_loop(int mac); |
| AntonLS | 67:5650f461722a | 20 | |
| AntonLS | 67:5650f461722a | 21 | void radio_init(); |
| AntonLS | 67:5650f461722a | 22 | |
| AntonLS | 67:5650f461722a | 23 | //void radio_check_recv(); |
| AntonLS | 67:5650f461722a | 24 | |
| AntonLS | 67:5650f461722a | 25 | |
| AntonLS | 67:5650f461722a | 26 | //// ... |
| AntonLS | 67:5650f461722a | 27 | int16_t get_rssi(); |
| AntonLS | 67:5650f461722a | 28 | |
| AntonLS | 67:5650f461722a | 29 | bool get_crc_ok(); |
| AntonLS | 67:5650f461722a | 30 | |
| AntonLS | 67:5650f461722a | 31 | bool get_fifo_ov(); |
| AntonLS | 67:5650f461722a | 32 | |
| AntonLS | 67:5650f461722a | 33 | void read_all_regs(); |
| AntonLS | 67:5650f461722a | 34 | |
| AntonLS | 67:5650f461722a | 35 | |
| AntonLS | 67:5650f461722a | 36 | #endif |
