35 #define MIN_RECEIVE_TIMEOUT 100000
50 static inline lirc_t receive_timeout(lirc_t usec)
void rec_buffer_init(void)
Clear internal buffer to pristine state.
void rec_buffer_set_logfile(FILE *f)
Set a file logging input from driver in same format as mode2(1).
One remote as represented in the configuration file.
void rec_buffer_rewind(void)
Reset the modules's internal fifo's read state to initial values where the nothing is read...
int receive_decode(struct ir_remote *remote, struct decode_ctx_t *ctx)
Decode data from remote.
void rec_buffer_reset_wptr(void)
Reset internal fifo's write pointer.
int waitfordata(uint32_t maxusec)
If set_waitfordata(func) is called, invoke and return function set this way.
void set_waitfordata_func(int(*func)(uint32_t maxusec))
Set the function used by waitfordata().
Describes and decodes the signals from IR remotes.
State describing code, pre, post + gap and repeat state.
void rec_set_update_mode(int mode)
Set update mode, where recorded pre_data is verified to match the template pre_data.
#define MIN_RECEIVE_TIMEOUT
Min value returned by receive_timeout.
int rec_buffer_clear(void)
Flush the internal fifo and store a single code read from the driver in it.