Subversion Repositories HomeAutomation

Rev

Rev 1931 | Rev 2199 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1931 Rev 2120
Line 27... Line 27...
27
    uint8_t framecnt;
27
    uint8_t framecnt;
28
} Ir_Protocol_Data_t;
28
} Ir_Protocol_Data_t;
29
 
29
 
30
/* Which protocols to use. These should perhaps be configuration options
30
/* Which protocols to use. These should perhaps be configuration options
31
 * (config.inc). Only applies to receiver right now */
31
 * (config.inc). Only applies to receiver right now */
-
 
32
#ifndef IR_PROTOCOLS_USE_SIRC
32
#define IR_PROTOCOLS_USE_SIRC       1
33
# define IR_PROTOCOLS_USE_SIRC      1
-
 
34
#endif
-
 
35
#ifndef IR_PROTOCOLS_USE_RC5
33
#define IR_PROTOCOLS_USE_RC5        1
36
# define IR_PROTOCOLS_USE_RC5       1
-
 
37
#endif
-
 
38
#ifndef IR_PROTOCOLS_USE_SHARP
34
#define IR_PROTOCOLS_USE_SHARP      1
39
# define IR_PROTOCOLS_USE_SHARP     1
-
 
40
#endif
-
 
41
#ifndef IR_PROTOCOLS_USE_NEC
35
#define IR_PROTOCOLS_USE_NEC        1
42
# define IR_PROTOCOLS_USE_NEC       1
-
 
43
#endif
-
 
44
#ifndef IR_PROTOCOLS_USE_SAMSUNG
36
#define IR_PROTOCOLS_USE_SAMSUNG    1
45
# define IR_PROTOCOLS_USE_SAMSUNG   1
-
 
46
#endif
-
 
47
#ifndef IR_PROTOCOLS_USE_MARANTZ
37
#define IR_PROTOCOLS_USE_MARANTZ    1
48
# define IR_PROTOCOLS_USE_MARANTZ   1
-
 
49
#endif
-
 
50
#ifndef IR_PROTOCOLS_USE_PANASONIC
38
#define IR_PROTOCOLS_USE_PANASONIC  1
51
# define IR_PROTOCOLS_USE_PANASONIC 1
-
 
52
#endif
-
 
53
#ifndef IR_PROTOCOLS_USE_SKY
39
#define IR_PROTOCOLS_USE_SKY        1
54
# define IR_PROTOCOLS_USE_SKY       1
-
 
55
#endif
-
 
56
#ifndef IR_PROTOCOLS_USE_NEXA2
40
#define IR_PROTOCOLS_USE_NEXA2      1
57
# define IR_PROTOCOLS_USE_NEXA2     1
-
 
58
#endif
-
 
59
#ifndef IR_PROTOCOLS_USE_NEXA1
41
#define IR_PROTOCOLS_USE_NEXA1      1
60
# define IR_PROTOCOLS_USE_NEXA1     1
-
 
61
#endif
42
 
62
 
43
/* All these functions take a buffer with pulse times and tries to parse it
63
/* All these functions take a buffer with pulse times and tries to parse it
44
 * to a Ir_Protocol_Data_t structure. They return IR_OK on success
64
 * to a Ir_Protocol_Data_t structure. They return IR_OK on success
45
 * and IR_NOT_CORRECT_DATA if there was no match. */
65
 * and IR_NOT_CORRECT_DATA if there was no match. */
46
#if (IR_PROTOCOLS_USE_SIRC)
66
#if (IR_PROTOCOLS_USE_SIRC)