54 enum Type { PIR1, PIR4 };
62 virtual std::string
serial()
const = 0;
68 virtual unsigned int version()
const = 0;
85 virtual bool sendCCF(
const std::string ccf,
unsigned char bitmask,
unsigned char repeats) = 0;
89 virtual bool blink(
unsigned char count) = 0;
93 virtual Type
type()
const = 0;
98 virtual bool learn() = 0;
108 typedef std::shared_ptr<IPIR>IPIRPtr;
virtual bool blink(unsigned char count)=0
blinks the LED on the PIR-1
virtual bool sendCCF(const std::string ccf, unsigned char bitmask, unsigned char repeats)=0
sends CCF code.
The PIR interface class.
Definition: ipir.h:47
virtual unsigned int version() const =0
Returns the firmware version number.
virtual std::string serial() const =0
Returns the serial number.
virtual bool learn()=0
starts learn mode on a PIR-1
virtual Type type() const =0
returns the Type of the PIR
virtual bool cancelLearn()=0
ends learn mode on a PIR-1