1 /* $Id: receive.h,v 5.4 2007/07/29 18:20:13 lirc Exp $ */
3 /****************************************************************************
4 ** receive.h ***************************************************************
5 ****************************************************************************
7 * functions that decode IR codes
9 * Copyright (C) 1999 Christoph Bartelmus <lirc@bartelmus.de>
17 #include "ir_remote.h"
19 #define RBUF_SIZE (256)
25 lirc_t data
[RBUF_SIZE
];
36 inline lirc_t
lirc_t_max(lirc_t a
,lirc_t b
);
37 void init_rec_buffer();
38 int clear_rec_buffer(void);
39 int receive_decode(struct ir_remote
*remote
,
40 ir_code
*prep
,ir_code
*codep
,ir_code
*postp
,
42 lirc_t
*min_remaining_gapp
,
43 lirc_t
*max_remaining_gapp
);
44 int clear_rec_buffer(void);
45 void rewind_rec_buffer(void);