Lib FT800 Modifiee

Dependents:   FT800_Lib_perso

Committer:
schnf30
Date:
Tue Feb 08 08:17:31 2022 +0000
Revision:
0:7ea2f058a713
Librairie FT800 adaptee avec drawline, Brigntness etc...

Who changed what in which revision?

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