808
Dependents: Chromatograph_Mobile
inc/FT_Gpu_Hal.h@0:2d0ef4830603, 2016-09-07 (annotated)
- Committer:
- cpm219
- Date:
- Wed Sep 07 21:53:53 2016 +0000
- Revision:
- 0:2d0ef4830603
- Child:
- 7:3b4d59de6398
first version
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
cpm219 | 0:2d0ef4830603 | 1 | /*! |
cpm219 | 0:2d0ef4830603 | 2 | * \file FT_GPU_HAL.h |
cpm219 | 0:2d0ef4830603 | 3 | * |
cpm219 | 0:2d0ef4830603 | 4 | |
cpm219 | 0:2d0ef4830603 | 5 | Curt added Load_raw 7/22/16 |
cpm219 | 0:2d0ef4830603 | 6 | |
cpm219 | 0:2d0ef4830603 | 7 | |
cpm219 | 0:2d0ef4830603 | 8 | |
cpm219 | 0:2d0ef4830603 | 9 | * \author FTDI |
cpm219 | 0:2d0ef4830603 | 10 | * \date 2013.04.24 |
cpm219 | 0:2d0ef4830603 | 11 | * |
cpm219 | 0:2d0ef4830603 | 12 | * Copyright 2013 Future Technology Devices International Limited |
cpm219 | 0:2d0ef4830603 | 13 | * |
cpm219 | 0:2d0ef4830603 | 14 | * Project: FT800 or EVE compatible silicon |
cpm219 | 0:2d0ef4830603 | 15 | * File Description: |
cpm219 | 0:2d0ef4830603 | 16 | * This file defines the generic APIs of host access layer for the FT800 or EVE compatible silicon. |
cpm219 | 0:2d0ef4830603 | 17 | * Application shall access FT800 or EVE resources over these APIs. In addition, there are |
cpm219 | 0:2d0ef4830603 | 18 | * some helper functions defined for FT800 coprocessor engine as well as host commands. |
cpm219 | 0:2d0ef4830603 | 19 | * Rivision History: |
cpm219 | 0:2d0ef4830603 | 20 | * ported to mbed by Peter Drescher, DC2PD 2014 |
cpm219 | 0:2d0ef4830603 | 21 | * |
cpm219 | 0:2d0ef4830603 | 22 | */ |
cpm219 | 0:2d0ef4830603 | 23 | |
cpm219 | 0:2d0ef4830603 | 24 | #ifndef FT_GPU_HAL_H |
cpm219 | 0:2d0ef4830603 | 25 | #define FT_GPU_HAL_H |
cpm219 | 0:2d0ef4830603 | 26 | |
cpm219 | 0:2d0ef4830603 | 27 | #include "mbed.h" |
cpm219 | 0:2d0ef4830603 | 28 | #include "FT_DataTypes.h" |
cpm219 | 0:2d0ef4830603 | 29 | |
cpm219 | 0:2d0ef4830603 | 30 | typedef enum { |
cpm219 | 0:2d0ef4830603 | 31 | FT_GPU_I2C_MODE = 0, |
cpm219 | 0:2d0ef4830603 | 32 | FT_GPU_SPI_MODE, |
cpm219 | 0:2d0ef4830603 | 33 | |
cpm219 | 0:2d0ef4830603 | 34 | FT_GPU_MODE_COUNT, |
cpm219 | 0:2d0ef4830603 | 35 | FT_GPU_MODE_UNKNOWN = FT_GPU_MODE_COUNT |
cpm219 | 0:2d0ef4830603 | 36 | } FT_GPU_HAL_MODE_E; |
cpm219 | 0:2d0ef4830603 | 37 | |
cpm219 | 0:2d0ef4830603 | 38 | typedef enum { |
cpm219 | 0:2d0ef4830603 | 39 | OPENED, |
cpm219 | 0:2d0ef4830603 | 40 | READING, |
cpm219 | 0:2d0ef4830603 | 41 | WRITING, |
cpm219 | 0:2d0ef4830603 | 42 | CLOSED, |
cpm219 | 0:2d0ef4830603 | 43 | STATUS_COUNT, |
cpm219 | 0:2d0ef4830603 | 44 | STATUS_ERROR = STATUS_COUNT |
cpm219 | 0:2d0ef4830603 | 45 | } FT_GPU_HAL_STATUS_E; |
cpm219 | 0:2d0ef4830603 | 46 | |
cpm219 | 0:2d0ef4830603 | 47 | typedef struct { |
cpm219 | 0:2d0ef4830603 | 48 | ft_uint8_t reserved; |
cpm219 | 0:2d0ef4830603 | 49 | } Ft_Gpu_App_Context_t; |
cpm219 | 0:2d0ef4830603 | 50 | |
cpm219 | 0:2d0ef4830603 | 51 | typedef struct { |
cpm219 | 0:2d0ef4830603 | 52 | /* Total number channels for libmpsse */ |
cpm219 | 0:2d0ef4830603 | 53 | ft_uint32_t TotalChannelNum; |
cpm219 | 0:2d0ef4830603 | 54 | } Ft_Gpu_HalInit_t; |
cpm219 | 0:2d0ef4830603 | 55 | |
cpm219 | 0:2d0ef4830603 | 56 | typedef enum { |
cpm219 | 0:2d0ef4830603 | 57 | FT_GPU_READ = 0, |
cpm219 | 0:2d0ef4830603 | 58 | FT_GPU_WRITE, |
cpm219 | 0:2d0ef4830603 | 59 | } FT_GPU_TRANSFERDIR_T; |
cpm219 | 0:2d0ef4830603 | 60 | |
cpm219 | 0:2d0ef4830603 | 61 | |
cpm219 | 0:2d0ef4830603 | 62 | typedef struct { |
cpm219 | 0:2d0ef4830603 | 63 | ft_uint32_t length; //IN and OUT |
cpm219 | 0:2d0ef4830603 | 64 | ft_uint32_t address; |
cpm219 | 0:2d0ef4830603 | 65 | ft_uint8_t *buffer; |
cpm219 | 0:2d0ef4830603 | 66 | } Ft_Gpu_App_Transfer_t; |
cpm219 | 0:2d0ef4830603 | 67 | |
cpm219 | 0:2d0ef4830603 | 68 | class FT800 |
cpm219 | 0:2d0ef4830603 | 69 | { |
cpm219 | 0:2d0ef4830603 | 70 | public: |
cpm219 | 0:2d0ef4830603 | 71 | FT800(PinName mosi, |
cpm219 | 0:2d0ef4830603 | 72 | PinName miso, |
cpm219 | 0:2d0ef4830603 | 73 | PinName sck, |
cpm219 | 0:2d0ef4830603 | 74 | PinName ss, |
cpm219 | 0:2d0ef4830603 | 75 | PinName intr, |
cpm219 | 0:2d0ef4830603 | 76 | PinName pd); |
cpm219 | 0:2d0ef4830603 | 77 | |
cpm219 | 0:2d0ef4830603 | 78 | private: |
cpm219 | 0:2d0ef4830603 | 79 | SPI _spi; |
cpm219 | 0:2d0ef4830603 | 80 | DigitalOut _ss; |
cpm219 | 0:2d0ef4830603 | 81 | DigitalOut _pd; |
cpm219 | 0:2d0ef4830603 | 82 | InterruptIn _f800_isr; |
cpm219 | 0:2d0ef4830603 | 83 | public: |
cpm219 | 0:2d0ef4830603 | 84 | /* Global used for buffer optimization */ |
cpm219 | 0:2d0ef4830603 | 85 | //Ft_Gpu_Hal_Context_t host,*phost; |
cpm219 | 0:2d0ef4830603 | 86 | Ft_Gpu_App_Context_t app_header; |
cpm219 | 0:2d0ef4830603 | 87 | ft_uint16_t cmd_fifo_wp; //coprocessor fifo write pointer |
cpm219 | 0:2d0ef4830603 | 88 | ft_uint16_t dl_buff_wp; //display command memory write pointer |
cpm219 | 0:2d0ef4830603 | 89 | FT_GPU_HAL_STATUS_E status; //OUT |
cpm219 | 0:2d0ef4830603 | 90 | ft_void_t* hal_handle; //IN/OUT |
cpm219 | 0:2d0ef4830603 | 91 | ft_uint32_t CmdBuffer_Index; |
cpm219 | 0:2d0ef4830603 | 92 | ft_uint32_t DlBuffer_Index; |
cpm219 | 0:2d0ef4830603 | 93 | ft_int16_t DispWidth; |
cpm219 | 0:2d0ef4830603 | 94 | ft_int16_t DispHeight; |
cpm219 | 0:2d0ef4830603 | 95 | ft_int16_t DispHCycle; |
cpm219 | 0:2d0ef4830603 | 96 | ft_int16_t DispHOffset; |
cpm219 | 0:2d0ef4830603 | 97 | ft_int16_t DispHSync0; |
cpm219 | 0:2d0ef4830603 | 98 | ft_int16_t DispHSync1; |
cpm219 | 0:2d0ef4830603 | 99 | ft_int16_t DispVCycle; |
cpm219 | 0:2d0ef4830603 | 100 | ft_int16_t DispVOffset; |
cpm219 | 0:2d0ef4830603 | 101 | ft_int16_t DispVSync0; |
cpm219 | 0:2d0ef4830603 | 102 | ft_int16_t DispVSync1; |
cpm219 | 0:2d0ef4830603 | 103 | ft_uint8_t DispPCLK; |
cpm219 | 0:2d0ef4830603 | 104 | ft_char8_t DispSwizzle; |
cpm219 | 0:2d0ef4830603 | 105 | ft_char8_t DispPCLKPol; |
cpm219 | 0:2d0ef4830603 | 106 | |
cpm219 | 0:2d0ef4830603 | 107 | |
cpm219 | 0:2d0ef4830603 | 108 | ft_void_t BootupConfig(void); |
cpm219 | 0:2d0ef4830603 | 109 | ft_bool_t Bootup(void); |
cpm219 | 0:2d0ef4830603 | 110 | |
cpm219 | 0:2d0ef4830603 | 111 | |
cpm219 | 0:2d0ef4830603 | 112 | /*The basic APIs Level 1*/ |
cpm219 | 0:2d0ef4830603 | 113 | ft_bool_t Init( ); |
cpm219 | 0:2d0ef4830603 | 114 | ft_bool_t Open( ); |
cpm219 | 0:2d0ef4830603 | 115 | |
cpm219 | 0:2d0ef4830603 | 116 | /*The APIs for reading/writing transfer continuously only with small buffer system*/ |
cpm219 | 0:2d0ef4830603 | 117 | ft_void_t StartTransfer(FT_GPU_TRANSFERDIR_T rw,ft_uint32_t addr); |
cpm219 | 0:2d0ef4830603 | 118 | ft_uint8_t Transfer8(ft_uint8_t value); |
cpm219 | 0:2d0ef4830603 | 119 | ft_uint16_t Transfer16(ft_uint16_t value); |
cpm219 | 0:2d0ef4830603 | 120 | ft_uint32_t Transfer32(ft_uint32_t value); |
cpm219 | 0:2d0ef4830603 | 121 | ft_void_t EndTransfer( ); |
cpm219 | 0:2d0ef4830603 | 122 | |
cpm219 | 0:2d0ef4830603 | 123 | /*Read & Write APIs for both burst and single transfer,depending on buffer size*/ |
cpm219 | 0:2d0ef4830603 | 124 | ft_void_t Read(Ft_Gpu_App_Transfer_t *transfer); |
cpm219 | 0:2d0ef4830603 | 125 | ft_void_t Write(Ft_Gpu_App_Transfer_t *transfer); |
cpm219 | 0:2d0ef4830603 | 126 | |
cpm219 | 0:2d0ef4830603 | 127 | ft_void_t Close(); |
cpm219 | 0:2d0ef4830603 | 128 | ft_void_t DeInit(); |
cpm219 | 0:2d0ef4830603 | 129 | |
cpm219 | 0:2d0ef4830603 | 130 | /*Helper function APIs Read*/ |
cpm219 | 0:2d0ef4830603 | 131 | ft_uint8_t Rd8(ft_uint32_t addr); |
cpm219 | 0:2d0ef4830603 | 132 | ft_uint16_t Rd16(ft_uint32_t addr); |
cpm219 | 0:2d0ef4830603 | 133 | ft_uint32_t Rd32(ft_uint32_t addr); |
cpm219 | 0:2d0ef4830603 | 134 | |
cpm219 | 0:2d0ef4830603 | 135 | /*Helper function APIs Write*/ |
cpm219 | 0:2d0ef4830603 | 136 | ft_void_t Wr8(ft_uint32_t addr, ft_uint8_t v); |
cpm219 | 0:2d0ef4830603 | 137 | ft_void_t Wr16(ft_uint32_t addr, ft_uint16_t v); |
cpm219 | 0:2d0ef4830603 | 138 | ft_void_t Wr32(ft_uint32_t addr, ft_uint32_t v); |
cpm219 | 0:2d0ef4830603 | 139 | |
cpm219 | 0:2d0ef4830603 | 140 | /*******************************************************************************/ |
cpm219 | 0:2d0ef4830603 | 141 | /*******************************************************************************/ |
cpm219 | 0:2d0ef4830603 | 142 | /*APIs for coprocessor Fifo read/write and space management*/ |
cpm219 | 0:2d0ef4830603 | 143 | ft_void_t Updatecmdfifo(ft_uint16_t count); |
cpm219 | 0:2d0ef4830603 | 144 | ft_void_t WrCmd32(ft_uint32_t cmd); |
cpm219 | 0:2d0ef4830603 | 145 | ft_void_t WrCmdBuf(ft_uint8_t *buffer,ft_uint16_t count); |
cpm219 | 0:2d0ef4830603 | 146 | ft_void_t WaitCmdfifo_empty(); |
cpm219 | 0:2d0ef4830603 | 147 | ft_void_t ResetCmdFifo(); |
cpm219 | 0:2d0ef4830603 | 148 | ft_void_t CheckCmdBuffer(ft_uint16_t count); |
cpm219 | 0:2d0ef4830603 | 149 | ft_void_t ResetDLBuffer(); |
cpm219 | 0:2d0ef4830603 | 150 | |
cpm219 | 0:2d0ef4830603 | 151 | ft_void_t StartCmdTransfer(FT_GPU_TRANSFERDIR_T rw, ft_uint16_t count); |
cpm219 | 0:2d0ef4830603 | 152 | ft_void_t Powercycle(ft_bool_t up); |
cpm219 | 0:2d0ef4830603 | 153 | |
cpm219 | 0:2d0ef4830603 | 154 | |
cpm219 | 0:2d0ef4830603 | 155 | /*******************************************************************************/ |
cpm219 | 0:2d0ef4830603 | 156 | /*******************************************************************************/ |
cpm219 | 0:2d0ef4830603 | 157 | /*APIs for Host Commands*/ |
cpm219 | 0:2d0ef4830603 | 158 | typedef enum { |
cpm219 | 0:2d0ef4830603 | 159 | FT_GPU_INTERNAL_OSC = 0x48, //default |
cpm219 | 0:2d0ef4830603 | 160 | FT_GPU_EXTERNAL_OSC = 0x44, |
cpm219 | 0:2d0ef4830603 | 161 | } FT_GPU_PLL_SOURCE_T; |
cpm219 | 0:2d0ef4830603 | 162 | typedef enum { |
cpm219 | 0:2d0ef4830603 | 163 | FT_GPU_PLL_48M = 0x62, //default |
cpm219 | 0:2d0ef4830603 | 164 | FT_GPU_PLL_36M = 0x61, |
cpm219 | 0:2d0ef4830603 | 165 | FT_GPU_PLL_24M = 0x64, |
cpm219 | 0:2d0ef4830603 | 166 | } FT_GPU_PLL_FREQ_T; |
cpm219 | 0:2d0ef4830603 | 167 | |
cpm219 | 0:2d0ef4830603 | 168 | typedef enum { |
cpm219 | 0:2d0ef4830603 | 169 | FT_GPU_ACTIVE_M = 0x00, |
cpm219 | 0:2d0ef4830603 | 170 | FT_GPU_STANDBY_M = 0x41,//default |
cpm219 | 0:2d0ef4830603 | 171 | FT_GPU_SLEEP_M = 0x42, |
cpm219 | 0:2d0ef4830603 | 172 | FT_GPU_POWERDOWN_M = 0x50, |
cpm219 | 0:2d0ef4830603 | 173 | } FT_GPU_POWER_MODE_T; |
cpm219 | 0:2d0ef4830603 | 174 | |
cpm219 | 0:2d0ef4830603 | 175 | #define FT_GPU_CORE_RESET (0x68) |
cpm219 | 0:2d0ef4830603 | 176 | |
cpm219 | 0:2d0ef4830603 | 177 | ft_int32_t hal_strlen(const ft_char8_t *s); |
cpm219 | 0:2d0ef4830603 | 178 | ft_void_t Sleep(ft_uint16_t ms); |
cpm219 | 0:2d0ef4830603 | 179 | ft_void_t ClockSelect(FT_GPU_PLL_SOURCE_T pllsource); |
cpm219 | 0:2d0ef4830603 | 180 | ft_void_t PLL_FreqSelect(FT_GPU_PLL_FREQ_T freq); |
cpm219 | 0:2d0ef4830603 | 181 | ft_void_t PowerModeSwitch(FT_GPU_POWER_MODE_T pwrmode); |
cpm219 | 0:2d0ef4830603 | 182 | ft_void_t CoreReset(); |
cpm219 | 0:2d0ef4830603 | 183 | //ft_void_t Ft_Gpu_Hal_StartTransfer( ,FT_GPU_TRANSFERDIR_T rw,ft_uint32_t addr); |
cpm219 | 0:2d0ef4830603 | 184 | ft_void_t WrMem(ft_uint32_t addr, const ft_uint8_t *buffer, ft_uint32_t length); |
cpm219 | 0:2d0ef4830603 | 185 | ft_void_t WrMemFromFlash(ft_uint32_t addr,const ft_prog_uchar8_t *buffer, ft_uint32_t length); |
cpm219 | 0:2d0ef4830603 | 186 | ft_void_t WrCmdBufFromFlash(FT_PROGMEM ft_prog_uchar8_t *buffer,ft_uint16_t count); |
cpm219 | 0:2d0ef4830603 | 187 | ft_void_t RdMem(ft_uint32_t addr, ft_uint8_t *buffer, ft_uint32_t length); |
cpm219 | 0:2d0ef4830603 | 188 | ft_void_t WaitLogo_Finish(); |
cpm219 | 0:2d0ef4830603 | 189 | ft_uint8_t TransferString(const ft_char8_t *string); |
cpm219 | 0:2d0ef4830603 | 190 | ft_void_t HostCommand(ft_uint8_t cmd); |
cpm219 | 0:2d0ef4830603 | 191 | ft_int32_t Dec2Ascii(ft_char8_t *pSrc,ft_int32_t value); |
cpm219 | 0:2d0ef4830603 | 192 | |
cpm219 | 0:2d0ef4830603 | 193 | ft_void_t Text(ft_int16_t x, ft_int16_t y, ft_int16_t font, ft_uint16_t options, const ft_char8_t* s); |
cpm219 | 0:2d0ef4830603 | 194 | ft_void_t Number(ft_int16_t x, ft_int16_t y, ft_int16_t font, ft_uint16_t options, ft_int32_t n); |
cpm219 | 0:2d0ef4830603 | 195 | ft_void_t LoadIdentity(); |
cpm219 | 0:2d0ef4830603 | 196 | ft_void_t Toggle(ft_int16_t x, ft_int16_t y, ft_int16_t w, ft_int16_t font, ft_uint16_t options, ft_uint16_t state, const ft_char8_t* s); |
cpm219 | 0:2d0ef4830603 | 197 | ft_void_t Gauge(ft_int16_t x, ft_int16_t y, ft_int16_t r, ft_uint16_t options, ft_uint16_t major, ft_uint16_t minor, ft_uint16_t val, ft_uint16_t range); |
cpm219 | 0:2d0ef4830603 | 198 | ft_void_t RegRead(ft_uint32_t ptr, ft_uint32_t result); |
cpm219 | 0:2d0ef4830603 | 199 | ft_void_t GetProps(ft_uint32_t ptr, ft_uint32_t w, ft_uint32_t h); |
cpm219 | 0:2d0ef4830603 | 200 | ft_void_t Memcpy(ft_uint32_t dest, ft_uint32_t src, ft_uint32_t num); |
cpm219 | 0:2d0ef4830603 | 201 | ft_void_t Spinner(ft_int16_t x, ft_int16_t y, ft_uint16_t style, ft_uint16_t scale); |
cpm219 | 0:2d0ef4830603 | 202 | ft_void_t BgColor(ft_uint32_t c); |
cpm219 | 0:2d0ef4830603 | 203 | ft_void_t Swap(); |
cpm219 | 0:2d0ef4830603 | 204 | ft_void_t Inflate(ft_uint32_t ptr); |
cpm219 | 0:2d0ef4830603 | 205 | ft_void_t Translate(ft_int32_t tx, ft_int32_t ty); |
cpm219 | 0:2d0ef4830603 | 206 | ft_void_t Stop(); |
cpm219 | 0:2d0ef4830603 | 207 | ft_void_t Slider(ft_int16_t x, ft_int16_t y, ft_int16_t w, ft_int16_t h, ft_uint16_t options, ft_uint16_t val, ft_uint16_t range); |
cpm219 | 0:2d0ef4830603 | 208 | ft_void_t Interrupt(ft_uint32_t ms); |
cpm219 | 0:2d0ef4830603 | 209 | ft_void_t FgColor(ft_uint32_t c); |
cpm219 | 0:2d0ef4830603 | 210 | ft_void_t Rotate(ft_int32_t a); |
cpm219 | 0:2d0ef4830603 | 211 | ft_void_t Button(ft_int16_t x, ft_int16_t y, ft_int16_t w, ft_int16_t h, ft_int16_t font, ft_uint16_t options, const ft_char8_t* s); |
cpm219 | 0:2d0ef4830603 | 212 | ft_void_t MemWrite(ft_uint32_t ptr, ft_uint32_t num); |
cpm219 | 0:2d0ef4830603 | 213 | ft_void_t Scrollbar(ft_int16_t x, ft_int16_t y, ft_int16_t w, ft_int16_t h, ft_uint16_t options, ft_uint16_t val, ft_uint16_t size, ft_uint16_t range); |
cpm219 | 0:2d0ef4830603 | 214 | ft_void_t GetMatrix(ft_int32_t a, ft_int32_t b, ft_int32_t c, ft_int32_t d, ft_int32_t e, ft_int32_t f); |
cpm219 | 0:2d0ef4830603 | 215 | ft_void_t Sketch(ft_int16_t x, ft_int16_t y, ft_uint16_t w, ft_uint16_t h, ft_uint32_t ptr, ft_uint16_t format); |
cpm219 | 0:2d0ef4830603 | 216 | ft_void_t MemSet(ft_uint32_t ptr, ft_uint32_t value, ft_uint32_t num); |
cpm219 | 0:2d0ef4830603 | 217 | ft_void_t Calibrate(ft_uint32_t result); |
cpm219 | 0:2d0ef4830603 | 218 | ft_void_t SetFont(ft_uint32_t font, ft_uint32_t ptr); |
cpm219 | 0:2d0ef4830603 | 219 | ft_void_t Bitmap_Transform(ft_int32_t x0, ft_int32_t y0, ft_int32_t x1, ft_int32_t y1, ft_int32_t x2, ft_int32_t y2, ft_int32_t tx0, ft_int32_t ty0, ft_int32_t tx1, ft_int32_t ty1, ft_int32_t tx2, ft_int32_t ty2, ft_uint16_t result); |
cpm219 | 0:2d0ef4830603 | 220 | ft_void_t GradColor(ft_uint32_t c); |
cpm219 | 0:2d0ef4830603 | 221 | ft_void_t Append(ft_uint32_t ptr, ft_uint32_t num); |
cpm219 | 0:2d0ef4830603 | 222 | ft_void_t MemZero(ft_uint32_t ptr, ft_uint32_t num); |
cpm219 | 0:2d0ef4830603 | 223 | ft_void_t Scale(ft_int32_t sx, ft_int32_t sy); |
cpm219 | 0:2d0ef4830603 | 224 | ft_void_t Clock(ft_int16_t x, ft_int16_t y, ft_int16_t r, ft_uint16_t options, ft_uint16_t h, ft_uint16_t m, ft_uint16_t s, ft_uint16_t ms); |
cpm219 | 0:2d0ef4830603 | 225 | ft_void_t Gradient(ft_int16_t x0, ft_int16_t y0, ft_uint32_t rgb0, ft_int16_t x1, ft_int16_t y1, ft_uint32_t rgb1); |
cpm219 | 0:2d0ef4830603 | 226 | ft_void_t SetMatrix(); |
cpm219 | 0:2d0ef4830603 | 227 | ft_void_t Track(ft_int16_t x, ft_int16_t y, ft_int16_t w, ft_int16_t h, ft_int16_t tag); |
cpm219 | 0:2d0ef4830603 | 228 | ft_void_t GetPtr(ft_uint32_t result); |
cpm219 | 0:2d0ef4830603 | 229 | ft_void_t Progress(ft_int16_t x, ft_int16_t y, ft_int16_t w, ft_int16_t h, ft_uint16_t options, ft_uint16_t val, ft_uint16_t range); |
cpm219 | 0:2d0ef4830603 | 230 | ft_void_t ColdStart(); |
cpm219 | 0:2d0ef4830603 | 231 | ft_void_t Keys(ft_int16_t x, ft_int16_t y, ft_int16_t w, ft_int16_t h, ft_int16_t font, ft_uint16_t options, const ft_char8_t* s); |
cpm219 | 0:2d0ef4830603 | 232 | ft_void_t Dial(ft_int16_t x, ft_int16_t y, ft_int16_t r, ft_uint16_t options, ft_uint16_t val); |
cpm219 | 0:2d0ef4830603 | 233 | ft_void_t LoadImage(ft_uint32_t ptr, ft_uint32_t options); |
cpm219 | 0:2d0ef4830603 | 234 | ft_void_t DLstart(); |
cpm219 | 0:2d0ef4830603 | 235 | ft_void_t Snapshot(ft_uint32_t ptr); |
cpm219 | 0:2d0ef4830603 | 236 | ft_void_t ScreenSaver(); |
cpm219 | 0:2d0ef4830603 | 237 | ft_void_t Memcrc(ft_uint32_t ptr, ft_uint32_t num, ft_uint32_t result); |
cpm219 | 0:2d0ef4830603 | 238 | |
cpm219 | 0:2d0ef4830603 | 239 | ft_void_t Logo(); |
cpm219 | 0:2d0ef4830603 | 240 | |
cpm219 | 0:2d0ef4830603 | 241 | ft_void_t SendCmd( ft_uint32_t cmd); |
cpm219 | 0:2d0ef4830603 | 242 | ft_void_t SendStr( const ft_char8_t *s); |
cpm219 | 0:2d0ef4830603 | 243 | ft_void_t StartFunc( ft_uint16_t count); |
cpm219 | 0:2d0ef4830603 | 244 | ft_void_t EndFunc( ft_uint16_t count); |
cpm219 | 0:2d0ef4830603 | 245 | ft_void_t TouchTransform( ft_int32_t x0, ft_int32_t y0, ft_int32_t x1, ft_int32_t y1, ft_int32_t x2, ft_int32_t y2, ft_int32_t tx0, ft_int32_t ty0, ft_int32_t tx1, ft_int32_t ty1, ft_int32_t tx2, ft_int32_t ty2, ft_uint16_t result); |
cpm219 | 0:2d0ef4830603 | 246 | ft_void_t BitmapTransform( ft_int32_t x0, ft_int32_t y0, ft_int32_t x1, ft_int32_t y1, ft_int32_t x2, ft_int32_t y2, ft_int32_t tx0, ft_int32_t ty0, ft_int32_t tx1, ft_int32_t ty1, ft_int32_t tx2, ft_int32_t ty2, ft_uint16_t result); |
cpm219 | 0:2d0ef4830603 | 247 | ft_void_t MemCrc( ft_uint32_t ptr, ft_uint32_t num, ft_uint32_t result); |
cpm219 | 0:2d0ef4830603 | 248 | |
cpm219 | 0:2d0ef4830603 | 249 | ft_uint16_t fifo_Freespace( ); |
cpm219 | 0:2d0ef4830603 | 250 | |
cpm219 | 0:2d0ef4830603 | 251 | ft_void_t DL(ft_uint32_t cmd); |
cpm219 | 0:2d0ef4830603 | 252 | ft_void_t WrDlCmd_Buffer(ft_uint32_t cmd); |
cpm219 | 0:2d0ef4830603 | 253 | ft_void_t Flush_DL_Buffer(); |
cpm219 | 0:2d0ef4830603 | 254 | ft_void_t Flush_Co_Buffer(); |
cpm219 | 0:2d0ef4830603 | 255 | ft_void_t fadeout(); |
cpm219 | 0:2d0ef4830603 | 256 | ft_void_t fadein(); |
cpm219 | 0:2d0ef4830603 | 257 | ft_void_t DLSwap(ft_uint8_t DL_Swap_Type); |
cpm219 | 0:2d0ef4830603 | 258 | |
cpm219 | 0:2d0ef4830603 | 259 | ft_void_t Sound_ON(); |
cpm219 | 0:2d0ef4830603 | 260 | ft_void_t Sound_OFF(); |
cpm219 | 0:2d0ef4830603 | 261 | |
cpm219 | 0:2d0ef4830603 | 262 | int Load_jpg(char* filename, ft_int16_t* x_size, ft_int16_t* y_size,ft_uint32_t address); |
cpm219 | 0:2d0ef4830603 | 263 | |
cpm219 | 0:2d0ef4830603 | 264 | //Curt added Load_raw 7/22/16 |
cpm219 | 0:2d0ef4830603 | 265 | int Load_raw(char* filename); |
cpm219 | 0:2d0ef4830603 | 266 | |
cpm219 | 0:2d0ef4830603 | 267 | ft_void_t Calibrate(); |
cpm219 | 0:2d0ef4830603 | 268 | ft_void_t read_calibrate(ft_uint8_t data[24]); |
cpm219 | 0:2d0ef4830603 | 269 | ft_void_t write_calibrate(ft_uint8_t data[24]); |
cpm219 | 0:2d0ef4830603 | 270 | |
cpm219 | 0:2d0ef4830603 | 271 | ft_uint32_t color_rgb(ft_uint8_t red,ft_uint8_t green, ft_uint8_t blue); |
cpm219 | 0:2d0ef4830603 | 272 | ft_uint32_t clear_color_rgb(ft_uint8_t red,ft_uint8_t green, ft_uint8_t blue); |
cpm219 | 0:2d0ef4830603 | 273 | |
cpm219 | 0:2d0ef4830603 | 274 | }; // end of class |
cpm219 | 0:2d0ef4830603 | 275 | |
cpm219 | 0:2d0ef4830603 | 276 | #endif /*FT_GPU_HAL_H*/ |