firmware/rc5.h
author root@rika
Thu, 23 Apr 2009 20:55:41 +0200
changeset 33 7a0c4b0354ba
parent 2 2f55e5dd591d
permissions -rw-r--r--
updated documentation
     1 /*
     2  * Project Frontplatte
     3  *
     4  * rc5.h  -  decode rc5 signals
     5  *
     6  * This file is released under the GNU General Public License. Refer
     7  * to the COPYING file distributed with this package.
     8  *
     9  * (c) 2007 Carsten Presser cpresser AT fsing.uni-sb.de
    10  */
    11 
    12 
    13 #ifndef __RC5_H
    14 #define __RC5_H
    15 
    16 /** D E F I N I T I O N S ****************************************************/
    17 #define		RC5_START1				0x01	// for the decoding state-machiene
    18 #define		RC5_START0				0x02
    19 #define		RC5_MID1				0x03
    20 #define		RC5_MID0				0x04
    21 #define		RC5_UNDEF				0x00
    22 #define		RC5_DONE				0xFF
    23 
    24 #define		RC5_PULSE_LONG			0x02
    25 #define		RC5_PULSE_SHORT			0x04
    26 #define		RC5_SPACE_LONG			0x01
    27 #define		RC5_SPACE_SHORT			0x03
    28 #define		RC5_IN_UNDEF			0x00
    29 
    30 
    31 /** E X T E R N A L   V A R I A B L E S ***************************/
    32 extern unsigned char gg_ir;
    33 extern unsigned char gg_ir_address;
    34 
    35 /** P U B L I C   P R O T O T Y P E S *****************************/
    36 void rc5_init(void);
    37 void rc5_decode(void);
    38 void rc5_scrap(void);
    39 
    40 #endif //__RC5_H