Driver for 4D Systems LCD screen with Picaso processor. Ported from 4D Systems Picaso Serial Linux Library

Dependencies:   MODSERIAL

Dependents:   Lab4_Demo_Game 4180_Final_Project

Fork of uLCD_4D_Picaso by Andrew McRae

Committer:
shorwich
Date:
Thu Oct 27 23:42:13 2016 +0000
Revision:
9:72f00cef468b
Parent:
4:30010dda3b34
Moved graphics command functions to separate file for clarity.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
admcrae 4:30010dda3b34 1 /** @file Picaso_enums.h
admcrae 4:30010dda3b34 2 *
admcrae 4:30010dda3b34 3 * This file contains various constants for use with the Picaso serial commands.
admcrae 3:be4da6cb58b1 4 *
admcrae 3:be4da6cb58b1 5 * This is a port of the 4D systems Picaso Serial Linux Library
admcrae 3:be4da6cb58b1 6 * Copyright (c) 2014 4D Systems PTY Ltd, Sydney, Australia
admcrae 3:be4da6cb58b1 7 * From https://github.com/4dsystems/Picaso-Serial-Linux-Library, retrieved March 5, 2015
admcrae 3:be4da6cb58b1 8 *
admcrae 3:be4da6cb58b1 9 * All software in this library is provided without warranty; use at your own risk.
admcrae 3:be4da6cb58b1 10 */
admcrae 3:be4da6cb58b1 11
admcrae 2:ebe7029e2825 12 #ifndef PICASO_ENUMS_H
admcrae 2:ebe7029e2825 13 #define PICASO_ENUMS_H
admcrae 2:ebe7029e2825 14
admcrae 4:30010dda3b34 15 /** @namespace Picaso
admcrae 4:30010dda3b34 16 * Namespace to contain all of the constants that the user may need for the Picaso processor.
admcrae 4:30010dda3b34 17 */
admcrae 2:ebe7029e2825 18 namespace Picaso {
admcrae 2:ebe7029e2825 19
admcrae 4:30010dda3b34 20 /** @enum
admcrae 4:30010dda3b34 21 * Generic constants
admcrae 4:30010dda3b34 22 */
admcrae 2:ebe7029e2825 23 enum {
admcrae 2:ebe7029e2825 24 ENABLE = 1,
admcrae 2:ebe7029e2825 25 DISABLE = 0,
admcrae 2:ebe7029e2825 26
admcrae 2:ebe7029e2825 27 HI = 1,
admcrae 2:ebe7029e2825 28 LO = 0,
admcrae 2:ebe7029e2825 29
admcrae 2:ebe7029e2825 30 INPUT = 1,
admcrae 2:ebe7029e2825 31 OUTPUT = 0,
admcrae 2:ebe7029e2825 32
admcrae 2:ebe7029e2825 33 ON = 1,
admcrae 2:ebe7029e2825 34 OFF = 0,
admcrae 2:ebe7029e2825 35
admcrae 4:30010dda3b34 36 ALL = 0xFFFF /** argument for img_xxx functions to update all images */
admcrae 2:ebe7029e2825 37 };
admcrae 2:ebe7029e2825 38
admcrae 2:ebe7029e2825 39
admcrae 4:30010dda3b34 40 /** @enum BaudRate
admcrae 4:30010dda3b34 41 * Allowed serial interface baud rates.
admcrae 4:30010dda3b34 42 */
admcrae 2:ebe7029e2825 43 enum BaudRate {
admcrae 2:ebe7029e2825 44 BAUD_110 = 0, BAUD_300, BAUD_600, BAUD_1200, BAUD_2400, BAUD_4800, BAUD_9600, BAUD_14400,
admcrae 2:ebe7029e2825 45 BAUD_19200, BAUD_31250, BAUD_38400, BAUD_56000, BAUD_57600, BAUD_115200, BAUD_128000,
admcrae 2:ebe7029e2825 46 BAUD_256000, BAUD_300000, BAUD_375000, BAUD_500000, BAUD_600000
admcrae 2:ebe7029e2825 47 };
admcrae 2:ebe7029e2825 48
admcrae 2:ebe7029e2825 49
admcrae 4:30010dda3b34 50 /**
admcrae 4:30010dda3b34 51 * @enum Color
admcrae 4:30010dda3b34 52 *
admcrae 4:30010dda3b34 53 * 16 bit RGB (565) Colour Chart
admcrae 4:30010dda3b34 54 * Original work by 4D Forum Member: skadoo
admcrae 4:30010dda3b34 55 */
admcrae 2:ebe7029e2825 56 enum Color {
admcrae 2:ebe7029e2825 57 ALICEBLUE = 0xF7DF,
admcrae 2:ebe7029e2825 58 ANTIQUEWHITE = 0xFF5A,
admcrae 2:ebe7029e2825 59 AQUA = 0x07FF,
admcrae 2:ebe7029e2825 60 AQUAMARINE = 0x7FFA,
admcrae 2:ebe7029e2825 61 AZURE = 0xF7FF,
admcrae 2:ebe7029e2825 62 BEIGE = 0xF7BB,
admcrae 2:ebe7029e2825 63 BISQUE = 0xFF38,
admcrae 2:ebe7029e2825 64 BLACK = 0x0000,
admcrae 2:ebe7029e2825 65 BLANCHEDALMOND = 0xFF59,
admcrae 2:ebe7029e2825 66 BLUE = 0x001F,
admcrae 2:ebe7029e2825 67 BLUEVIOLET = 0x895C,
admcrae 2:ebe7029e2825 68 BROWN = 0xA145,
admcrae 2:ebe7029e2825 69 BURLYWOOD = 0xDDD0,
admcrae 2:ebe7029e2825 70 CADETBLUE = 0x5CF4,
admcrae 2:ebe7029e2825 71 CHARTREUSE = 0x7FE0,
admcrae 2:ebe7029e2825 72 CHOCOLATE = 0xD343,
admcrae 2:ebe7029e2825 73 CORAL = 0xFBEA,
admcrae 2:ebe7029e2825 74 CORNFLOWERBLUE = 0x64BD,
admcrae 2:ebe7029e2825 75 CORNSILK = 0xFFDB,
admcrae 2:ebe7029e2825 76 CRIMSON = 0xD8A7,
admcrae 2:ebe7029e2825 77 CYAN = 0x07FF,
admcrae 2:ebe7029e2825 78 DARKBLUE = 0x0011,
admcrae 2:ebe7029e2825 79 DARKCYAN = 0x0451,
admcrae 2:ebe7029e2825 80 DARKGOLDENROD = 0xBC21,
admcrae 2:ebe7029e2825 81 DARKGRAY = 0xAD55,
admcrae 2:ebe7029e2825 82 DARKGREEN = 0x0320,
admcrae 2:ebe7029e2825 83 DARKKHAKI = 0xBDAD,
admcrae 2:ebe7029e2825 84 DARKMAGENTA = 0x8811,
admcrae 2:ebe7029e2825 85 DARKOLIVEGREEN = 0x5345,
admcrae 2:ebe7029e2825 86 DARKORANGE = 0xFC60,
admcrae 2:ebe7029e2825 87 DARKORCHID = 0x9999,
admcrae 2:ebe7029e2825 88 DARKRED = 0x8800,
admcrae 2:ebe7029e2825 89 DARKSALMON = 0xECAF,
admcrae 2:ebe7029e2825 90 DARKSEAGREEN = 0x8DF1,
admcrae 2:ebe7029e2825 91 DARKSLATEBLUE = 0x49F1,
admcrae 2:ebe7029e2825 92 DARKSLATEGRAY = 0x2A69,
admcrae 2:ebe7029e2825 93 DARKTURQUOISE = 0x067A,
admcrae 2:ebe7029e2825 94 DARKVIOLET = 0x901A,
admcrae 2:ebe7029e2825 95 DEEPPINK = 0xF8B2,
admcrae 2:ebe7029e2825 96 DEEPSKYBLUE = 0x05FF,
admcrae 2:ebe7029e2825 97 DIMGRAY = 0x6B4D,
admcrae 2:ebe7029e2825 98 DODGERBLUE = 0x1C9F,
admcrae 2:ebe7029e2825 99 FIREBRICK = 0xB104,
admcrae 2:ebe7029e2825 100 FLORALWHITE = 0xFFDE,
admcrae 2:ebe7029e2825 101 FORESTGREEN = 0x2444,
admcrae 2:ebe7029e2825 102 FUCHSIA = 0xF81F,
admcrae 2:ebe7029e2825 103 GAINSBORO = 0xDEFB,
admcrae 2:ebe7029e2825 104 GHOSTWHITE = 0xFFDF,
admcrae 2:ebe7029e2825 105 GOLD = 0xFEA0,
admcrae 2:ebe7029e2825 106 GOLDENROD = 0xDD24,
admcrae 2:ebe7029e2825 107 GRAY = 0x8410,
admcrae 2:ebe7029e2825 108 GREEN = 0x0400,
admcrae 2:ebe7029e2825 109 GREENYELLOW = 0xAFE5,
admcrae 2:ebe7029e2825 110 HONEYDEW = 0xF7FE,
admcrae 2:ebe7029e2825 111 HOTPINK = 0xFB56,
admcrae 2:ebe7029e2825 112 INDIANRED = 0xCAEB,
admcrae 2:ebe7029e2825 113 INDIGO = 0x4810,
admcrae 2:ebe7029e2825 114 IVORY = 0xFFFE,
admcrae 2:ebe7029e2825 115 KHAKI = 0xF731,
admcrae 2:ebe7029e2825 116 LAVENDER = 0xE73F,
admcrae 2:ebe7029e2825 117 LAVENDERBLUSH = 0xFF9E,
admcrae 2:ebe7029e2825 118 LAWNGREEN = 0x7FE0,
admcrae 2:ebe7029e2825 119 LEMONCHIFFON = 0xFFD9,
admcrae 2:ebe7029e2825 120 LIGHTBLUE = 0xAEDC,
admcrae 2:ebe7029e2825 121 LIGHTCORAL = 0xF410,
admcrae 2:ebe7029e2825 122 LIGHTCYAN = 0xE7FF,
admcrae 2:ebe7029e2825 123 LIGHTGOLD = 0xFFDA,
admcrae 2:ebe7029e2825 124 LIGHTGREEN = 0x9772,
admcrae 2:ebe7029e2825 125 LIGHTGREY = 0xD69A,
admcrae 2:ebe7029e2825 126 LIGHTPINK = 0xFDB8,
admcrae 2:ebe7029e2825 127 LIGHTSALMON = 0xFD0F,
admcrae 2:ebe7029e2825 128 LIGHTSEAGREEN = 0x2595,
admcrae 2:ebe7029e2825 129 LIGHTSKYBLUE = 0x867F,
admcrae 2:ebe7029e2825 130 LIGHTSLATEGRAY = 0x7453,
admcrae 2:ebe7029e2825 131 LIGHTSTEELBLUE = 0xB63B,
admcrae 2:ebe7029e2825 132 LIGHTYELLOW = 0xFFFC,
admcrae 2:ebe7029e2825 133 LIME = 0x07E0,
admcrae 2:ebe7029e2825 134 LIMEGREEN = 0x3666,
admcrae 2:ebe7029e2825 135 LINEN = 0xFF9C,
admcrae 2:ebe7029e2825 136 MAGENTA = 0xF81F,
admcrae 2:ebe7029e2825 137 MAROON = 0x8000,
admcrae 2:ebe7029e2825 138 MEDIUMAQUAMARINE = 0x6675,
admcrae 2:ebe7029e2825 139 MEDIUMBLUE = 0x0019,
admcrae 2:ebe7029e2825 140 MEDIUMORCHID = 0xBABA,
admcrae 2:ebe7029e2825 141 MEDIUMPURPLE = 0x939B,
admcrae 2:ebe7029e2825 142 MEDIUMSEAGREEN = 0x3D8E,
admcrae 2:ebe7029e2825 143 MEDIUMSLATEBLUE = 0x7B5D,
admcrae 2:ebe7029e2825 144 MEDIUMSPRINGGREEN = 0x07D3,
admcrae 2:ebe7029e2825 145 MEDIUMTURQUOISE = 0x4E99,
admcrae 2:ebe7029e2825 146 MEDIUMVIOLETRED = 0xC0B0,
admcrae 2:ebe7029e2825 147 MIDNIGHTBLUE = 0x18CE,
admcrae 2:ebe7029e2825 148 MINTCREAM = 0xF7FF,
admcrae 2:ebe7029e2825 149 MISTYROSE = 0xFF3C,
admcrae 2:ebe7029e2825 150 MOCCASIN = 0xFF36,
admcrae 2:ebe7029e2825 151 NAVAJOWHITE = 0xFEF5,
admcrae 2:ebe7029e2825 152 NAVY = 0x0010,
admcrae 2:ebe7029e2825 153 OLDLACE = 0xFFBC,
admcrae 2:ebe7029e2825 154 OLIVE = 0x8400,
admcrae 2:ebe7029e2825 155 OLIVEDRAB = 0x6C64,
admcrae 2:ebe7029e2825 156 ORANGE = 0xFD20,
admcrae 2:ebe7029e2825 157 ORANGERED = 0xFA20,
admcrae 2:ebe7029e2825 158 ORCHID = 0xDB9A,
admcrae 2:ebe7029e2825 159 PALEGOLDENROD = 0xEF55,
admcrae 2:ebe7029e2825 160 PALEGREEN = 0x9FD3,
admcrae 2:ebe7029e2825 161 PALETURQUOISE = 0xAF7D,
admcrae 2:ebe7029e2825 162 PALEVIOLETRED = 0xDB92,
admcrae 2:ebe7029e2825 163 PAPAYAWHIP = 0xFF7A,
admcrae 2:ebe7029e2825 164 PEACHPUFF = 0xFED7,
admcrae 2:ebe7029e2825 165 PERU = 0xCC27,
admcrae 2:ebe7029e2825 166 PINK = 0xFE19,
admcrae 2:ebe7029e2825 167 PLUM = 0xDD1B,
admcrae 2:ebe7029e2825 168 POWDERBLUE = 0xB71C,
admcrae 2:ebe7029e2825 169 PURPLE = 0x8010,
admcrae 2:ebe7029e2825 170 RED = 0xF800,
admcrae 2:ebe7029e2825 171 ROSYBROWN = 0xBC71,
admcrae 2:ebe7029e2825 172 ROYALBLUE = 0x435C,
admcrae 2:ebe7029e2825 173 SADDLEBROWN = 0x8A22,
admcrae 2:ebe7029e2825 174 SALMON = 0xFC0E,
admcrae 2:ebe7029e2825 175 SANDYBROWN = 0xF52C,
admcrae 2:ebe7029e2825 176 SEAGREEN = 0x2C4A,
admcrae 2:ebe7029e2825 177 SEASHELL = 0xFFBD,
admcrae 2:ebe7029e2825 178 SIENNA = 0xA285,
admcrae 2:ebe7029e2825 179 SILVER = 0xC618,
admcrae 2:ebe7029e2825 180 SKYBLUE = 0x867D,
admcrae 2:ebe7029e2825 181 SLATEBLUE = 0x6AD9,
admcrae 2:ebe7029e2825 182 SLATEGRAY = 0x7412,
admcrae 2:ebe7029e2825 183 SNOW = 0xFFDF,
admcrae 2:ebe7029e2825 184 SPRINGGREEN = 0x07EF,
admcrae 2:ebe7029e2825 185 STEELBLUE = 0x4416,
admcrae 2:ebe7029e2825 186 TAN = 0xD5B1,
admcrae 2:ebe7029e2825 187 TEAL = 0x0410,
admcrae 2:ebe7029e2825 188 THISTLE = 0xDDFB,
admcrae 2:ebe7029e2825 189 TOMATO = 0xFB08,
admcrae 2:ebe7029e2825 190 TURQUOISE = 0x471A,
admcrae 2:ebe7029e2825 191 VIOLET = 0xEC1D,
admcrae 2:ebe7029e2825 192 WHEAT = 0xF6F6,
admcrae 2:ebe7029e2825 193 WHITE = 0xFFFF,
admcrae 2:ebe7029e2825 194 WHITESMOKE = 0xF7BE,
admcrae 2:ebe7029e2825 195 YELLOW = 0xFFE0,
admcrae 2:ebe7029e2825 196 YELLOWGREEN = 0x9E66
admcrae 2:ebe7029e2825 197 };
admcrae 2:ebe7029e2825 198
admcrae 4:30010dda3b34 199 /** @enum Pin
admcrae 4:30010dda3b34 200 * Constants for referencing I/O pins.
admcrae 4:30010dda3b34 201 */
admcrae 2:ebe7029e2825 202 enum Pin {
admcrae 2:ebe7029e2825 203 IO1_PIN = 1, // pin 2 J1
admcrae 2:ebe7029e2825 204 IO2_PIN = 2, // pin 1 J1
admcrae 2:ebe7029e2825 205 IO3_PIN = 3, // pin 3 J1
admcrae 2:ebe7029e2825 206 IO4_PIN = 4, // pin 5 J1 (also used for BUS_RD)
admcrae 2:ebe7029e2825 207 IO5_PIN = 5, // pin 9 J2 (also used for BUS_WR)
admcrae 2:ebe7029e2825 208 BUS_RD_PIN = 4, // pin 5 J1 (alias IO4_PIN)
admcrae 2:ebe7029e2825 209 BUS_WR_PIN = 5, // pin 9 J2 (alias IO5_PIN)
admcrae 2:ebe7029e2825 210 BACKLITE = 6, // backlite control pin
admcrae 2:ebe7029e2825 211 AUDIO_ENABLE = 7, // amplifier chip control pin
admcrae 2:ebe7029e2825 212 BUS_0 = 8, // pin 27 of J1
admcrae 2:ebe7029e2825 213 BUS_1 = 9, // pin 25 of J1
admcrae 2:ebe7029e2825 214 BUS_2 = 10, // pin 23 of J1
admcrae 2:ebe7029e2825 215 BUS_3 = 11, // pin 21 of J1
admcrae 2:ebe7029e2825 216 BUS_4 = 12, // pin 19 of J1
admcrae 2:ebe7029e2825 217 BUS_5 = 13, // pin 17 of J1
admcrae 2:ebe7029e2825 218 BUS_6 = 14, // pin 13 of J2
admcrae 2:ebe7029e2825 219 BUS_7 = 15 // pin 11 of J2
admcrae 2:ebe7029e2825 220 };
admcrae 2:ebe7029e2825 221
admcrae 4:30010dda3b34 222
admcrae 4:30010dda3b34 223 /** @enum GFXSetFunc
admcrae 4:30010dda3b34 224 * Constants for referencing various parameters with gfx_Set and peekW/pokeW.
admcrae 4:30010dda3b34 225 */
admcrae 2:ebe7029e2825 226 enum GFXSetFunc {
admcrae 2:ebe7029e2825 227 PEN_SIZE = 16, // not necessary to use (legacy mode)
admcrae 2:ebe7029e2825 228 BACKGROUND_COLOUR = 17,
admcrae 2:ebe7029e2825 229 OBJECT_COLOUR = 18, // line / circle / rectangle generic colour
admcrae 2:ebe7029e2825 230 CLIPPING = 19, // clipping ON / OFF
admcrae 2:ebe7029e2825 231 TRANSPARENT_COLOUR = 20, // (only on displays with specific hware feature)
admcrae 2:ebe7029e2825 232 TRANSPARENCY = 21, // 0 = OFF, 1 = ON (only on displays with specific hware feature)
admcrae 2:ebe7029e2825 233 FRAME_DELAY = 22, // legacy mode, see pokeB(IMAGE_DELAY, n);
admcrae 2:ebe7029e2825 234 SCREEN_MODE = 23, // LANDSCAPE, LANDSCAPE_R, PORTRAIT, PORTRAIT_R
admcrae 2:ebe7029e2825 235 OUTLINE_COLOUR = 24, // if not BLACK (0) , used for outline around circles,rectangles and filled polygons
admcrae 2:ebe7029e2825 236 CONTRAST = 25, // for OLED, change contrast, for LCD on or off only
admcrae 2:ebe7029e2825 237 LINE_PATTERN = 26, // used for patterned lines, 16bit value (0 = no pattern, '1's = pattern)
admcrae 2:ebe7029e2825 238 COLOUR_MODE = 27, // select 8 or 16 bit colour mode
admcrae 2:ebe7029e2825 239 BEVEL_WIDTH = 28, // button bevel width
admcrae 2:ebe7029e2825 240 BEVEL_SHADOW = 29, // button bevel shadow depth
admcrae 2:ebe7029e2825 241 X_ORIGIN = 30, // display position X offset
admcrae 2:ebe7029e2825 242 Y_ORIGIN = 31 // display position X offset
admcrae 2:ebe7029e2825 243 };
admcrae 2:ebe7029e2825 244
admcrae 2:ebe7029e2825 245
admcrae 4:30010dda3b34 246 /** @enum GFXGetMode
admcrae 4:30010dda3b34 247 * Constants to pass to gfx_Get.
admcrae 4:30010dda3b34 248 */
admcrae 2:ebe7029e2825 249 enum GFXGetMode {
admcrae 2:ebe7029e2825 250 X_MAX = 0, // current orientations screen maximum X co-ordinate
admcrae 2:ebe7029e2825 251 Y_MAX = 1, // current orientations screen maximum Y co-ordinate
admcrae 2:ebe7029e2825 252 LEFT_POS = 2, // last objects left co-ord
admcrae 2:ebe7029e2825 253 TOP_POS = 3, // last objects top co-ord
admcrae 2:ebe7029e2825 254 RIGHT_POS = 4, // last objects right co-ord
admcrae 2:ebe7029e2825 255 BOTTOM_POS = 5, // last objects bottom co-ord
admcrae 2:ebe7029e2825 256 X_ORG = 6, // display position X offset
admcrae 2:ebe7029e2825 257 Y_ORG = 7 // display position X offset
admcrae 2:ebe7029e2825 258 };
admcrae 2:ebe7029e2825 259
admcrae 2:ebe7029e2825 260
admcrae 4:30010dda3b34 261 /** @enum FileError
admcrae 4:30010dda3b34 262 * File I/O error codes.
admcrae 4:30010dda3b34 263 */
admcrae 2:ebe7029e2825 264 enum FileError {
admcrae 2:ebe7029e2825 265 FE_OK = 0, // IDE function succeeded
admcrae 2:ebe7029e2825 266 FE_IDE_ERROR = 1, // IDE command execution error
admcrae 2:ebe7029e2825 267 FE_NOT_PRESENT = 2, // CARD not present
admcrae 2:ebe7029e2825 268 FE_PARTITION_TYPE = 3, // WRONG partition type, not FAT16
admcrae 2:ebe7029e2825 269 FE_INVALID_MBR = 4, // MBR sector invalid signature
admcrae 2:ebe7029e2825 270 FE_INVALID_BR = 5, // Boot Record invalid signature
admcrae 2:ebe7029e2825 271 FE_DISK_NOT_MNTD = 6, // Media not mounted
admcrae 2:ebe7029e2825 272 FE_FILE_NOT_FOUND = 7, // File not found in open for read
admcrae 2:ebe7029e2825 273 FE_INVALID_FILE = 8, // File not open
admcrae 2:ebe7029e2825 274 FE_FAT_EOF = 9, // Fat attempt to read beyond EOF
admcrae 2:ebe7029e2825 275 FE_EOF = 10, // Reached the end of file
admcrae 2:ebe7029e2825 276 FE_INVALID_CLUSTER = 11, // Invalid cluster value > maxcls
admcrae 2:ebe7029e2825 277 FE_DIR_FULL = 12, // All root dir entry are taken
admcrae 2:ebe7029e2825 278 FE_DISK_FULL = 13, // All clusters in partition are taken
admcrae 2:ebe7029e2825 279 FE_FILE_OVERWRITE = 14, // A file with same name exist already
admcrae 2:ebe7029e2825 280 FE_CANNOT_INIT = 15, // Cannot init the CARD
admcrae 2:ebe7029e2825 281 FE_CANNOT_READ_MBR = 16, // Cannot read the MBR
admcrae 2:ebe7029e2825 282 FE_MALLOC_FAILED = 17, // Malloc could not allocate the FILE struct
admcrae 2:ebe7029e2825 283 FE_INVALID_MODE = 18, // Mode was not r.w.
admcrae 2:ebe7029e2825 284 FE_FIND_ERROR = 19, // Failure during FILE search
admcrae 2:ebe7029e2825 285 FE_INVALID_FNAME = 20, // bad filename
admcrae 2:ebe7029e2825 286 FE_INVALID_MEDIA = 21, // bad media
admcrae 2:ebe7029e2825 287 FE_SECTOR_READ_FAIL = 22, // sector read failed
admcrae 2:ebe7029e2825 288 FE_SECTOR_WRITE_FAIL = 23 // sector write failed
admcrae 2:ebe7029e2825 289 };
admcrae 2:ebe7029e2825 290
admcrae 4:30010dda3b34 291 /** @enum ScreenMode
admcrae 4:30010dda3b34 292 * Constants to pass to the gfx_ScreenMode command.
admcrae 4:30010dda3b34 293 */
admcrae 2:ebe7029e2825 294 enum ScreenMode {
admcrae 2:ebe7029e2825 295 LANDSCAPE = 0, // SCREEN_MODE (north)
admcrae 2:ebe7029e2825 296 LANDSCAPE_R = 1, // SCREEN_MODE (south)
admcrae 2:ebe7029e2825 297 PORTRAIT = 2, // SCREEN_MODE (west)
admcrae 2:ebe7029e2825 298 PORTRAIT_R = 3 // SCREEN_MODE (east)
admcrae 2:ebe7029e2825 299 };
admcrae 2:ebe7029e2825 300
admcrae 4:30010dda3b34 301 /** @enum ButtonState
admcrae 4:30010dda3b34 302 * Constants to pass to gfx_Button for setting button appearance.
admcrae 4:30010dda3b34 303 */
admcrae 2:ebe7029e2825 304 enum ButtonState {
admcrae 2:ebe7029e2825 305 BUTTON_DEPRESSED = 0,
admcrae 2:ebe7029e2825 306 BUTTON_RAISED = 1
admcrae 2:ebe7029e2825 307 };
admcrae 2:ebe7029e2825 308
admcrae 4:30010dda3b34 309 /** @enum SliderState
admcrae 4:30010dda3b34 310 * Constants to pass to gfx_Slider for setting slider appearance.
admcrae 4:30010dda3b34 311 */
admcrae 2:ebe7029e2825 312 enum SliderState {
admcrae 2:ebe7029e2825 313 SLIDER_SUNKEN = 0,
admcrae 2:ebe7029e2825 314 SLIDER_RAISED = 1,
admcrae 2:ebe7029e2825 315 SLIDER_HIDDEN = 2
admcrae 2:ebe7029e2825 316 };
admcrae 2:ebe7029e2825 317
admcrae 4:30010dda3b34 318 /** @enum PanelState
admcrae 4:30010dda3b34 319 * Constants to pass to gfx_Panel for setting panel appearance.
admcrae 4:30010dda3b34 320 */
admcrae 2:ebe7029e2825 321 enum PanelState {
admcrae 2:ebe7029e2825 322 PANEL_SUNKEN = 0,
admcrae 2:ebe7029e2825 323 PANEL_RAISED = 1,
admcrae 2:ebe7029e2825 324 PANEL_HIDDEN = 2
admcrae 2:ebe7029e2825 325 };
admcrae 2:ebe7029e2825 326
admcrae 2:ebe7029e2825 327
admcrae 2:ebe7029e2825 328 //------------------------------------------------------------------------------
admcrae 2:ebe7029e2825 329 //txt_Set() related constants
admcrae 2:ebe7029e2825 330 //------------------------------------------------------------------------------
admcrae 4:30010dda3b34 331 /** @enum TextSetFunc
admcrae 4:30010dda3b34 332 * Constants for referencing text parameters for use in the txt_Set, peekW, and peekM commands.
admcrae 4:30010dda3b34 333 */
admcrae 2:ebe7029e2825 334 enum TextSetFunc {
admcrae 4:30010dda3b34 335 TEXT_COLOUR = 0, ///< text foreground colr
admcrae 4:30010dda3b34 336 TEXT_BACKGROUND = 1, ///< text background colr
admcrae 4:30010dda3b34 337 TEXT_HIGHLIGHT = 1, ///< text background colr
admcrae 4:30010dda3b34 338 FONT_ID = 2, ///< default 0, else points to data statement font
admcrae 4:30010dda3b34 339 FONT_SIZE = 2, ///< compatibility
admcrae 4:30010dda3b34 340 TEXT_WIDTH = 3, ///< text width multiplier
admcrae 4:30010dda3b34 341 TEXT_HEIGHT = 4, ///< text height multiplier
admcrae 4:30010dda3b34 342 TEXT_XGAP = 5, ///< horizontal text gap (default 1)
admcrae 4:30010dda3b34 343 TEXT_YGAP = 6, ///< vertical text gap (default 1)
admcrae 4:30010dda3b34 344 TEXT_PRINTDELAY = 7, ///< for 'teletype' like effect when printing
admcrae 4:30010dda3b34 345 TEXT_OPACITY = 8, ///< text mode flag, TRANSPARENT or OPAQUE
admcrae 4:30010dda3b34 346 TEXT_BOLD = 9, ///< embolden text (auto reset)
admcrae 4:30010dda3b34 347 TEXT_ITALIC = 10, ///< italicize text (auto reset)
admcrae 4:30010dda3b34 348 TEXT_INVERSE = 11, ///< invert text (auto reset)
admcrae 4:30010dda3b34 349 TEXT_UNDERLINED = 12, ///< underline text (auto reset)
admcrae 4:30010dda3b34 350 TEXT_ATTRIBUTES = 13, ///< controls BOLD/ITALIC/INVERSE/UNDERLINE simultaneously
admcrae 4:30010dda3b34 351 TEXT_WRAP = 14 ///< Sets the pixel position where text wrap will occur at RHS
admcrae 2:ebe7029e2825 352 };
admcrae 2:ebe7029e2825 353
admcrae 4:30010dda3b34 354
admcrae 4:30010dda3b34 355 /** @enum Font
admcrae 4:30010dda3b34 356 * Picaso Font IDs.
admcrae 4:30010dda3b34 357 */
admcrae 2:ebe7029e2825 358 enum Font {
admcrae 4:30010dda3b34 359 FONT1 = 0, ///< System font
admcrae 2:ebe7029e2825 360 FONT2 = 1,
admcrae 4:30010dda3b34 361 FONT3 = 2 ///< Default font
admcrae 2:ebe7029e2825 362 };
admcrae 2:ebe7029e2825 363
admcrae 2:ebe7029e2825 364 enum TextOpacity {
admcrae 4:30010dda3b34 365 TRANSPARENT = 0, ///< TEXT_OPACITY transparent text
admcrae 4:30010dda3b34 366 OPAQUE = 1 ///< TEXT_OPACITY opaque text
admcrae 2:ebe7029e2825 367 };
admcrae 2:ebe7029e2825 368
admcrae 2:ebe7029e2825 369 enum TextAttribute {
admcrae 4:30010dda3b34 370 BOLD = 16, ///< TEXT_ATTRIBUTES bold text
admcrae 4:30010dda3b34 371 ITALIC = 32, ///< TEXT_ATTRIBUTES italic text
admcrae 4:30010dda3b34 372 INVERSE = 64, ///< TEXT_ATTRIBUTES inverse text
admcrae 4:30010dda3b34 373 UNDERLINED = 128 ///< TEXT_ATTRIBUTES underlined
admcrae 2:ebe7029e2825 374 };
admcrae 2:ebe7029e2825 375
admcrae 4:30010dda3b34 376 /** @enum Touch
admcrae 4:30010dda3b34 377 * Constants to pass to the touch_Set and touch_Get commands.
admcrae 4:30010dda3b34 378 */
admcrae 2:ebe7029e2825 379 enum Touch {
admcrae 2:ebe7029e2825 380 TOUCH_ENABLE = 0,
admcrae 2:ebe7029e2825 381 TOUCH_DISABLE = 1,
admcrae 2:ebe7029e2825 382 TOUCH_REGIONDEFAULT = 2,
admcrae 2:ebe7029e2825 383
admcrae 2:ebe7029e2825 384 TOUCH_STATUS = 0,
admcrae 2:ebe7029e2825 385 TOUCH_GETX = 1,
admcrae 2:ebe7029e2825 386 TOUCH_GETY = 2,
admcrae 2:ebe7029e2825 387 NOTOUCH = 0,
admcrae 2:ebe7029e2825 388 TOUCH_PRESSED = 1,
admcrae 2:ebe7029e2825 389 TOUCH_RELEASED = 2,
admcrae 2:ebe7029e2825 390 TOUCH_MOVING = 3
admcrae 2:ebe7029e2825 391 };
admcrae 2:ebe7029e2825 392
admcrae 4:30010dda3b34 393 /** @enum ImageAttribute
admcrae 4:30010dda3b34 394 * Flags for image attributes to be passed to the img_SetAttributes and img_ClearAttributes commands.
admcrae 4:30010dda3b34 395 */
admcrae 2:ebe7029e2825 396 enum ImageAttribute {
admcrae 4:30010dda3b34 397 I_ENABLED = 0x8000, ///< bit 15, set for image enabled
admcrae 4:30010dda3b34 398 I_DARKEN = 0x4000, ///< bit 14, display dimmed
admcrae 4:30010dda3b34 399 I_LIGHTEN = 0x2000, ///< bit 13, display bright
admcrae 4:30010dda3b34 400 I_TOUCHED = 0x1000, ///< bit 12, touch test result
admcrae 4:30010dda3b34 401 I_Y_LOCK = 0x0800, ///< bit 11, stop Y movement
admcrae 4:30010dda3b34 402 I_X_LOCK = 0x0400, ///< bit 10, stop X movement
admcrae 4:30010dda3b34 403 I_TOPMOST = 0x0200, ///< bit 9, draw on top of other images next update (auto reset)
admcrae 4:30010dda3b34 404 I_STAYONTOP = 0x0100, ///< bit 8, draw on top of other images always
admcrae 4:30010dda3b34 405 I_MOVIE = 0x0080, ///< bit 7, image is a movie
admcrae 4:30010dda3b34 406 I_NOGROUP = 0x0040, ///< bit 6, set to exclude image refresh when using img_Show(hndl, ALL);
admcrae 4:30010dda3b34 407 I_TOUCH_DISABLE = 0x0020, ///< bit 5, set to disable touch for this image, default=1 for movie, 0 for image
admcrae 4:30010dda3b34 408 I_COLOUR16 = 0x0010 ///< bit 4, indicates 16 bit colour mode
admcrae 4:30010dda3b34 409 ///< bits 0-3 reserved
admcrae 2:ebe7029e2825 410 };
admcrae 2:ebe7029e2825 411
admcrae 2:ebe7029e2825 412
admcrae 2:ebe7029e2825 413 // image control entry offsets
admcrae 2:ebe7029e2825 414 enum ImageControlOffset {
admcrae 4:30010dda3b34 415 IMAGE_LOWORD = 0, ///< WORD image address LO
admcrae 4:30010dda3b34 416 IMAGE_HIWORD = 1, ///< WORD image address HI
admcrae 4:30010dda3b34 417 IMAGE_XPOS = 2, ///< WORD image location X
admcrae 4:30010dda3b34 418 IMAGE_YPOS = 3, ///< WORD image location Y
admcrae 4:30010dda3b34 419 IMAGE_WIDTH = 4, ///< WORD image width
admcrae 4:30010dda3b34 420 IMAGE_HEIGHT = 5, ///< WORD image height
admcrae 4:30010dda3b34 421 IMAGE_FLAGS = 6, ///< WORD image flags
admcrae 4:30010dda3b34 422 IMAGE_DELAY = 7, ///< WORD inter frame delay
admcrae 4:30010dda3b34 423 IMAGE_FRAMES = 8, ///< WORD number of frames
admcrae 4:30010dda3b34 424 IMAGE_INDEX = 9, ///< WORD current frame
admcrae 4:30010dda3b34 425 IMAGE_CLUSTER = 10, ///< WORD image start cluster pos (for FAT16 only)
admcrae 4:30010dda3b34 426 IMAGE_SECTOR = 11, ///< WORD image start sector in cluster pos (for FAT16 only)
admcrae 4:30010dda3b34 427 IMAGE_TAG = 12, ///< WORD user variable #1
admcrae 4:30010dda3b34 428 IMAGE_TAG2 = 13 ///< WORD user variable #2
admcrae 2:ebe7029e2825 429 };
admcrae 2:ebe7029e2825 430
admcrae 2:ebe7029e2825 431
admcrae 4:30010dda3b34 432 /** @enum MemOffsets
admcrae 4:30010dda3b34 433 * Various memory offsets.
admcrae 4:30010dda3b34 434 */
admcrae 2:ebe7029e2825 435 enum MemOffsets {
admcrae 2:ebe7029e2825 436 // DISK struct offsets
admcrae 4:30010dda3b34 437 DISK_FIRST_SECT_LO = 0, ///< DWORD address of the first sector of the FAT partition (LO word)
admcrae 4:30010dda3b34 438 DISK_FIRST_SECT_HI = 1, ///< address of the first sector of the FAT partition (HI word)
admcrae 4:30010dda3b34 439 DISK_FAT_LO = 2, ///< DWORD address of FAT (LO word)
admcrae 4:30010dda3b34 440 DISK_FAT_HI = 3, ///< address of FAT (HI word)
admcrae 4:30010dda3b34 441 DISK_ROOT_LO = 4, ///< DWORD address of root directory (LO word)
admcrae 4:30010dda3b34 442 DISK_ROOT_HI = 5, ///< address of root directory (HI word)
admcrae 4:30010dda3b34 443 DISK_DATA_LO = 6, ///< DWORD address of data area (LO word)
admcrae 4:30010dda3b34 444 DISK_DATA_HI = 7, ///< address of data area (HI word)
admcrae 4:30010dda3b34 445 DISK_MAXCLUS_LO = 8, ///< DWORD max number of clusters in partition (LO word)
admcrae 4:30010dda3b34 446 DISK_MAXCLUS_HI = 9, ///< max number of clusters in partition (HI word)
admcrae 4:30010dda3b34 447 DISK_MAXROOT = 10, ///< WORD max entries in root directory
admcrae 4:30010dda3b34 448 DISK_FATSIZE = 11, ///< WORD number of sectors in FAT
admcrae 4:30010dda3b34 449 DISK_FATCOPIES = 12, ///< WORD number of fat copies
admcrae 4:30010dda3b34 450 DISK_SECT_PER_CLUS = 13, ///< WORD number of sectors per cluster
admcrae 4:30010dda3b34 451 DISK_TYPE = 14, ///< WORD type of fat
admcrae 4:30010dda3b34 452 DISK_BUF = 15, ///< WORD pointer to 512 byte info buffer
admcrae 2:ebe7029e2825 453
admcrae 2:ebe7029e2825 454 // FILE struct offsets
admcrae 4:30010dda3b34 455 FILE_FIRST_CLUSTER = 0, ///< WORD first cluster
admcrae 4:30010dda3b34 456 FILE_CURR_CLUSTER = 1, ///< WORD current cluster in file
admcrae 4:30010dda3b34 457 FILE_CURR_SECTOR = 2, ///< WORD sector in current cluster
admcrae 4:30010dda3b34 458 FILE_CURR_SECTOR_POS = 3, ///< WORD position in current sector
admcrae 4:30010dda3b34 459 FILE_CURR_SECTOR_TOP = 4, ///< WORD number bytes in current sector buffer
admcrae 4:30010dda3b34 460 FILE_SEEK_POS_LO = 5, ///< DWORD position in the file (LO word)
admcrae 4:30010dda3b34 461 FILE_SEEK_POS_HI = 6, ///< position in the file (HI word)
admcrae 4:30010dda3b34 462 FILE_SIZE_LO = 7, ///< DWORD file size (LO word)
admcrae 4:30010dda3b34 463 FILE_SIZE_HI = 8, ///< file size (HI word)
admcrae 4:30010dda3b34 464 FILE_TIME = 9, ///< WORD last update time
admcrae 4:30010dda3b34 465 FILE_DATE = 10, ///< WORD last update date
admcrae 4:30010dda3b34 466 FILE_NAME = 11, ///< WORD 12 byte buffer for filename
admcrae 4:30010dda3b34 467 FILE_MODE = 17, ///< WORD file mode 'r', 'w', 'a'
admcrae 4:30010dda3b34 468 FILE_ATTRIBUTES = 18, ///< WORD files attributes
admcrae 4:30010dda3b34 469 FILE_PAGEFLAG = 19, ///< WORD cache check flag
admcrae 4:30010dda3b34 470 FILE_ENTRY = 20, ///< WORD entry position in cur directory
admcrae 4:30010dda3b34 471 FILE_DISK = 21, ///< WORD* pointer to DISK mount media structure
admcrae 4:30010dda3b34 472 FILE_BUFFER = 22 ///< WORD* sector buffer
admcrae 2:ebe7029e2825 473 };
admcrae 2:ebe7029e2825 474
admcrae 2:ebe7029e2825 475
admcrae 4:30010dda3b34 476 /** @enum MemAddresses
admcrae 4:30010dda3b34 477 * Various memory addresses for use with the peekM and pokeM commands.
admcrae 4:30010dda3b34 478 * Note that the txt_Set variables (0-15) and gfx_set variables (16-31)
admcrae 4:30010dda3b34 479 * can also be accessed with peekW and pokeW
admcrae 4:30010dda3b34 480 */
admcrae 4:30010dda3b34 481 enum MemAddresses {
admcrae 4:30010dda3b34 482 RANDOM_LO = 32, ///< random number generator LO word
admcrae 4:30010dda3b34 483 RANDOM_HI = 33, ///< random number generator LO word
admcrae 4:30010dda3b34 484 SYSTEM_TIMER_LO = 34, ///< 1msec 32 bit free running timer LO word
admcrae 4:30010dda3b34 485 SYSTEM_TIMER_HI = 35, ///< 1msec 32 bit free running timer HI word
admcrae 4:30010dda3b34 486 TMR0 = 36, ///< user timer0
admcrae 4:30010dda3b34 487 TMR1 = 37, ///< user timer1
admcrae 4:30010dda3b34 488 TMR2 = 38, ///< user timer2
admcrae 4:30010dda3b34 489 TMR3 = 39, ///< user timer3 (10msec resolution)
admcrae 4:30010dda3b34 490 TMR4 = 40, ///< user timer0
admcrae 4:30010dda3b34 491 TMR5 = 41, ///< user timer1
admcrae 4:30010dda3b34 492 TMR6 = 42, ///< user timer2
admcrae 4:30010dda3b34 493 TMR7 = 43, ///< user timer3 (10msec resolution)
admcrae 4:30010dda3b34 494 SYS_X_MAX = 44, ///< display hardware X res-1
admcrae 4:30010dda3b34 495 SYS_Y_MAX = 45, ///< display hardware Y res-1
admcrae 4:30010dda3b34 496 GFX_XMAX = 46, ///< current display width-1 determined by portrait / landscape swapping
admcrae 4:30010dda3b34 497 GFX_YMAX = 47, ///< current display width-1 determined by portrait / landscape swapping
admcrae 4:30010dda3b34 498 GFX_LEFT = 48, ///< virtual left point for most recent object
admcrae 4:30010dda3b34 499 GFX_TOP = 49, ///< virtual top point for most recent object
admcrae 4:30010dda3b34 500 GFX_RIGHT = 50, ///< virtual right point for most recent object
admcrae 4:30010dda3b34 501 GFX_BOTTOM = 51, ///< virtual bottom point for most recent object
admcrae 4:30010dda3b34 502 GFX_X1 = 52, ///< clipped left point for current object
admcrae 4:30010dda3b34 503 GFX_Y1 = 53, ///< clipped top point for current object
admcrae 4:30010dda3b34 504 GFX_X2 = 54, ///< clipped right point for current object
admcrae 4:30010dda3b34 505 GFX_Y2 = 55, ///< clipped bottom point for current object
admcrae 4:30010dda3b34 506 GFX_X_ORG = 56, ///< current X origin
admcrae 4:30010dda3b34 507 GFX_Y_ORG = 57, ///< current Y origin
admcrae 4:30010dda3b34 508 GFX_HILITE_LINE = 58, ///< current multi line button hilite line
admcrae 4:30010dda3b34 509 GFX_LINE_COUNT = 59, ///< count of lines in multiline button
admcrae 4:30010dda3b34 510 GFX_LAST_SELECTION = 60, ///< last selected line
admcrae 4:30010dda3b34 511 GFX_HILIGHT_BACKGROUND = 61, ///< multi button hilite background colour
admcrae 4:30010dda3b34 512 GFX_HILIGHT_FOREGROUND = 62, ///< multi button hilite background colour
admcrae 4:30010dda3b34 513 GFX_BUTTON_FOREGROUND = 63, ///< store default text colour for hilite line tracker
admcrae 4:30010dda3b34 514 GFX_BUTTON_BACKGROUND = 64, ///< store default button colour for hilite line tracker
admcrae 4:30010dda3b34 515 GFX_BUTTON_MODE = 65, ///< store current buttons mode
admcrae 4:30010dda3b34 516 GFX_TOOLBAR_HEIGHT = 66, ///< height above
admcrae 4:30010dda3b34 517 GFX_STATUSBAR_HEIGHT = 67, ///< height below
admcrae 4:30010dda3b34 518 GFX_LEFT_GUTTER_WIDTH = 68, ///< width to left
admcrae 4:30010dda3b34 519 GFX_RIGHT_GUTTER_WIDTH = 69, ///< width to right
admcrae 4:30010dda3b34 520 GFX_PIXEL_SHIFT = 70, ///< pixel shift for button depress illusion (default 1)
admcrae 4:30010dda3b34 521 GFX_RECT_X1 = 71, ///< gp rect, used by multiline button to hilite required line
admcrae 2:ebe7029e2825 522 GFX_RECT_Y1 = 72,
admcrae 2:ebe7029e2825 523 GFX_RECT_X2 = 73,
admcrae 2:ebe7029e2825 524 GFX_RECT_Y2 = 74,
admcrae 4:30010dda3b34 525 GFX_THUMB_PERCENT = 75, ///< size of slider thumb as percentage
admcrae 4:30010dda3b34 526 GFX_THUMB_BORDER_DARK = 76, ///< darker shadow of thumb
admcrae 4:30010dda3b34 527 GFX_THUMB_BORDER_LIGHT = 77, ///< lighter shadow of thumb
admcrae 4:30010dda3b34 528 TOUCH_XMINCAL = 78, ///< touch calibration value
admcrae 4:30010dda3b34 529 TOUCH_YMINCAL = 79, ///< touch calibration value
admcrae 4:30010dda3b34 530 TOUCH_XMAXCAL = 80, ///< touch calibration value
admcrae 4:30010dda3b34 531 TOUCH_YMAXCAL = 81, ///< touch calibration value
admcrae 4:30010dda3b34 532 IMG_WIDTH = 82, ///< width of currently loaded image
admcrae 4:30010dda3b34 533 IMG_HEIGHT = 83, ///< height of currently loaded image
admcrae 4:30010dda3b34 534 IMG_FRAME_DELAY = 84, ///< 0 if image, else inter frame delay for movie
admcrae 4:30010dda3b34 535 IMG_FLAGS = 85, ///< bit 4 determines colour mode, other bits reserved
admcrae 4:30010dda3b34 536 IMG_FRAME_COUNT = 86, ///< count of frames in a movie
admcrae 4:30010dda3b34 537 IMG_PIXEL_COUNT_LO = 87, ///< count of pixels in the current frame
admcrae 4:30010dda3b34 538 IMG_PIXEL_COUNT_HI = 88, ///< count of pixels in the current frame
admcrae 4:30010dda3b34 539 IMG_CURRENT_FRAME = 89, ///< last frame shown
admcrae 4:30010dda3b34 540 MEDIA_ADDRESS_LO = 90, ///< uSD byte address LO
admcrae 4:30010dda3b34 541 MEDIA_ADDRESS_HI = 91, ///< uSD byte address HI
admcrae 4:30010dda3b34 542 MEDIA_SECTOR_LO = 92, ///< uSD sector address LO
admcrae 4:30010dda3b34 543 MEDIA_SECTOR_HI = 93, ///< uSD sector address HI
admcrae 4:30010dda3b34 544 MEDIA_SECTOR_COUNT = 94, ///< uSD number of bytes remaining in sector
admcrae 4:30010dda3b34 545 TEXT_XPOS = 95, ///< text current x pixel position
admcrae 4:30010dda3b34 546 TEXT_YPOS = 96, ///< text current y pixel position
admcrae 4:30010dda3b34 547 TEXT_MARGIN = 97, ///< text left pixel pos for carriage return
admcrae 4:30010dda3b34 548 TXT_FONT_ID = 98, ///< font type, 0 = system font, else pointer to user font
admcrae 4:30010dda3b34 549 TXT_FONT_MAX = 99, ///< max number of chars in font
admcrae 4:30010dda3b34 550 TXT_FONT_OFFSET = 100, ///< starting offset (normally 0x20)
admcrae 4:30010dda3b34 551 TXT_FONT_WIDTH = 101, ///< current font width
admcrae 4:30010dda3b34 552 TXT_FONT_HEIGHT = 102, ///< current font height
admcrae 4:30010dda3b34 553 GFX_TOUCH_REGION_X1 = 103, ///< touch capture region
admcrae 2:ebe7029e2825 554 GFX_TOUCH_REGION_Y1 = 104,
admcrae 2:ebe7029e2825 555 GFX_TOUCH_REGION_X2 = 105,
admcrae 2:ebe7029e2825 556 GFX_TOUCH_REGION_Y2 = 106,
admcrae 4:30010dda3b34 557 GFX_CLIP_LEFT_VAL = 107, ///< left clipping point (set with gfx_ClipWindow(...)
admcrae 4:30010dda3b34 558 GFX_CLIP_TOP_VAL = 108, ///< top clipping point (set with gfx_ClipWindow(...)
admcrae 4:30010dda3b34 559 GFX_CLIP_RIGHT_VAL = 109, ///< right clipping point (set with gfx_ClipWindow(...)
admcrae 4:30010dda3b34 560 GFX_CLIP_BOTTOM_VAL = 110, ///< bottom clipping point (set with gfx_ClipWindow(...)
admcrae 4:30010dda3b34 561 GFX_CLIP_LEFT = 111, ///< current clip value (reads full size if clipping turned off)
admcrae 4:30010dda3b34 562 GFX_CLIP_TOP = 112, ///< current clip value (reads full size if clipping turned off)
admcrae 4:30010dda3b34 563 GFX_CLIP_RIGHT = 113, ///< current clip value (reads full size if clipping turned off)
admcrae 4:30010dda3b34 564 GFX_CLIP_BOTTOM = 114, ///< current clip value (reads full size if clipping turned off)
admcrae 4:30010dda3b34 565 GRAM_PIXEL_COUNT_LO = 115, ///< LO word of count of pixels in the set GRAM area
admcrae 4:30010dda3b34 566 GRAM_PIXEL_COUNT_HI = 116, ///< HI word of count of pixels in the set GRAM area
admcrae 4:30010dda3b34 567 TOUCH_RAW_X = 117, ///< 12 bit raw A2D X value from touch screen
admcrae 4:30010dda3b34 568 TOUCH_RAW_Y = 118, ///< 12 bit raw A2D Y value from touch screen
admcrae 4:30010dda3b34 569 GFX_LAST_CHAR_WIDTH = 119, ///< calculated char width from last call to charWidth function
admcrae 4:30010dda3b34 570 GFX_LAST_CHAR_HEIGHT = 120, ///< calculated height from last call to charHeight function
admcrae 4:30010dda3b34 571 GFX_LAST_STR_WIDTH = 121, ///< calculated width from last call to strWidth function
admcrae 4:30010dda3b34 572 GFX_LAST_STR_HEIGHT = 122 ///< calculated height from last call to strHeight function
admcrae 2:ebe7029e2825 573 };
admcrae 2:ebe7029e2825 574 }
admcrae 2:ebe7029e2825 575
admcrae 2:ebe7029e2825 576 #endif