30 #ifdef CONF_LR_HANDLER 34 #define LR_TIMEOUT 100 52 #define LRKEY_C2 0x100 54 #define LRKEY_P1 0x200 56 #define LRKEY_P2 0x400 58 #define LRKEY_P3 0x800 60 #define LRKEY_P4 0x1000 62 #define LRKEY_P5 0x2000 64 #define LRKEY_STOP 0x4000 66 #define LRKEY_BEEP 0x8000 102 #define LR_DUMMY_HANDLER ((lr_handler_t)0) _evt
enumerate our event types
int(* lr_handler_t)(unsigned int, unsigned int)
the remote key handler type
a key on the remote was released
void lr_set_handler(lr_handler_t handler)
set a new handler for LEGO IR Remote messages
kernel configuration file
a key on the remote was pressed
void lr_init(void)
initialize the LEGO IR Remote subsystem
void lr_shutdown(void)
stop the LEGO IR Remote subsystem
lr_handler_t lr_handler
remote handler
void lr_startup(void)
start the LEGO IR Remote subsystem
enum _evt EventType
the LEGO IR Remote event types