From 37e09437c2f20ac269f8d2b7f9c7f7cd325f0585 Mon Sep 17 00:00:00 2001 From: makefu Date: Sat, 20 Aug 2011 23:21:48 +0200 Subject: oncology: initial commit oncology will analyse the current krebs status --- oncology/dpfhack_display/include/usbuser.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 oncology/dpfhack_display/include/usbuser.h (limited to 'oncology/dpfhack_display/include/usbuser.h') 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 -- cgit v1.2.3