2112 |
kakl |
1 |
#ifndef RF02_h |
|
|
2 |
#define RF02_h |
|
|
3 |
|
|
|
4 |
#include <stdint.h> |
|
|
5 |
|
|
|
6 |
extern void rf02_prepAll434(); |
|
|
7 |
extern void rf02_prepAll(unsigned short freq, uint8_t setPower, uint8_t modFreq, unsigned short baudRate); |
|
|
8 |
//extern void rf02_prepAll(unsigned short freq, uint8_t setPower, uint8_t modFreq, unsigned short baudRate); |
|
|
9 |
|
|
|
10 |
extern void rf02_sendData(); |
|
|
11 |
extern void rf02_changeText( unsigned char* ptr, uint8_t number); |
|
|
12 |
|
|
|
13 |
extern void rf02_trans(unsigned short value); |
|
|
14 |
extern void rf02_init(void); // init functions |
|
|
15 |
extern void rf02_setmodfreq(uint8_t bandwidth); // set modulation deviation |
|
|
16 |
extern void rf02_setfreq(unsigned short freq); // set tx frequency |
|
|
17 |
extern void rf02_setpower(uint8_t power); // set power (0-7) |
|
|
18 |
extern void rf02_setbaud(unsigned short baud); // set baudrate |
|
|
19 |
extern void rf02_txdata(unsigned char* ptr, uint8_t number); // tx data |
|
|
20 |
extern void rf02_shiftout(unsigned char value); |
|
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
#define RF02FREQ(freq) ((freq-430.0)/0.0025) |
|
|
25 |
|
|
|
26 |
#endif |