#ifndef RF01_h
#define RF01_h

#include <stdint.h>

#define rf01_data       (rf01_buf + 2)

extern unsigned char rf01_buf[]; // recv/xmit buf including hdr & crc bytes

extern void rf01_prepAll();
extern void rf01_receive();

extern void rf01_trans(unsigned short wert);
extern void rf01_init(void);
extern void rf01_setbandwidth(unsigned char bandwidth);
extern void rf01_setreceiver(unsigned char gain, unsigned char drssi);
extern void rf01_setfreq(unsigned short freq);
extern void rf01_setbaud(unsigned short baud);
extern void rf01_rxdata(unsigned char *data, unsigned char number);

#define RF01FREQ(freq)  ((freq-430.0)/0.0025)

extern void blinkLED(void);
extern void makePulse(int numberOfPulses);

#endif