forked from pimatic/RFControl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RFControl.h
26 lines (24 loc) · 974 Bytes
/
RFControl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
RFControl.h -
*/
#ifndef ArduinoRf_h
#define ArduinoRf_h
class RFControl
{
public:
static unsigned int getPulseLengthDivider();
static void startReceiving(int interruptPin);
static void stopReceiving();
static bool hasData();
static void getRaw(unsigned int **timings, unsigned int* timings_size);
static void continueReceiving();
static bool compressTimings(unsigned int buckets[8], unsigned int *timings, unsigned int timings_size);
static bool compressTimingsAndSortBuckets(unsigned int buckets[8], unsigned int *timings, unsigned int timings_size);
static void sendByTimings(int transmitterPin, unsigned int *timings, unsigned int timings_size, unsigned int repeats = 3);
static void sendByCompressedTimings(int transmitterPin, unsigned long* buckets, char* compressTimings, unsigned int repeats = 3);
static unsigned int getLastDuration();
static bool existNewDuration();
private:
RFControl();
};
#endif