thermferm/rc-switch.h

Sun, 20 Dec 2015 20:37:40 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Sun, 20 Dec 2015 20:37:40 +0100
changeset 464
4a624c071ca9
parent 213
2317b8d644fa
permissions
-rw-r--r--

Added file copy. Move home directory detection to the main program function. During opening of the main configuration file, backups are made, 10 revisions in total.

#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

mercurial