PIR Library  2
 All Classes Files Functions Variables Typedefs Macros Pages
Public Member Functions | List of all members
Manager Class Reference

Contains the PIR-1/PIR-4 objects currently available on the system. More...

#include <manager.h>

Public Member Functions

 Manager (PIR_Settings *settings)
 Constructor.
 
 ~Manager ()
 Destructor.
 
bool init ()
 Initialization, checkDevices is permformed at this point.
 
bool sendCCF (const std::string &serial, const std::string ccf, unsigned char bitmask, unsigned char repeats)
 Sends a CCF code. More...
 
IPIRPtr findPIR (const std::string &serial)
 returns the PIR object for specific serial
 
void checkDevices ()
 runs the PIR-1 / PIR-4 device detection routine. New devices may appear at this point.
 
bool learn (const std::string &serial)
 start learning on the specified PIR-1
 
bool cancelLearn (const std::string &serial)
 cancels learning on the specified PIR-1
 
std::string pirList (PIR::Type type)
 returns a comma separated list of serial numbers of available PIR's with requested type.
 

Detailed Description

Contains the PIR-1/PIR-4 objects currently available on the system.

Member Function Documentation

bool Manager::sendCCF ( const std::string &  serial,
const std::string  ccf,
unsigned char  bitmask,
unsigned char  repeats 
)

Sends a CCF code.

Parameters
serialthe serial number of the PIR to use of empty for all attached PIRs.
ccfthe pronto CCF to send.
bitmaskcombination of bits 1 = back of PIR, 2 = front panel for pir-1
bitmask= 1, 2, 4 or 8 respectively for ports 1,2,3 or 4 on PIR-4
repeatsthe number of times to run the repeat part of the CCF
Returns
true on success, false on failure.

The documentation for this class was generated from the following files: