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