Line 1... |
Line 1... |
1 |
#ifndef RF02_h |
1 |
#ifndef RF02_h |
2 |
#define RF02_h |
2 |
#define RF02_h |
3 |
|
3 |
|
4 |
#include <stdint.h> |
4 |
#include <stdint.h> |
5 |
|
5 |
|
6 |
extern void rf02_prepAll434(); |
6 |
extern void rf02_prepAll(); |
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 |
|
7 |
|
10 |
extern void rf02_sendData(); |
8 |
extern void rf02_sendData(); |
11 |
extern void rf02_changeText( unsigned char* ptr, uint8_t number); |
9 |
extern void rf02_changeText( unsigned char* ptr, uint8_t number); |
12 |
|
10 |
|
13 |
extern void rf02_trans(unsigned short value); |
11 |
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 |
12 |
extern void rf02_txdata(unsigned char* ptr, uint8_t number); // tx data |
20 |
extern void rf02_shiftout(unsigned char value); |
13 |
extern void rf02_shiftout(unsigned char value); |
21 |
|
14 |
|
22 |
|
- |
|
23 |
|
- |
|
24 |
#define RF02FREQ(freq) ((freq-430.0)/0.0025) |
- |
|
25 |
|
- |
|
26 |
#endif |
15 |
#endif |