53 lines
1.2 KiB
C++
53 lines
1.2 KiB
C++
|
|
/*
|
||
|
|
* ReceiverOval.cpp
|
||
|
|
*
|
||
|
|
* Created on: 12.10.2022
|
||
|
|
* Author: flori
|
||
|
|
*/
|
||
|
|
#include "main.h"
|
||
|
|
#include "ReceiverOval.h"
|
||
|
|
|
||
|
|
|
||
|
|
/*******************************************************************/
|
||
|
|
#define KEY_NIBBLE_OPEN 0x03
|
||
|
|
#define KEY_NIBBLE_CLOSE 0x09
|
||
|
|
|
||
|
|
#define NUM_KEYS_OVAL 6u
|
||
|
|
|
||
|
|
/*******************************************************************/
|
||
|
|
|
||
|
|
static const char* nameOval = "Oval";
|
||
|
|
|
||
|
|
static const uint8_t keysOval[NUM_KEYS_OVAL * (NUM_BYTES_PER_KEY+1u)] =
|
||
|
|
{
|
||
|
|
0xdc, 0x86, 0x03 , 0x09, // 0x3 auf 0x9 zu,
|
||
|
|
0x30, 0xa5, 0x03 , 0x09, // 0x3 auf 0x9 zu,
|
||
|
|
0x4c, 0xe6, 0x03 , 0x09, // 0x3 auf 0x9 zu,
|
||
|
|
0x74, 0xa5, 0x03 , 0x09, // 0x3 auf 0x9 zu,
|
||
|
|
0x29, 0x66, 0x03 , 0x09, // 0x3 auf 0x9 zu,
|
||
|
|
0xe4, 0x0f, 0x76 , 0x79 // 0x3 auf 0x9 zu,
|
||
|
|
};
|
||
|
|
|
||
|
|
/*******************************************************************/
|
||
|
|
|
||
|
|
ReceiverOval receiverOval;
|
||
|
|
|
||
|
|
/*******************************************************************/
|
||
|
|
|
||
|
|
|
||
|
|
ReceiverOval::ReceiverOval() : Receiver3ByteKey()
|
||
|
|
{
|
||
|
|
config.name = nameOval;
|
||
|
|
config.tShortMin = 320u;
|
||
|
|
config.tShortMax = 510u;
|
||
|
|
config.tLongMin = 1100u;
|
||
|
|
config.tLongMax = 1330u;
|
||
|
|
config.numberKeys = NUM_KEYS_OVAL;
|
||
|
|
config.keys = keysOval;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|