Revision 244, 0.8 kB
(checked in by phil, 4 years ago)
|
added initial Tail Source Package
|
Line | |
---|
1 |
// File: RF.h |
---|
2 |
//------------------------------------------------------------------------------ |
---|
3 |
// Author: Giovanni de Sanctis |
---|
4 |
// Email: info@lateral-technologies.com |
---|
5 |
//------------------------------------------------------------------------------ |
---|
6 |
// Date: Sep 2019 |
---|
7 |
// RF remote decoder |
---|
8 |
//------------------------------------------------------------------------------ |
---|
9 |
|
---|
10 |
|
---|
11 |
#ifndef RF_H |
---|
12 |
#define RF_H |
---|
13 |
|
---|
14 |
#include <stdint.h> |
---|
15 |
|
---|
16 |
#define RF_A 0x01u |
---|
17 |
#define RF_B 0x02u |
---|
18 |
#define RF_C 0x03u |
---|
19 |
#define RF_D 0x04u |
---|
20 |
|
---|
21 |
#define RF_LONG_MASK 0x80u |
---|
22 |
#define RF_LONG_A RF_LONG_MASK|RF_A |
---|
23 |
#define RF_LONG_B RF_LONG_MASK|RF_B |
---|
24 |
#define RF_LONG_C RF_LONG_MASK|RF_C |
---|
25 |
#define RF_LONG_D RF_LONG_MASK|RF_D |
---|
26 |
|
---|
27 |
void initRF(); |
---|
28 |
uint8_t rfGetNewCode(); |
---|
29 |
uint8_t isRFreceiving(); |
---|
30 |
#endif /* RF_H */ |
---|
31 |
|
---|