Andriy Makukha / Mbed 2 deprecated football_project_wo_output

Dependencies:   mbed

Fork of football_project by MZJ

Radio.hh

Committer:
AntonLS
Date:
2016-02-12
Revision:
69:a3295b74209e
Parent:
67:5650f461722a

File content as of revision 69:a3295b74209e:

#ifndef RADIO_HH
#define RADIO_HH

#include "types.h"

#define ACK_TIME       20                  // max msec for ACK wait - Was 50

void radio_send_raw( uint8_t toAddress, const void* buffer, uint8_t bufferSize, bool requestACK=true );  ////

void radio_send( Message *m, bool requestACK=true );  ////
/// bool radio_send(Message *m);

bool radio_receive_complete();

bool radio_receive(Message *m);

void radio_ensure_rx_mode();  ////

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