Andriy Makukha / Mbed 2 deprecated football_project_wo_output

Dependencies:   mbed

Fork of football_project by MZJ

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