commit 8be149ac6feb306aa46425acdee7a29b29d2a79d Author: XANTRONIX Development Date: Tue May 24 19:47:16 2016 -0500 Initial commit of sender protocol definitions diff --git a/include/tabby.h b/include/tabby.h new file mode 100644 index 0000000..f8eb951 --- /dev/null +++ b/include/tabby.h @@ -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 */