Files
platformio_fensterpiepser_e…/src/Receivers433/Receivers3ByteKeys/ReceiverKerui.cpp
T

47 lines
1.0 KiB
C++
Raw Normal View History

/*
* ReceiverKerui.cpp
*
* Created on: 12.10.2022
* Author: flori
*/
#include "main.h"
#include "ReceiverKerui.h"
/*******************************************************************/
#define KEY_NIBBLE_OPEN 0x0E
#define KEY_NIBBLE_CLOSE 0x07
#define NUM_KEYS_KERUI 3u
/*******************************************************************/
static const char* nameKerui = "Kerui";
static const uint8_t keysKerui[NUM_KEYS_KERUI* (NUM_BYTES_PER_KEY+1u) ] =
{
0x3c, 0xf3, 0x0E, 0x07 , /* key, key, open, close */
0xea, 0x3a, 0x0E, 0x07 ,
0xbd, 0x14, 0x0E, 0x07
};
/*******************************************************************/
ReceiverKerui receiverKerui = ReceiverKerui();
/*******************************************************************/
ReceiverKerui::ReceiverKerui() : Receiver3ByteKey()
{
config.name = nameKerui;
config.tShortMin = 250u;
config.tShortMax = 450u;
config.tLongMin = 850u;
config.tLongMax = 1150u;
config.numberKeys = NUM_KEYS_KERUI;
config.keys = keysKerui;
}