Interface to Daydream driver code.
More...
Go to the source code of this file.
|
#define | DAYDREAM_SPEW(c, ...) |
|
#define | DAYDREAM_DEBUG(c, ...) |
|
#define | DAYDREAM_ERROR(c, ...) |
|
|
enum | daydream_button_bits {
DAYDREAM_TOUCHPAD_BUTTON_BIT = 0,
DAYDREAM_CIRCLE_BUTTON_BIT = 1,
DAYDREAM_BAR_BUTTON_BIT = 2,
DAYDREAM_VOLUP_BUTTON_BIT = 3,
DAYDREAM_VOLDN_BUTTON_BIT = 4
} |
|
enum | daydream_button_masks {
DAYDREAM_TOUCHPAD_BUTTON_MASK = 1 << DAYDREAM_TOUCHPAD_BUTTON_BIT,
DAYDREAM_CIRCLE_BUTTON_MASK = 1 << DAYDREAM_CIRCLE_BUTTON_BIT,
DAYDREAM_BAR_BUTTON_MASK = 1 << DAYDREAM_BAR_BUTTON_BIT,
DAYDREAM_VOLUP_BUTTON_MASK = 1 << DAYDREAM_VOLUP_BUTTON_BIT,
DAYDREAM_VOLDN_BUTTON_MASK = 1 << DAYDREAM_VOLDN_BUTTON_BIT
} |
|
◆ DAYDREAM_DEBUG
#define DAYDREAM_DEBUG |
( |
|
c, |
|
|
|
... |
|
) |
| |
Value:do { \
if (c->print_debug) { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} \
} while (false)
◆ DAYDREAM_ERROR
#define DAYDREAM_ERROR |
( |
|
c, |
|
|
|
... |
|
) |
| |
Value:do { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} while (false)
◆ DAYDREAM_SPEW
#define DAYDREAM_SPEW |
( |
|
c, |
|
|
|
... |
|
) |
| |
Value:do { \
if (c->print_spew) { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} \
} while (false)