Subversion Repositories HomeAutomation

Rev

Rev 162 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 162 Rev 201
Line 42... Line 42...
42
#define IR_SIRC_TIMEOUT     40      //ms
42
#define IR_SIRC_TIMEOUT     40      //ms
43
 
43
 
44
#define IR_PROTO_SHARP      4
44
#define IR_PROTO_SHARP      4
45
#define IR_SHARP_ST_BIT     275*CYCLES_PER_US       //us //Wont work together with RCMM
45
#define IR_SHARP_ST_BIT     275*CYCLES_PER_US       //us //Wont work together with RCMM
46
#define IR_SHARP_TIMEOUT    55      //ms
46
#define IR_SHARP_TIMEOUT    55      //ms
-
 
47
 
-
 
48
#define IR_MIN_REPEATE_PULSE_WIDTH  200
-
 
49
#define IR_MAX_REPEATE_PULSE_WIDTH  40000
47
 
50
 
48
 
51
 
49
/*-----------------------------------------------------------------------------
52
/*-----------------------------------------------------------------------------
50
 * Public Function Prototypes
53
 * Public Function Prototypes
51
 *---------------------------------------------------------------------------*/
54
 *---------------------------------------------------------------------------*/
Line 53... Line 56...
53
int isTimerOvfl(void);
56
int isTimerOvfl(void);
54
uint16_t getTimerVal(void);
57
uint16_t getTimerVal(void);
55
void setTimerVal(uint16_t value);
58
void setTimerVal(uint16_t value);
56
int receiveRC5(uint8_t *address, uint8_t *command);
59
int receiveRC5(uint8_t *address, uint8_t *command);
57
int checkIr(uint8_t *proto, uint8_t *address, uint8_t *command);
60
int checkIr(uint8_t *proto, uint8_t *address, uint8_t *command);
58
 
-
 
-
 
61
int checkIrIdle(void);
-
 
62
uint16_t getLastProtoTimeout(void);
59
 
63
 
60
 
64
 
61
#endif /*MCU_H_*/
65
#endif /*MCU_H_*/