Rev Author Line No. Line
2112 kakl 1 #ifndef RF01_h
2 #define RF01_h
3  
4 #include <stdint.h>
5  
6 #define rf01_data (rf01_buf + 2)
7  
8 extern unsigned char rf01_buf[]; // recv/xmit buf including hdr & crc bytes
9  
10 extern void rf01_prepAll();
11 extern void rf01_receive();
12  
13 extern void rf01_trans(unsigned short wert);
14 extern void rf01_init(void);
15 extern void rf01_setbandwidth(unsigned char bandwidth);
16 extern void rf01_setreceiver(unsigned char gain, unsigned char drssi);
17 extern void rf01_setfreq(unsigned short freq);
18 extern void rf01_setbaud(unsigned short baud);
19 extern void rf01_rxdata(unsigned char *data, unsigned char number);
20  
21 #define RF01FREQ(freq) ((freq-430.0)/0.0025)
22  
23 extern void blinkLED(void);
24 extern void makePulse(int numberOfPulses);
25  
26 #endif