Mon, 16 Feb 2015 19:52:42 +0100
Added more precision to the unit low and high black window margins. Switched to PID routine from Pid without a PhD. The PID compute routine is now in the one second loop. The switch delay times are now in seconds, 0..720.
#ifndef _RC_SWITCH_H #define _RC_SWITCH_H #ifdef HAVE_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); #endif #endif