1 #ifndef _RC433_H |
|
2 #define _RC433_H |
|
3 |
|
4 #define TRUE 1 |
|
5 #define FALSE 0 |
|
6 |
|
7 #include "../config.h" |
|
8 |
|
9 #include <stdlib.h> |
|
10 #include <stdio.h> |
|
11 #include <stdint.h> |
|
12 #include <stdarg.h> |
|
13 #include <string.h> |
|
14 #include <ctype.h> |
|
15 #include <sys/types.h> |
|
16 #include <stdbool.h> |
|
17 #include <getopt.h> |
|
18 |
|
19 #ifdef HAVE_WIRINGPI_H |
|
20 |
|
21 /* wiringPi */ |
|
22 #include <wiringPi.h> |
|
23 |
|
24 |
|
25 /* rc-switch.c */ |
|
26 int toggleSwitch(char *); |
|
27 int toggleTypeA(char *, char *, bool); |
|
28 int toggleTypeB(int, int, bool); |
|
29 int toggleTypeC(char, int, int, bool); |
|
30 int toggleTypeE(char, int, bool); |
|
31 |
|
32 void enableReceiveIRQ(int interrupt); |
|
33 void enableReceive(void); |
|
34 void disableReceive(void); |
|
35 bool available(void); |
|
36 void resetAvailable(void); |
|
37 |
|
38 unsigned long getReceivedValue(void); |
|
39 unsigned int getReceivedBitlength(void); |
|
40 unsigned int getReceivedDelay(void); |
|
41 unsigned int getReceivedProtocol(void); |
|
42 unsigned int *getReceivedRawdata(void); |
|
43 |
|
44 void enableTransmit(int); |
|
45 void disableTransmit(void); |
|
46 |
|
47 char *dec2binWzerofill(unsigned long, unsigned int); |
|
48 |
|
49 |
|
50 /* xutil.c */ |
|
51 char *xmalloc(size_t); |
|
52 char *xstrcpy(char *); |
|
53 char *xstrcat(char *, char *); |
|
54 |
|
55 #endif |
|
56 |
|
57 |
|
58 #endif |
|