diff options
author | James <git@panaceas.org> | 2014-05-05 17:50:20 +0100 |
---|---|---|
committer | James <git@panaceas.org> | 2014-05-05 17:50:20 +0100 |
commit | 470457e22a1b5537013603d5e367c51e47bb61bf (patch) | |
tree | 6b72d32bfd9eaec31c8c520d18782ccaebc01759 /libdpf/usbuser.h | |
download | kmd_usb-470457e22a1b5537013603d5e367c51e47bb61bf.tar.gz kmd_usb-470457e22a1b5537013603d5e367c51e47bb61bf.tar.bz2 kmd_usb-470457e22a1b5537013603d5e367c51e47bb61bf.zip |
fish
Diffstat (limited to 'libdpf/usbuser.h')
-rw-r--r-- | libdpf/usbuser.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/libdpf/usbuser.h b/libdpf/usbuser.h new file mode 100644 index 0000000..37fb705 --- /dev/null +++ b/libdpf/usbuser.h @@ -0,0 +1,29 @@ +/* USB user commands + * + * Only temporary. Should move to dpflib or into a dclib configuration. + * + */ + +#define PROTOCOL_VERSION 1 + +/** Our vendor specific USB commands to do stuff on the DPF */ + +#define USBCMD_GETPROPERTY 0x00 ///< Get property +#define USBCMD_SETPROPERTY 0x01 ///< Set property +#define USBCMD_MEMREAD 0x04 ///< Memory read +#define USBCMD_APPLOAD 0x05 ///< Load and run applet +#define USBCMD_FILLRECT 0x11 ///< Fill screen rectangle +#define USBCMD_BLIT 0x12 ///< Blit to screen +#define USBCMD_COPYRECT 0x13 ///< Copy screen rectangle +#define USBCMD_FLASHLOCK 0x20 ///< Lock USB for flash access +#define USBCMD_PROBE 0xff ///< Get version code (probe) + +/* Some special return codes */ +#define USB_IN_SEQUENCE 0x7f ///< We're inside a command sequence + +// Property handling: + +#define PROPERTY_BRIGHTNESS 0x01 +#define PROPERTY_FGCOLOR 0x02 +#define PROPERTY_BGCOLOR 0x03 +#define PROPERTY_ORIENTATION 0x10 |