Subversion Repositories HomeAutomation

Rev

Rev 2244 | Rev 2259 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | SVN | RSS feed

  1. /**
  2.  * @defgroup infrared IR Protocols Driver Library
  3.  * @code #include <drivers/ir/protocols.h> @endcode
  4.  *
  5.  * @brief  
  6.  *
  7.  *
  8.  * @author  Andreas Fritiofson, Anders Runeson
  9.  * @date    2007
  10.  */
  11.  
  12. /**@{*/
  13.  
  14.  
  15. #ifndef IR_PROTOCOLS_H_
  16. #define IR_PROTOCOLS_H_
  17. #include <stdio.h>
  18. #include <config.h>
  19.  
  20. /* Protocol data structure */
  21. typedef struct {
  22.     uint8_t protocol;
  23.     uint64_t data;
  24.     uint16_t timeout;       //Set to 0 to indicate burst protocol (only one pulse train is sent)
  25.     uint8_t repeats;
  26.     uint16_t modfreq;
  27.     uint8_t framecnt;
  28. } Ir_Protocol_Data_t;
  29.  
  30. /* Which protocols to use. These should perhaps be configuration options
  31.  * (config.inc). Only applies to receiver right now */
  32. #ifndef IR_PROTOCOLS_USE_SIRC
  33. # define IR_PROTOCOLS_USE_SIRC      1
  34. #endif
  35. #ifndef IR_PROTOCOLS_USE_RC5
  36. # define IR_PROTOCOLS_USE_RC5       1
  37. #endif
  38. #ifndef IR_PROTOCOLS_USE_SHARP
  39. # define IR_PROTOCOLS_USE_SHARP     1
  40. #endif
  41. #ifndef IR_PROTOCOLS_USE_NEC
  42. # define IR_PROTOCOLS_USE_NEC       1
  43. #endif
  44. #ifndef IR_PROTOCOLS_USE_SAMSUNG
  45. # define IR_PROTOCOLS_USE_SAMSUNG   1
  46. #endif
  47. #ifndef IR_PROTOCOLS_USE_MARANTZ
  48. # define IR_PROTOCOLS_USE_MARANTZ   1
  49. #endif
  50. #ifndef IR_PROTOCOLS_USE_PANASONIC
  51. # define IR_PROTOCOLS_USE_PANASONIC 1
  52. #endif
  53. #ifndef IR_PROTOCOLS_USE_SKY
  54. # define IR_PROTOCOLS_USE_SKY       1
  55. #endif
  56. #ifndef IR_PROTOCOLS_USE_IROBOT
  57. # define IR_PROTOCOLS_USE_IROBOT        1
  58. #endif
  59. #ifndef IR_PROTOCOLS_USE_NEXA2
  60. # define IR_PROTOCOLS_USE_NEXA2 1
  61. #endif
  62. #ifndef IR_PROTOCOLS_USE_NEXA1
  63. # define IR_PROTOCOLS_USE_NEXA1 1
  64. #endif
  65. #ifndef IR_PROTOCOLS_USE_VIKING
  66. # define IR_PROTOCOLS_USE_VIKING    1
  67. #endif
  68. #ifndef IR_PROTOCOLS_USE_VIKING_STEAK
  69. # define IR_PROTOCOLS_USE_VIKING_STEAK  1
  70. #endif
  71. #ifndef IR_PROTOCOLS_USE_RUBICSON
  72. # define IR_PROTOCOLS_USE_RUBICSON  1
  73. #endif
  74.  
  75.  
  76.  
  77. /* All these functions take a buffer with pulse times and tries to parse it
  78.  * to a Ir_Protocol_Data_t structure. They return IR_OK on success
  79.  * and IR_NOT_CORRECT_DATA if there was no match. */
  80. #if (IR_PROTOCOLS_USE_SIRC)
  81. int8_t parseSIRC(const uint16_t *buf, uint8_t len, Ir_Protocol_Data_t *proto);
  82. #endif
  83. #if (IR_PROTOCOLS_USE_RC5)
  84. int8_t parseRC5(const uint16_t *buf, uint8_t len, Ir_Protocol_Data_t *proto);
  85. #endif
  86. #if (IR_PROTOCOLS_USE_SHARP)
  87. int8_t parseSharp(const uint16_t *buf, uint8_t len, Ir_Protocol_Data_t *proto);
  88. #endif
  89. #if (IR_PROTOCOLS_USE_NEC)
  90. int8_t parseNEC(const uint16_t *buf, uint8_t len, Ir_Protocol_Data_t *proto);
  91. #endif
  92. #if (IR_PROTOCOLS_USE_SAMSUNG)
  93. int8_t parseSamsung(const uint16_t *buf, uint8_t len, Ir_Protocol_Data_t *proto);
  94. #endif
  95. #if (IR_PROTOCOLS_USE_MARANTZ)
  96. int8_t parseMarantz(const uint16_t *buf, uint8_t len, Ir_Protocol_Data_t *proto);
  97. #endif
  98. #if (IR_PROTOCOLS_USE_PANASONIC)
  99. int8_t parsePanasonic(const uint16_t *buf, uint8_t len, Ir_Protocol_Data_t *proto);
  100. #endif
  101. #if (IR_PROTOCOLS_USE_SKY)
  102. int8_t parseSky(const uint16_t *buf, uint8_t len, Ir_Protocol_Data_t *proto);
  103. #endif
  104. #if (IR_PROTOCOLS_USE_IROBOT)
  105. int8_t parseiRobot(const uint16_t *buf, uint8_t len, Ir_Protocol_Data_t *proto);
  106. #endif
  107.  
  108.  
  109. /* RF protocols needs index parameter */
  110. #if (IR_PROTOCOLS_USE_NEXA2)
  111. int8_t parseNexa2(const uint16_t *buf, uint8_t len, uint8_t index, Ir_Protocol_Data_t *proto);
  112. #endif
  113. #if (IR_PROTOCOLS_USE_NEXA1)
  114. int8_t parseNexa1(const uint16_t *buf, uint8_t len, uint8_t index, Ir_Protocol_Data_t *proto);
  115. #endif
  116. #if (IR_PROTOCOLS_USE_VIKING)
  117. int8_t parseViking(const uint16_t *buf, uint8_t len, uint8_t index, Ir_Protocol_Data_t *proto);
  118. #endif
  119. #if (IR_PROTOCOLS_USE_VIKING_STEAK)
  120. int8_t parseVikingSteak(const uint16_t *buf, uint8_t len, uint8_t index, Ir_Protocol_Data_t *proto);
  121. #endif
  122. #if (IR_PROTOCOLS_USE_RUBICSON)
  123. int8_t parseRubicson(const uint16_t *buf, uint8_t len, uint8_t index, Ir_Protocol_Data_t *proto);
  124. #endif
  125.  
  126.  
  127. /* Try to parse all above protocols until a match is found. */
  128. int8_t parseProtocol(const uint16_t *buf, uint8_t len, uint8_t index, Ir_Protocol_Data_t *proto);
  129. /* The Hash protocol always succeeds and creates a one-way signature of the
  130.  * pulse times buffer that is supposed to be unique and constant for a specific
  131.  * IR event. It may be used to send a valid event even if the protocol hasn't
  132.  * been implemented or decoded yet. */
  133. int8_t parseHash(const uint16_t *buf, uint8_t len, Ir_Protocol_Data_t *proto);
  134.  
  135. /* These functions expand a Ir_Protocol_Data_t structure into a raw buffer with
  136.  * pulse lengths. They return IR_OK on success and IR_NOT_CORRECT_DATA if the
  137.  * Ir_Protocol_Data_t structure is for another protocol or contains invalid
  138.  * data. */
  139. int8_t expandSIRC(uint16_t *buf, uint8_t *len, Ir_Protocol_Data_t *proto);
  140. int8_t expandRC5(uint16_t *buf, uint8_t *len, Ir_Protocol_Data_t *proto);
  141. int8_t expandSharp(uint16_t *buf, uint8_t *len, Ir_Protocol_Data_t *proto);
  142. int8_t expandNEC(uint16_t *buf, uint8_t *len, Ir_Protocol_Data_t *proto);
  143. int8_t expandSamsung(uint16_t *buf, uint8_t *len, Ir_Protocol_Data_t *proto);
  144. int8_t expandMarantz(uint16_t *buf, uint8_t *len, Ir_Protocol_Data_t *proto);
  145. int8_t expandPanasonic(uint16_t *buf, uint8_t *len, Ir_Protocol_Data_t *proto);
  146. int8_t expandSky(uint16_t *buf, uint8_t *len, Ir_Protocol_Data_t *proto);
  147. int8_t expandiRobot(uint16_t *buf, uint8_t *len, Ir_Protocol_Data_t *proto);
  148. int8_t expandNexa2(uint16_t *buf, uint8_t *len, Ir_Protocol_Data_t *proto);
  149. int8_t expandNexa1(uint16_t *buf, uint8_t *len, Ir_Protocol_Data_t *proto);
  150. /* Pass the Ir_Protocol_Data_t automatically to the correct function. */
  151. int8_t expandProtocol(uint16_t *buf, uint8_t *len, Ir_Protocol_Data_t *proto);
  152.  
  153.  
  154. #define IR_OK           1
  155. #define IR_NO_PROTOCOL      2
  156. #define IR_TIME_OVFL        3
  157. #define IR_NO_DATA      4
  158. #define IR_NOT_CORRECT_DATA     5
  159. #define IR_TO_MUCH_DATA     6
  160. #define IR_NOT_FINISHED     7
  161. #define IR_SEND_DEBUG       8
  162. #define IR_BUTTON_DOWN      0x0
  163. #define IR_BUTTON_UP        0xf
  164.  
  165. // defined for the module, uses same definitions for pressed and released as other buttons
  166. #define IR_BUTTON_RELEASED  0x0
  167. #define IR_BUTTON_PRESSED   0x1
  168.  
  169.  
  170. #define CYCLES_PER_US       (F_CPU/1000000UL)
  171. #define TIMER_PRESC         (8)
  172.  
  173. #ifndef IR_MIN_PULSE_WIDTH
  174. #define IR_MIN_PULSE_WIDTH  (0)                                 //us, used in continuous mode
  175. #endif
  176. #ifndef IR_MIN_STARTPULSE_WIDTH
  177. #define IR_MIN_STARTPULSE_WIDTH (0UL)                           //us, not used when set to 0
  178. #endif
  179. #ifndef IR_MAX_PULSE_WIDTH
  180. #define IR_MAX_PULSE_WIDTH  (12000UL)                           //us
  181. #endif
  182.  
  183. /* RC5 Implementation
  184.  * Receiver: DONE
  185.  * Transmitter: DONE
  186.  */
  187. #define IR_RC5_HALF_BIT     (889*CYCLES_PER_US/TIMER_PRESC)     //us
  188. #define IR_RC5_BIT          (889*2*CYCLES_PER_US/TIMER_PRESC)   //us
  189. #define IR_RC5_TIMEOUT      (117-IR_MAX_PULSE_WIDTH/1000)       //ms    (time between ir frames)
  190. #define IR_RC5_REPS         (1)                                 //      (minimum number of times to repeat code)
  191. #define IR_RC5_F_MOD        (36)                                //kHz   (modulation frequency)
  192. #define IR_RC5_TOL_DIV      (4)
  193.  
  194. /* RC6 Implementation
  195.  * Receiver:
  196.  * Transmitter:
  197.  */
  198. #define IR_RC6_ST_BIT       (1*CYCLES_PER_US/TIMER_PRESC)       //us
  199. #define IR_RC6_TIMEOUT      (50-IR_MAX_PULSE_WIDTH/1000)        //ms    (time between ir frames)
  200. #define IR_RC6_REPS         (1)                                 //      (minimum number of times to repeat code)
  201. #define IR_RC6_F_MOD        (36)                                //kHz   (modulation frequency)
  202. #define IR_RC6_TOL_DIV      (4)
  203.  
  204. /* RCMM Implementation
  205.  * Receiver:
  206.  * Transmitter:
  207.  */
  208. #define IR_RCMM_ST_BIT      (256*CYCLES_PER_US/TIMER_PRESC)     //us
  209. #define IR_RCMM_TIMEOUT     (170-IR_MAX_PULSE_WIDTH/1000)       //ms    (time between ir frames)
  210. #define IR_RCMM_REPS        (1)                                 //      (minimum number of times to repeat code)
  211. #define IR_RCMM_F_MOD       (36)                                //kHz   (modulation frequency)
  212. #define IR_RCMM_TOL_DIV     (4)
  213.  
  214. /* SIRC Implementation
  215.  * Receiver: DONE
  216.  * Transmitter: DONE
  217.  */
  218. #define IR_SIRC_ST_BIT      (2400*CYCLES_PER_US/TIMER_PRESC)    //us
  219. #define IR_SIRC_LOW         (600*CYCLES_PER_US/TIMER_PRESC)     //us
  220. #define IR_SIRC_HIGH_ONE    (1200*CYCLES_PER_US/TIMER_PRESC)    //us
  221. #define IR_SIRC_HIGH_ZERO   (600*CYCLES_PER_US/TIMER_PRESC)     //us
  222. #define IR_SIRC_TIMEOUT     (52-IR_MAX_PULSE_WIDTH/1000)                                    //ms    (time between ir frames)
  223. #define IR_SIRC_REPS        (3)                                 //      (minimum number of times to repeat code)
  224. #define IR_SIRC_F_MOD       (40)                                //kHz   (modulation frequency)
  225. #define IR_SIRC_TOL_DIV     (4)
  226.  
  227. /* Sharp Implementation
  228.  * Receiver: DONE
  229.  * Transmitter:
  230.  */
  231. #define IR_SHARP_HIGH       (280*CYCLES_PER_US/TIMER_PRESC)     //us
  232. #define IR_SHARP_LOW_ONE    (1850*CYCLES_PER_US/TIMER_PRESC)    //us
  233. #define IR_SHARP_LOW_ZERO   (780*CYCLES_PER_US/TIMER_PRESC)     //us
  234. #define IR_SHARP_TIMEOUT    (67-IR_MAX_PULSE_WIDTH/1000)        //ms    (time between ir frames)
  235. #define IR_SHARP_REPS       (2)                                 //      (minimum number of times to repeat code)
  236. #define IR_SHARP_F_MOD      (38)                                //kHz   (modulation frequency)
  237. #define IR_SHARP_TOL_DIV    (4)
  238.  
  239. /* NEC Implementation
  240.  * Receiver: DONE
  241.  * Transmitter: DONE
  242.  */
  243. #define IR_NEC_ST_BIT       (9000*CYCLES_PER_US/TIMER_PRESC)    //us
  244. #define IR_NEC_ST_PAUSE     (4500*CYCLES_PER_US/TIMER_PRESC)    //us
  245. #define IR_NEC_LOW_ONE      (1690*CYCLES_PER_US/TIMER_PRESC)    //us
  246. #define IR_NEC_LOW_ZERO     (560*CYCLES_PER_US/TIMER_PRESC)     //us
  247. #define IR_NEC_HIGH         (560*CYCLES_PER_US/TIMER_PRESC)     //us
  248. #define IR_NEC_TIMEOUT      (122-IR_MAX_PULSE_WIDTH/1000)       //ms    (time between ir frames)
  249. #define IR_NEC_ST_TIMEOUT   (65)                                //ms    (time between first ir frames and second)
  250. #define IR_NEC_REPS         (1)                                 //      (minimum number of times to repeat code)
  251. #define IR_NEC_F_MOD        (38)                                //kHz   (modulation frequency)
  252. #define IR_NEC_TOL_DIV      (4)
  253.  
  254. /* Samsung Implementation
  255.  * Receiver: DONE
  256.  * Transmitter: DONE
  257.  */
  258. #define IR_SAMS_ST_BIT      (4500*CYCLES_PER_US/TIMER_PRESC)    //us
  259. #define IR_SAMS_ST_PAUSE    (4500*CYCLES_PER_US/TIMER_PRESC)    //us
  260. #define IR_SAMS_LOW_ONE     (1720*CYCLES_PER_US/TIMER_PRESC)    //us
  261. #define IR_SAMS_LOW_ZERO    (650*CYCLES_PER_US/TIMER_PRESC)     //us
  262. #define IR_SAMS_HIGH        (500*CYCLES_PER_US/TIMER_PRESC)     //us
  263. #define IR_SAMS_TIMEOUT     (62-IR_MAX_PULSE_WIDTH/1000)        //ms    (time between ir frames)
  264. #define IR_SAMS_REPS        (1)                                 //      (minimum number of times to repeat code)
  265. #define IR_SAMS_F_MOD       (38)                                //kHz   (modulation frequency)
  266. #define IR_SAMS_TOL_DIV     (4)
  267.  
  268. /* Marantz Implementation
  269.  * Receiver: DONE (has not been tested with odd adressbits)
  270.  * Transmitter: DONE
  271.  */
  272. #define IR_MARANTZ_HALF_BIT     (889*CYCLES_PER_US/TIMER_PRESC)     //us
  273. #define IR_MARANTZ_BIT          (889*2*CYCLES_PER_US/TIMER_PRESC)   //us
  274. #define IR_MARANTZ_TIMEOUT      (117-IR_MAX_PULSE_WIDTH/1000)       //ms    (time between ir frames)
  275. #define IR_MARANTZ_REPS         (1)                                 //      (minimum number of times to repeat code)
  276. #define IR_MARANTZ_F_MOD        (36)                                //kHz   (modulation frequency)
  277. #define IR_MARANTZ_TOL_DIV      (4)
  278.  
  279. /* Panasonic Implementation
  280.  * Receiver: DONE
  281.  * Transmitter: DONE
  282.  */
  283. #define IR_PANA_ST_BIT      (3570*CYCLES_PER_US/TIMER_PRESC)    //us
  284. #define IR_PANA_ST_PAUSE    (1630*CYCLES_PER_US/TIMER_PRESC)    //us
  285. #define IR_PANA_LOW_ONE     (1240*CYCLES_PER_US/TIMER_PRESC)    //us
  286. #define IR_PANA_LOW_ZERO    (400*CYCLES_PER_US/TIMER_PRESC)     //us
  287. #define IR_PANA_HIGH        (495*CYCLES_PER_US/TIMER_PRESC)     //us
  288. #define IR_PANA_TIMEOUT     (92-IR_MAX_PULSE_WIDTH/1000)        //ms    (time between ir frames)
  289. #define IR_PANA_REPS        (1)                                 //      (minimum number of times to repeat code)
  290. #define IR_PANA_F_MOD       (38)                                //kHz   (modulation frequency)
  291. #define IR_PANA_TOL_DIV     (4)
  292.  
  293. /* Sky Implementation
  294.  * Receiver: DONE
  295.  * Transmitter:
  296.  */
  297. #define IR_SKY_ST_BIT       (2800*CYCLES_PER_US/TIMER_PRESC)    //us
  298. #define IR_SKY_SHORT        (460*CYCLES_PER_US/TIMER_PRESC)     //us
  299. #define IR_SKY_LONG         (920*CYCLES_PER_US/TIMER_PRESC)     //us
  300. #define IR_SKY_TIMEOUT      (162-IR_MAX_PULSE_WIDTH/1000)       //ms    (time between ir frames)
  301. #define IR_SKY_REPS         (1)                                 //      (minimum number of times to repeat code)
  302. #define IR_SKY_F_MOD        (38)                                //kHz   (modulation frequency)
  303. #define IR_SKY_TOL_DIV      (4)
  304.  
  305. /* iRobot Implementation
  306.  * Receiver: -
  307.  * Transmitter: DONE
  308.  */
  309. #define IR_IROBOT_ST_BIT        (2800*CYCLES_PER_US/TIMER_PRESC)        //us
  310. #define IR_IROBOT_SHORT     (1000*CYCLES_PER_US/TIMER_PRESC)        //us
  311. #define IR_IROBOT_LONG      (3000*CYCLES_PER_US/TIMER_PRESC)        //us
  312. #define IR_IROBOT_TIMEOUT       30      //ms    (time between ir frames)
  313. #define IR_IROBOT_REPS      (6)                                 //      (minimum number of times to repeat code)
  314. #define IR_IROBOT_F_MOD     (40)                                //kHz   (modulation frequency)
  315. #define IR_IROBOT_TOL_DIV       (4)
  316.  
  317.  
  318. /* Nexa2 Implementation
  319.  * Receiver: DONE
  320.  * Transmitter: DONE
  321.  */
  322. #define IR_NEXA2_START1     (10000*CYCLES_PER_US/TIMER_PRESC)   //us
  323. #define IR_NEXA2_START2     (2500*CYCLES_PER_US/TIMER_PRESC)    //us
  324. #define IR_NEXA2_HIGH       (320*CYCLES_PER_US/TIMER_PRESC)     //us
  325. #define IR_NEXA2_LOW_ONE    (210*CYCLES_PER_US/TIMER_PRESC)     //us
  326. #define IR_NEXA2_LOW_ZERO   (1200*CYCLES_PER_US/TIMER_PRESC)    //us
  327. #define IR_NEXA2_TIMEOUT    (200)                               //ms    (time between ir frames)
  328. #define IR_NEXA2_REPS       (5)                                 //      (minimum number of times to repeat code)
  329. #define IR_NEXA2_F_MOD      (38)                                //kHz   (modulation frequency)
  330. #define IR_NEXA2_TOL_DIV    (2)
  331.  
  332.  
  333. /* Nexa1 Implementation
  334.  * Receiver: DONE
  335.  * Transmitter:
  336.  */
  337. #define IR_NEXA1_START      (10000*CYCLES_PER_US/TIMER_PRESC)   //us
  338. #define IR_NEXA1_SHORT      (370*CYCLES_PER_US/TIMER_PRESC)     //us
  339. #define IR_NEXA1_LONG       (1050*CYCLES_PER_US/TIMER_PRESC)    //us
  340. #define IR_NEXA1_TIMEOUT    (200)                               //ms    (time between ir frames)
  341. #define IR_NEXA1_REPS       (4)                                 //      (minimum number of times to repeat code)
  342. #define IR_NEXA1_F_MOD      (38)                                //kHz   (modulation frequency)
  343. #define IR_NEXA1_TOL_DIV    (2)
  344.  
  345.  
  346. /* Viking Temperature sensor Implementation
  347.  * Receiver:
  348.  */
  349. #define IR_VIKING_LOW       (940*CYCLES_PER_US/TIMER_PRESC)     //us
  350. #define IR_VIKING_HIGH_ONE  (1483*CYCLES_PER_US/TIMER_PRESC)        //us
  351. #define IR_VIKING_HIGH_ZERO (550*CYCLES_PER_US/TIMER_PRESC) //us
  352. #define IR_VIKING_TIMEOUT   (0)                                 //ms BURST! (time between ir frames)
  353. #define IR_VIKING_REPS      (1)                                 //      (minimum number of times to repeat code)
  354. #define IR_VIKING_F_MOD     (38)                                //kHz   (modulation frequency)
  355. #define IR_VIKING_TOL_DIV   (3)
  356.  
  357. /* Viking Steak temperature sensor Implementation
  358.  * Receiver:
  359.  */
  360. #define IR_VIKING_STEAK_HIGH        (700*CYCLES_PER_US/TIMER_PRESC)     //us
  361. #define IR_VIKING_STEAK_LOW_ONE (4000*CYCLES_PER_US/TIMER_PRESC)        //us
  362. #define IR_VIKING_STEAK_LOW_ZERO    (1700*CYCLES_PER_US/TIMER_PRESC)    //us
  363. #define IR_VIKING_STEAK_LOW_START   (7800*CYCLES_PER_US/TIMER_PRESC)        //us
  364. #define IR_VIKING_STEAK_TIMEOUT (200)                                   //ms BURST! (time between ir frames)
  365. #define IR_VIKING_STEAK_REPS        (1)                                 //      (minimum number of times to repeat code)
  366. #define IR_VIKING_STEAK_F_MOD       (38)                                //kHz   (modulation frequency)
  367. #define IR_VIKING_STEAK_TOL_DIV (4)
  368.  
  369. /* Rubicson temperature sensor Implementation
  370.  * Receiver:
  371.  */
  372. #define IR_RUBICSON_HIGH        (550*CYCLES_PER_US/TIMER_PRESC)     //us
  373. #define IR_RUBICSON_LOW_ONE     (1880*CYCLES_PER_US/TIMER_PRESC)        //us
  374. #define IR_RUBICSON_LOW_ZERO        (900*CYCLES_PER_US/TIMER_PRESC) //us
  375. #define IR_RUBICSON_LOW_START       (3850*CYCLES_PER_US/TIMER_PRESC)        //us
  376. #define IR_RUBICSON_TIMEOUT     (200)                                   //ms BURST! (time between ir frames)
  377. #define IR_RUBICSON_REPS        (1)                                 //      (minimum number of times to repeat code)
  378. #define IR_RUBICSON_F_MOD       (38)                                //kHz   (modulation frequency)
  379. #define IR_RUBICSON_TOL_DIV     (4)
  380.  
  381. #define IR_PROTO_HASH       0xfe
  382. #define IR_PROTO_UNKNOWN    0xff                                //
  383.  
  384.  
  385.  
  386. /**@}*/
  387. #endif /*IR_PROTOCOLS_H_*/
  388.