You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
649 B
C++
31 lines
649 B
C++
// AlarmTowerCommand.h
|
|
|
|
#ifndef _ALARMTOWERCOMMAND_h
|
|
#define _ALARMTOWERCOMMAND_h
|
|
|
|
#if defined(ARDUINO) && ARDUINO >= 100
|
|
#include "arduino.h"
|
|
#else
|
|
#include "WProgram.h"
|
|
#endif
|
|
|
|
#include "CommandEncoder.h"
|
|
|
|
class AlarmTowerCommand : private CommandEncoder
|
|
{
|
|
public:
|
|
AlarmTowerCommand();
|
|
public:
|
|
byte* CMD_DefaultIRAlarm();
|
|
byte* CMD_IRAlarm(byte d1, byte d2, byte d3, byte d4, byte d5, byte d6);
|
|
byte* CMD_ChangeOpenCode_1to3(byte d1, byte d2, byte d3);
|
|
byte* CMD_ChangeOpenCode_4to6(byte d4, byte d5, byte d6);
|
|
byte* CMD_QueryRescuePosition();
|
|
public:
|
|
bool IsAlarmTowerCommand(byte* cmd);
|
|
byte ReadRescuePosition(byte* cmd);
|
|
};
|
|
|
|
#endif
|
|
|