LIRC libraries
LinuxInfraredRemoteControl
receive.c File Reference

(54907d5 2017-06-12 23:26:40 +0200)

Implements receive.h. More...

#include <errno.h>
#include <limits.h>
#include <poll.h>
#include <stdint.h>
#include "media/lirc.h"
#include "lirc/driver.h"
#include "lirc/lirc_log.h"
#include "lirc/receive.h"
#include "lirc/ir_remote.h"

Go to the source code of this file.

Macros

#define RBUF_SIZE   512
 
#define REC_SYNC   8
 

Functions

void rec_set_update_mode (int mode)
 Set update mode, where recorded pre_data is verified to match the template pre_data. More...
 
void set_waitfordata_func (int(*func)(uint32_t maxusec))
 Set the function used by waitfordata(). More...
 
int waitfordata (uint32_t maxusec)
 If set_waitfordata(func) is called, invoke and return function set this way. More...
 
void rec_buffer_set_logfile (FILE *f)
 Set a file logging input from driver in same format as mode2(1). More...
 
void rec_buffer_init (void)
 Clear internal buffer to pristine state. More...
 
void rec_buffer_rewind (void)
 Reset the modules's internal fifo's read state to initial values where the nothing is read. More...
 
void rec_buffer_reset_wptr (void)
 Reset internal fifo's write pointer. More...
 
int rec_buffer_clear (void)
 Flush the internal fifo and store a single code read from the driver in it.
 
int receive_decode (struct ir_remote *remote, struct decode_ctx_t *ctx)
 Decode data from remote. More...
 

Variables

int(* lircd_waitfordata )(uint32_t timeout) = NULL
 

Detailed Description

Implements receive.h.

Author
Christoph Bartelmus

Definition in file receive.c.