thermferm/rc-switch.h

Mon, 14 Jan 2019 22:46:27 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 14 Jan 2019 22:46:27 +0100
changeset 570
1e0192b295b9
parent 213
2317b8d644fa
permissions
-rw-r--r--

Removed useless version marks from the xml configuration. Added DCMD profile configuration to install and delete profiles in a fermenter. Removed the old profiles configuration. Removed useless xml configuration error check because none has been triggered in five years, Removed several obsolete upgrade functions. Updated the web liveview.

#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