lib/rc5_common.h
Go to the documentation of this file.
00001 #ifndef _RC5_COMMON_H
00002 #define _RC5_COMMON_H
00003 
00004 #define RC5_BITS_PER_FRAME      14
00005 #define RC5_RECV_PENDING        8       // must be >= 2
00006 
00007 #define RC5_CODE(dev, com) (((dev & 0x1F) << 6) | (com & 0x3F))
00008 
00009 typedef uint16_t rc5_t;
00010 typedef rc5_t rc5_seq_t[RC5_RECV_PENDING];
00011
00012 #endif // _RC5_COMMON_H