#include <config.h>
Include dependency graph for remote.h:
Go to the source code of this file.
Defines | |
#define | LR_TIMEOUT 100 |
timeout value in mSec | |
#define | LRKEY_M1 0x1 |
The message #1 key. | |
#define | LRKEY_M2 0x2 |
The message #2 key. | |
#define | LRKEY_M3 0x4 |
The message #3 key. | |
#define | LRKEY_A1 0x8 |
Motor-A forward (up). | |
#define | LRKEY_B1 0x10 |
Motor-B forward (up). | |
#define | LRKEY_C1 0x20 |
Motor-C forward (up). | |
#define | LRKEY_A2 0x40 |
Motor-A reverse (down). | |
#define | LRKEY_B2 0x80 |
Motor-B reverse (down). | |
#define | LRKEY_C2 0x100 |
Motor-C reverse (down). | |
#define | LRKEY_P1 0x200 |
Run Program 1. | |
#define | LRKEY_P2 0x400 |
Run Program 2. | |
#define | LRKEY_P3 0x800 |
Run Program 3. | |
#define | LRKEY_P4 0x1000 |
Run Program 4. | |
#define | LRKEY_P5 0x2000 |
Run Program 5. | |
#define | LRKEY_STOP 0x4000 |
Stop key. | |
#define | LRKEY_BEEP 0x8000 |
Beep Key. | |
#define | LR_DUMMY_HANDLER ((lr_handler_t)0) |
dummy remote event handler | |
Typedefs | |
typedef int(* | lr_handler_t )(unsigned int, unsigned int) |
the remote key handler type | |
Enumerations | |
enum | _evt { LREVT_KEYON = 1, LREVT_KEYOFF = 2 } |
enumerate our event types More... | |
Functions | |
void | lr_startup (void) |
start the LEGO IR Remote subsystem | |
void | lr_init (void) |
initialize the LEGO IR Remote subsystem | |
void | lr_shutdown (void) |
stop the LEGO IR Remote subsystem | |
void | lr_set_handler (lr_handler_t handler) |
set a new handler for LEGO IR Remote messages | |
Variables | |
enum _evt | EventType |
the LEGO IR Remote event types | |
lr_handler_t | lr_handler |
remote handler |
Definition in file remote.h.
|
dummy remote event handler
|
|
timeout value in mSec
|
|
Motor-A forward (up).
|
|
Motor-A reverse (down).
|
|
Motor-B forward (up).
|
|
Motor-B reverse (down).
|
|
Beep Key.
|
|
Motor-C forward (up).
|
|
Motor-C reverse (down).
|
|
The message #1 key.
|
|
The message #2 key.
|
|
The message #3 key.
|
|
Run Program 1.
|
|
Run Program 2.
|
|
Run Program 3.
|
|
Run Program 4.
|
|
Run Program 5.
|
|
Stop key.
|
|
the remote key handler type
Definition at line 80 of file remote.h. Referenced by lr_set_handler(). |
|
enumerate our event types
|
|
initialize the LEGO IR Remote subsystem
|
|
set a new handler for LEGO IR Remote messages
Definition at line 97 of file remote.h. References lr_handler, and lr_handler_t. |
|
stop the LEGO IR Remote subsystem
|
|
start the LEGO IR Remote subsystem
|
|
the LEGO IR Remote event types
|
|
remote handler
Definition at line 83 of file remote.h. Referenced by lr_set_handler(). |
brickOS is released under the
Mozilla Public License.
Original code copyright 1998-2002 by the authors. |