receive.h
Go to the documentation of this file.
/****************************************************************************
** receive.h ***************************************************************
****************************************************************************
*
* functions that decode IR codes
*
* Copyright (C) 1999 Christoph Bartelmus <lirc@bartelmus.de>
*
*/
#ifndef _RECEIVE_H
#define _RECEIVE_H
#include "ir_remote.h"
#ifdef __cplusplus
extern "C" {
#endif
#define MIN_RECEIVE_TIMEOUT 100000
void rec_set_update_mode(int mode);
void rec_buffer_set_logfile(FILE* f);
static inline lirc_t receive_timeout(lirc_t usec)
{
return 2 * usec < MIN_RECEIVE_TIMEOUT ? MIN_RECEIVE_TIMEOUT : 2 * usec;
}
int waitfordata(__u32 maxusec);
void rec_buffer_init(void);
int rec_buffer_clear(void);
int receive_decode(struct ir_remote* remote, struct decode_ctx_t* ctx);
void rec_buffer_rewind(void);
void rec_buffer_reset_wptr(void);
#ifdef __cplusplus
}
#endif
#endif
rec_buffer_init
void rec_buffer_init(void)
Definition: receive.c:204
rec_buffer_set_logfile
void rec_buffer_set_logfile(FILE *f)
Definition: receive.c:191
ir_remote
Definition: ir_remote_types.h:167
waitfordata
int waitfordata(__u32 maxusec)
Definition: receive.c:165
rec_buffer_rewind
void rec_buffer_rewind(void)
Definition: receive.c:209
receive_decode
int receive_decode(struct ir_remote *remote, struct decode_ctx_t *ctx)
Definition: receive.c:1041
rec_buffer_reset_wptr
void rec_buffer_reset_wptr(void)
Definition: receive.c:219
ir_remote.h
Describes and decodes the signals from IR remotes.
decode_ctx_t
Definition: ir_remote_types.h:154
rec_set_update_mode
void rec_set_update_mode(int mode)
Definition: receive.c:68
MIN_RECEIVE_TIMEOUT
#define MIN_RECEIVE_TIMEOUT
Definition: receive.h:34
rec_buffer_clear
int rec_buffer_clear(void)
Definition: receive.c:224