Interface: LEGO Infrared Remote Control.
More...
#include <config.h>
Go to the source code of this file.
Interface: LEGO Infrared Remote Control.
- Author
- Ross Crawford rcraw.nosp@m.ford.nosp@m.@csi..nosp@m.com
Definition in file remote.h.
dummy remote event handler
Definition at line 102 of file remote.h.
timeout value in mSec
Definition at line 34 of file remote.h.
Motor-A forward (up)
Definition at line 43 of file remote.h.
Motor-A reverse (down)
Definition at line 49 of file remote.h.
Motor-B forward (up)
Definition at line 45 of file remote.h.
Motor-B reverse (down)
Definition at line 51 of file remote.h.
#define LRKEY_BEEP 0x8000 |
Motor-C forward (up)
Definition at line 47 of file remote.h.
Motor-C reverse (down)
Definition at line 53 of file remote.h.
The message #1 key.
Definition at line 37 of file remote.h.
The message #2 key.
Definition at line 39 of file remote.h.
The message #3 key.
Definition at line 41 of file remote.h.
Run Program 1.
Definition at line 55 of file remote.h.
Run Program 2.
Definition at line 57 of file remote.h.
Run Program 3.
Definition at line 59 of file remote.h.
Run Program 4.
Definition at line 61 of file remote.h.
Run Program 5.
Definition at line 63 of file remote.h.
#define LRKEY_STOP 0x4000 |
typedef int(* lr_handler_t) (unsigned int, unsigned int) |
the remote key handler type
- Parameters
-
event_type | was key pressed or released? |
key | the key, on the remote, that was pressed/released |
- Returns
- 0 if not processed, otherwise non-zero.
Definition at line 80 of file remote.h.
enumerate our event types
Enumerator |
---|
LREVT_KEYON |
a key on the remote was pressed
|
LREVT_KEYOFF |
a key on the remote was released
|
Definition at line 70 of file remote.h.
initialize the LEGO IR Remote subsystem
set a new handler for LEGO IR Remote messages
- Parameters
-
handler | pointer to a function which is to be the processing function for received messages |
- Returns
- Nothing
Definition at line 97 of file remote.h.
void lr_shutdown |
( |
void |
| ) |
|
stop the LEGO IR Remote subsystem
start the LEGO IR Remote subsystem
the LEGO IR Remote event types