Initial commit of sender protocol definitions

This commit is contained in:
XANTRONIX Development 2016-05-24 19:47:16 -05:00
commit 8be149ac6f

27
include/tabby.h Normal file
View 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 */