Go to the documentation of this file.
30 #if defined(CONF_LR_HANDLER)
48 unsigned int lr_curkeys;
63 void lr_getdata(
unsigned int x)
66 if (lr_dataready == 0)
78 void lr_process(
unsigned int lr_keys)
80 unsigned int keys_on, keys_off, common_keys, k;
83 if (lr_keys != lr_curkeys) {
86 common_keys = (lr_keys & lr_curkeys);
87 keys_on = lr_keys & ~common_keys;
88 keys_off = lr_curkeys & ~common_keys;
101 lr_curkeys = lr_keys;
119 int lr_thread(
int argc,
char *argv[]) {
120 unsigned int lr_keys;
170 #endif // CONF_LR_HANDLER
void lr_set_handler(lr_handler_t handler)
set a new handler for LEGO IR Remote messages
Interface: console input / output.
#define NULL
null pointer value
Interface: LEGO Infrared Remote Control.
void lnp_remote_set_handler(lnp_remote_handler_t handler)
set the remote packet handler
void lr_shutdown(void)
stop the LEGO IR Remote subsystem
lr_handler_t lr_handler
remote handler
#define LR_DUMMY_HANDLER
dummy remote event handler
#define LNP_DUMMY_REMOTE
dummy remote packet handler
wakeup_t wait_event(wakeup_t(*wakeup)(wakeup_t), wakeup_t data)
unsigned long wakeup_t
wakeup data area type
signed int tid_t
task id type
tid_t execi(int(*code_start)(int, char **), int argc, char **argv, priority_t priority, size_t stack_size)
unsigned long time_t
time type
Internal Interface: LCD control and constants.
time_t get_system_up_time(void)
retrieve the current system time
void lr_init(void)
initialize the LEGO IR Remote subsystem
void lr_startup(void)
start the LEGO IR Remote subsystem
Interface: reduced UNIX standard library.
LNP Interface: link networking protocol.
a key on the remote was released
#define LR_TIMEOUT
timeout value in mSec
#define DEFAULT_STACK_SIZE
that's enough.
#define shutdown_requested()
test to see if task has been asked to shutdown
int(* lr_handler_t)(unsigned int, unsigned int)
the remote key handler type
#define PRIO_HIGHEST
The highest possible task priority.
a key on the remote was pressed
Generated for brickOS Kernel Developer by
1.8.16