35 #define MIN_RECEIVE_TIMEOUT 100000
50 static inline lirc_t receive_timeout(lirc_t usec)
</pre >< h3 > Syntax and semantics of the functions</h3 >< p > Note even if implementing the functions in there is no need to declare them as< code > external C</code >< h4 >< code > init_func</code ></h4 >< code > int the functions< code > rec_buffer_init(void)</code > and/or< code >send_buffer_init(void)</code > needs to be called.</p >< h4 >< code >deinit_func</code ></h4 >< code >int mydeinit_func(void)</code >< p >Function called for suspending the driver.Zero return value indicates failure
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.