thermferm/rc-switch.h

changeset 180
b62644eb442f
child 213
2317b8d644fa
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/thermferm/rc-switch.h	Mon Aug 04 23:36:05 2014 +0200
@@ -0,0 +1,44 @@
+#ifndef	_RC_SWITCH_H
+#define	_RC_SWITCH_H
+
+
+#ifdef HAVE_WIRINGPI_H
+
+/* wiringPi */
+//#include <wiringPi.h>
+
+
+/* rc-switch.c */
+int  toggleSwitch(char *);
+int  toggleTypeA(char *, char *, int);
+int  toggleTypeB(int, int, int);
+int  toggleTypeC(char, int, int, int);
+int  toggleTypeE(char, int, int);
+
+void enableReceiveIRQ(int interrupt);
+void enableReceive(void);
+void disableReceive(void);
+int available(void);
+void resetAvailable(void);
+
+unsigned long getReceivedValue(void);
+unsigned int getReceivedBitlength(void);
+unsigned int getReceivedDelay(void);
+unsigned int getReceivedProtocol(void);
+unsigned int *getReceivedRawdata(void);
+
+void enableTransmit(int);
+void disableTransmit(void);
+
+char *dec2binWzerofill(unsigned long, unsigned int);
+
+
+/* xutil.c */
+//char *xmalloc(size_t);
+//char *xstrcpy(char *);
+//char *xstrcat(char *, char *);
+
+#endif
+
+
+#endif

mercurial