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
- Committer:
- AntonLS
- Date:
- 2016-02-11
- Revision:
- 67:5650f461722a
- Child:
- 69:a3295b74209e
File content as of revision 67:5650f461722a:
#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
