Subversion Repositories HomeAutomation

Rev

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

Rev 1906 Rev 1922
Line 18... Line 18...
18
#include <config.h>
18
#include <config.h>
19
 
19
 
20
/* Protocol data structure */
20
/* Protocol data structure */
21
typedef struct {
21
typedef struct {
22
    uint8_t protocol;
22
    uint8_t protocol;
23
    uint32_t data;
23
    uint64_t data;
24
    uint16_t timeout;
24
    uint16_t timeout;
25
    uint8_t repeats;
25
    uint8_t repeats;
26
    uint16_t modfreq;
26
    uint16_t modfreq;
27
    uint8_t framecnt;
27
    uint8_t framecnt;
28
} Ir_Protocol_Data_t;
28
} Ir_Protocol_Data_t;
Line 269... Line 269...
269
#define IR_NEXA2_START1     (10000*CYCLES_PER_US/TIMER_PRESC)   //us
269
#define IR_NEXA2_START1     (10000*CYCLES_PER_US/TIMER_PRESC)   //us
270
#define IR_NEXA2_START2     (2500*CYCLES_PER_US/TIMER_PRESC)    //us
270
#define IR_NEXA2_START2     (2500*CYCLES_PER_US/TIMER_PRESC)    //us
271
#define IR_NEXA2_HIGH       (320*CYCLES_PER_US/TIMER_PRESC)     //us
271
#define IR_NEXA2_HIGH       (320*CYCLES_PER_US/TIMER_PRESC)     //us
272
#define IR_NEXA2_LOW_ONE    (210*CYCLES_PER_US/TIMER_PRESC)     //us
272
#define IR_NEXA2_LOW_ONE    (210*CYCLES_PER_US/TIMER_PRESC)     //us
273
#define IR_NEXA2_LOW_ZERO   (1200*CYCLES_PER_US/TIMER_PRESC)    //us
273
#define IR_NEXA2_LOW_ZERO   (1200*CYCLES_PER_US/TIMER_PRESC)    //us
274
#define IR_NEXA2_TIMEOUT    (5)                                 //ms    (time between ir frames)
274
#define IR_NEXA2_TIMEOUT    (200)                               //ms    (time between ir frames)
275
#define IR_NEXA2_REPS       (5)                                 //      (minimum number of times to repeat code)
275
#define IR_NEXA2_REPS       (5)                                 //      (minimum number of times to repeat code)
276
#define IR_NEXA2_F_MOD      (38)                                //kHz   (modulation frequency)
276
#define IR_NEXA2_F_MOD      (38)                                //kHz   (modulation frequency)
277
#define IR_NEXA2_TOL_DIV    (2)
277
#define IR_NEXA2_TOL_DIV    (2)
278
 
278
 
279
 
279
 
Line 283... Line 283...
283
 */
283
 */
284
#define IR_PROTO_NEXA1      (11)
284
#define IR_PROTO_NEXA1      (11)
285
#define IR_NEXA1_START      (10000*CYCLES_PER_US/TIMER_PRESC)   //us
285
#define IR_NEXA1_START      (10000*CYCLES_PER_US/TIMER_PRESC)   //us
286
#define IR_NEXA1_SHORT      (370*CYCLES_PER_US/TIMER_PRESC)     //us
286
#define IR_NEXA1_SHORT      (370*CYCLES_PER_US/TIMER_PRESC)     //us
287
#define IR_NEXA1_LONG       (1050*CYCLES_PER_US/TIMER_PRESC)    //us
287
#define IR_NEXA1_LONG       (1050*CYCLES_PER_US/TIMER_PRESC)    //us
288
#define IR_NEXA1_TIMEOUT    (5)                                 //ms    (time between ir frames)
288
#define IR_NEXA1_TIMEOUT    (200)                               //ms    (time between ir frames)
289
#define IR_NEXA1_REPS       (4)                                 //      (minimum number of times to repeat code)
289
#define IR_NEXA1_REPS       (4)                                 //      (minimum number of times to repeat code)
290
#define IR_NEXA1_F_MOD      (38)                                //kHz   (modulation frequency)
290
#define IR_NEXA1_F_MOD      (38)                                //kHz   (modulation frequency)
291
#define IR_NEXA1_TOL_DIV    (2)
291
#define IR_NEXA1_TOL_DIV    (2)
292
 
292
 
293
 
293