Subversion Repositories HomeAutomation

Rev

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

Rev 610 Rev 617
Line 8... Line 8...
8
    uint8_t protocol;
8
    uint8_t protocol;
9
    uint32_t data;
9
    uint32_t data;
10
    uint16_t timeout;
10
    uint16_t timeout;
11
    uint8_t repeats;
11
    uint8_t repeats;
12
    uint8_t modfreq;
12
    uint8_t modfreq;
-
 
13
    uint8_t framecnt;
13
} Ir_Protocol_Data_t;
14
} Ir_Protocol_Data_t;
14
 
15
 
15
/* Which protocols to use. These should perhaps be configuration options
16
/* Which protocols to use. These should perhaps be configuration options
16
 * (config.inc). Only applies to receiver right now */
17
 * (config.inc). Only applies to receiver right now */
17
#define IR_PROTOCOLS_USE_SIRC       1
18
#define IR_PROTOCOLS_USE_SIRC       1
Line 146... Line 147...
146
#define IR_NEC_ST_PAUSE     4500*CYCLES_PER_US/TIMER_PRESC      //us
147
#define IR_NEC_ST_PAUSE     4500*CYCLES_PER_US/TIMER_PRESC      //us
147
#define IR_NEC_LOW_ONE      1690*CYCLES_PER_US/TIMER_PRESC      //us
148
#define IR_NEC_LOW_ONE      1690*CYCLES_PER_US/TIMER_PRESC      //us
148
#define IR_NEC_LOW_ZERO     560*CYCLES_PER_US/TIMER_PRESC       //us
149
#define IR_NEC_LOW_ZERO     560*CYCLES_PER_US/TIMER_PRESC       //us
149
#define IR_NEC_HIGH         560*CYCLES_PER_US/TIMER_PRESC       //us
150
#define IR_NEC_HIGH         560*CYCLES_PER_US/TIMER_PRESC       //us
150
#define IR_NEC_TIMEOUT      110                                 //ms    (time between ir frames)
151
#define IR_NEC_TIMEOUT      110                                 //ms    (time between ir frames)
-
 
152
#define IR_NEC_ST_TIMEOUT   65                                  //ms    (time between first ir frames and second)
151
#define IR_NEC_REPS         1                                   //      (minimum number of times to repeat code)
153
#define IR_NEC_REPS         1                                   //      (minimum number of times to repeat code)
152
#define IR_NEC_F_MOD        38                                  //kHz   (modulation frequency)
154
#define IR_NEC_F_MOD        38                                  //kHz   (modulation frequency)
153
#define IR_NEC_TOL_DIV      4
155
#define IR_NEC_TOL_DIV      4
154
 
156
 
155
/* Samsung Implementation
157
/* Samsung Implementation