Initial commit of sender protocol definitions
This commit is contained in:
commit
8be149ac6f
1 changed files with 27 additions and 0 deletions
27
include/tabby.h
Normal file
27
include/tabby.h
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
#ifndef _TABBY_H
|
||||||
|
#define _TABBY_H
|
||||||
|
|
||||||
|
typedef enum tabby_command {
|
||||||
|
TABBY_COMMAND_SEND = 0x01,
|
||||||
|
TABBY_COMMAND_CLOCK_MODE = 0x02,
|
||||||
|
TABBY_COMMAND_CLOCK_SPEED = 0x03
|
||||||
|
};
|
||||||
|
|
||||||
|
typedef enum tabby_clock_mode {
|
||||||
|
TABBY_CLOCK_MODE_INTERNAL = 0x01,
|
||||||
|
TABBY_CLOCK_MODE_EXTERNAL = 0x02
|
||||||
|
};
|
||||||
|
|
||||||
|
typedef enum tabby_clock_speed {
|
||||||
|
TABBY_CLOCK_SPEED_8192HZ = 0x01,
|
||||||
|
TABBY_CLOCK_SPEED_16384HZ = 0x02,
|
||||||
|
TABBY_CLOCK_SPEED_32768HZ = 0x04,
|
||||||
|
TABBY_CLOCK_SPEED_65536HZ = 0x08
|
||||||
|
};
|
||||||
|
|
||||||
|
typedef struct _tabby_packet {
|
||||||
|
uint16_t type,
|
||||||
|
value;
|
||||||
|
} tabby_packet;
|
||||||
|
|
||||||
|
#endif /* _TABBY_H */
|
Loading…
Add table
Reference in a new issue