thermferm/rc-switch.h

Fri, 05 Apr 2024 16:19:39 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 05 Apr 2024 16:19:39 +0200
changeset 660
a28ef4d9afa4
parent 213
2317b8d644fa
permissions
-rw-r--r--

Version 0.9.17a1. Revised starting and stopping the threads. Fixed stopping the command server thread. Moved one-wire tempeature sensors resolution correction to the one-wire thread. The devices thread fetches temperatures from the one-wire thread. The one-wire thread does everything for the temperature sensors. The command server uses private sockets. Still, only one session at the same time is handled.

#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