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
Diff: Radio.hh
- Revision:
- 67:5650f461722a
- Child:
- 69:a3295b74209e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Radio.hh Thu Feb 11 17:47:28 2016 +0000 @@ -0,0 +1,36 @@ +#ifndef RADIO_HH +#define RADIO_HH + +#include "types.h" + +#define ACK_TIME 20 // max msec for ACK wait - Was 50 + +void radio_send( Message *m, bool requestACK=true ); //// +/// bool radio_send(Message *m); + +bool radio_receive_complete(); + +bool radio_receive(Message *m); + +void radio_send_ack(); //// + +bool radio_ack_received(int cone); + +void radio_loop(int mac); + +void radio_init(); + +//void radio_check_recv(); + + +//// ... +int16_t get_rssi(); + +bool get_crc_ok(); + +bool get_fifo_ov(); + +void read_all_regs(); + + +#endif
