-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIRLibPanavox.h
50 lines (41 loc) · 1.06 KB
/
IRLibPanavox.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
Name: IRLibPanavox.h
Created: 11/2/2017 11:00:23 PM
Author: Th3DarKZi0N
Editor: http://www.visualmicro.com
*/
#ifndef IRLIB_PROTOCOL_PANAVOX
#define IRLIB_PROTOCOL_PANAVOX
#include <IRLibDecodeBase.h>
#include <IRLibSendBase.h>
#define PANAVOX_AC 80
#define PANAVOX_AC_FREQ 38
#define PANAVOX_RAW_COUNT 100
#define PANAVOX_AC_HDR_MARK 4300
#define PANAVOX_AC_HDR_SPACE 4500
#define PANAVOX_AC_BIT_MARK 500
#define PANAVOX_AC_ONE_SPACE 1600
#define PANAVOX_AC_ZERO_SPACE 600
#define PANAVOX_AC_RPT_SPACE 5400
#define PANAVOX_AC_END_SPACE 0
#define READ_ERROR -1
#ifdef IRLIBSENDBASE_H
class IRsendPanavox : public virtual IRsendBase {
private:
void sendByte(uint8_t data);
void sendPacket(uint32_t value);
public:
void send(uint32_t cmd);
};
#endif // IRLIBSENDBASE_H
#ifdef IRLIBDECODEBASE_H
class IRdecodePanavox : public virtual IRdecodeBase {
private:
int readNextByte(uint8_t offset);
public:
bool repeat;
bool decode(void);
virtual void dumpResults(bool verbose = true);
};
#endif // IRLIBDECODEBASE_H
#endif // IRLIB_PROTOCOL_PANAVOX