diff options
author | root <root@filebitch> | 2011-08-28 18:28:51 +0200 |
---|---|---|
committer | root <root@filebitch> | 2011-08-28 18:28:51 +0200 |
commit | c8c27e3af96a84ccf8ecdfd7610e49dba0598e7d (patch) | |
tree | 3cb1a59b301f91b6a1524b48fb9d828a78a43dac /oncology/dpfhack_display/include/usbuser.h | |
parent | 99bdbc04f2be1f0d27c4a4dde692e8a5b6eb8a7e (diff) | |
parent | 7a97f9d4baff89bbcfa4bef93ab4d4246b2b82e6 (diff) |
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'oncology/dpfhack_display/include/usbuser.h')
-rw-r--r-- | oncology/dpfhack_display/include/usbuser.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/oncology/dpfhack_display/include/usbuser.h b/oncology/dpfhack_display/include/usbuser.h new file mode 100644 index 00000000..618fb601 --- /dev/null +++ b/oncology/dpfhack_display/include/usbuser.h @@ -0,0 +1,27 @@ +/* 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_CLRFB 0x10 ///< Clear screen with RGB565 color +#define USBCMD_WRITEFB 0x11 ///< Write full screen. DEPRECATED. +#define USBCMD_BLIT 0x12 ///< Blit to screen +#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_ORIENTATION 0x10 |