#include <stdint.h>
#include <stddef.h>
#include <string.h>
Go to the source code of this file.
|
typedef uint8_t | u8 |
|
typedef uint16_t | u16 |
|
typedef uint32_t | u32 |
|
typedef uint64_t | u64 |
|
typedef int8_t | i8 |
|
typedef int16_t | i16 |
|
typedef int32_t | i32 |
|
typedef int64_t | i64 |
|
#define ARRAY_SIZE |
( |
|
array | ) |
(sizeof(array) / sizeof(array)[0]) |
Value:do {\
fprintf(stderr,
"[%s:%d]: %ls (%s)", __func__, __LINE__, hid_error(
handle), msg);\
exit(__LINE__);\
} while (0)
Definition at line 21 of file defs.h.
#define print_bytes |
( |
|
buf, |
|
|
|
len |
|
) |
| |
Value:
for (int i = 0; i != len; i++, ptr++) fprintf(stderr, "%02x ", *ptr);\
} while (0*putc('\n', stderr))
Definition at line 34 of file defs.h.
#define print_chars |
( |
|
buf, |
|
|
|
len |
|
) |
| |
Value:do {\
char *ptr = buf;\
for (int i = 0; i != len; i++, ptr++) fprintf(stderr, "%c ", *ptr);\
} while (0*putc('\n', stderr))
Definition at line 40 of file defs.h.
#define TIMEOUT 2000 /* in milliseconds */ |
Definition at line 9 of file defs.h.