48#define ESD_FUNCTION(name, ...)
51#define ESD_RENDER(name, ...)
54#define ESD_PARAMETER(name, ...)
58#define EVE_COCMD_UNSUPPORTED(cmd, res) eve_pragma_warning("Coprocessor command " #cmd " is not supported on this platform")(res)
122#if defined(_DEBUG) && defined(EVE_MULTI_GRAPHICS_TARGET)
124#define EVE_MULTI_TARGET_CHECK(cmd, condition) \
127 EVE_CoCmd_debugUnsupported(#cmd, EVE_CHIPID); \
130#define EVE_MULTI_TARGET_CHECK_RETURN(cmd, condition, res) \
133 EVE_CoCmd_debugUnsupported(#cmd, EVE_CHIPID); \
137#define EVE_MULTI_TARGET_CHECK(cmd, condition)
138#define EVE_MULTI_TARGET_CHECK_RETURN(cmd, condition, res)
144#if (EVE_SUPPORT_CHIPID >= EVE_FT810)
145#define EVE_CO_SCRATCH_HANDLE (EVE_CHIPID >= EVE_FT810 ? phost->CoScratchHandle : 15)
147#define EVE_CO_SCRATCH_HANDLE (15)
216#if (EVE_SUPPORT_CHIPID >= EVE_FT810)
233#define EVE_CoCmd_sync(phost) EVE_COCMD_UNSUPPORTED(CMD_SYNC, false)
237#if (EVE_SUPPORT_CHIPID >= EVE_BT815)
263#define EVE_CoCmd_clearCache(phost) EVE_COCMD_UNSUPPORTED(CMD_CLEARCACHE, false)
264#define EVE_CoCmd_nop(phost) EVE_COCMD_UNSUPPORTED(CMD_NOP, false)
268#if (EVE_SUPPORT_CHIPID >= EVE_BT817)
351#define EVE_CoCmd_hsf(phost, hsf) EVE_COCMD_UNSUPPORTED(CMD_HSF, false)
352#define EVE_CoCmd_apiLevel(phost, level) EVE_COCMD_UNSUPPORTED(CMD_APILEVEL, false)
353#define EVE_CoCmd_wait(phost, us) EVE_COCMD_UNSUPPORTED(CMD_WAIT, false)
354#define EVE_CoCmd_return(phost) EVE_COCMD_UNSUPPORTED(CMD_RETURN, false)
355#define EVE_CoCmd_callList(phost, a) EVE_COCMD_UNSUPPORTED(CMD_CALLLIST, false)
356#define EVE_CoCmd_newList(phost, a) EVE_COCMD_UNSUPPORTED(CMD_NEWLIST, false)
357#define EVE_CoCmd_endList(phost) EVE_COCMD_UNSUPPORTED(CMD_ENDLIST, false)
358#define EVE_CoCmd_pclkFreq(phost, ftarget, rounding) EVE_COCMD_UNSUPPORTED(CMD_PCLKFREQ, 0)
562#if (EVE_SUPPORT_CHIPID >= EVE_FT810)
624#define EVE_CoCmd_snapshot2(phost, fmt, ptr, x, y, w, h) EVE_COCMD_UNSUPPORTED(CMD_SNAPSHOT2, false)
625#define EVE_CoCmd_mediaFifo(phost, ptr, size) EVE_COCMD_UNSUPPORTED(CMD_MEDIAFIFO, false)
626#define EVE_CoCmd_videoStart(phost) EVE_COCMD_UNSUPPORTED(CMD_VIDEOSTART, false)
627#define EVE_CoCmd_videoFrame(phost, dst, ptr) EVE_COCMD_UNSUPPORTED(CMD_VIDEOFRAME, false)
631#define FLASH_ERROR_NOTATTACHED 0xE001
632#define FLASH_ERROR_HEADERMISSING 0xE002
633#define FLASH_ERROR_HEADERCRCFAILED 0xE003
634#define FLASH_ERROR_FIRMWAREMISMATCH 0xE004
635#define FLASH_ERROR_FULLSPEEDFAILED 0xE005
637#if (EVE_SUPPORT_CHIPID >= EVE_BT815) && defined(EVE_FLASH_AVAILABLE)
834#define EVE_CoCmd_flashErase(phost) EVE_COCMD_UNSUPPORTED(CMD_FLASHERASE, false)
835#define EVE_CoCmd_flashErase_flush(phost) EVE_COCMD_UNSUPPORTED(CMD_FLASHERASE, false)
836#define EVE_CoCmd_flashWrite(phost, ptr, num) EVE_COCMD_UNSUPPORTED(CMD_FLASHWRITE, false)
837#define EVE_CoCmd_flashRead(phost, dest, src, num) EVE_COCMD_UNSUPPORTED(CMD_FLASHREAD, false)
838#define EVE_CoCmd_flashRead_flush(phost, dest, src, num) EVE_COCMD_UNSUPPORTED(CMD_FLASHREAD, false)
839#define EVE_CoCmd_flashUpdate(phost, dest, src, num) EVE_COCMD_UNSUPPORTED(CMD_FLASHUPDATE, false)
840#define EVE_CoCmd_flashDetach(phost) EVE_COCMD_UNSUPPORTED(CMD_FLASHDETACH, false)
841#define EVE_CoCmd_flashAttach(phost) EVE_COCMD_UNSUPPORTED(CMD_FLASHATTACH, 0)
842#define EVE_CoCmd_flashFast(phost, result) EVE_COCMD_UNSUPPORTED(CMD_FLASHFAST, 0)
843#define EVE_CoCmd_flashSpiDesel(phost) EVE_COCMD_UNSUPPORTED(CMD_FLASHSPIDESEL, false)
844#define EVE_CoCmd_flashSpiTx(phost, num) EVE_COCMD_UNSUPPORTED(CMD_FLASHSPITX, false)
845#define EVE_CoCmd_flashSpiRx(phost, ptr, num) EVE_COCMD_UNSUPPORTED(CMD_FLASHSPIRX, false)
846#define EVE_CoCmd_flashSource(phost, ptr) EVE_COCMD_UNSUPPORTED(CMD_FLASHSOURCE, false)
847#define EVE_CoCmd_appendF(phost, ptr, num) EVE_COCMD_UNSUPPORTED(CMD_APPENDF, false)
848#define EVE_CoCmd_videoStartF(phost) EVE_COCMD_UNSUPPORTED(CMD_VIDEOSTARTF, false)
849#define EVE_CoCmd_loadImage_flash(phost, dst, src, format) EVE_COCMD_UNSUPPORTED(CMD_FLASHSOURCE, false)
850#define EVE_CoCmd_inflate_flash(phost, dst, src, format) EVE_COCMD_UNSUPPORTED(CMD_FLASHSOURCE, false)
854#if (EVE_SUPPORT_CHIPID >= EVE_BT815)
871#define EVE_CoCmd_inflate2(phost, ptr, options) EVE_COCMD_UNSUPPORTED(CMD_INFLATE2, false)
875#if (EVE_SUPPORT_CHIPID >= EVE_BT817)
916#define EVE_CoCmd_getImage(phost, source, fmt, w, h, palette) EVE_COCMD_UNSUPPORTED(CMD_GETIMAGE, false)
917#define EVE_CoCmd_fontCache(phost, font, ptr, num) EVE_COCMD_UNSUPPORTED(CMD_FONTCACHE, false)
918#define EVE_CoCmd_fontCacheQuery(phost, total, used) EVE_COCMD_UNSUPPORTED(CMD_FONTCACHEQUERY, false)
938 if (phost->CoBgColor !=
c)
943 phost->CoBgColor =
c;
960 if (phost->CoFgColor !=
c)
965 phost->CoFgColor =
c;
989EVE_HAL_EXPORT bool EVE_CoCmd_bitmapTransform(
EVE_HalContext *phost,
int32_t x0,
int32_t y0,
int32_t x1,
int32_t y1,
int32_t x2,
int32_t y2,
int32_t tx0,
int32_t ty0,
int32_t tx1,
int32_t ty1,
int32_t tx2,
int32_t ty2,
uint16_t *result);
1003 phost->CoBitmapTransform =
false;
1023 phost->CoBitmapTransform =
true;
1043 phost->CoBitmapTransform =
true;
1061 phost->CoBitmapTransform =
true;
1075 if (phost->CoBitmapTransform ||
EVE_DL_STATE.BitmapTransform)
1081 EVE_DL_STATE.BitmapTransform = phost->CoBitmapTransform;
1112#if (EVE_SUPPORT_CHIPID >= EVE_FT810)
1192#define EVE_CoCmd_setBase(phost, base) EVE_COCMD_UNSUPPORTED(CMD_SETBASE, false)
1193#define EVE_CoCmd_setFont2(phost, font, ptr, firstchar) EVE_COCMD_UNSUPPORTED(CMD_SETFONT2, false)
1194#define EVE_CoCmd_setScratch(phost, handle) EVE_COCMD_UNSUPPORTED(CMD_SETSCRATCH, false)
1195#define EVE_CoCmd_romFont(phost, font, romslot) EVE_COCMD_UNSUPPORTED(CMD_ROMFONT, false)
1196#define EVE_CoCmd_setBitmap(phost, source, fmt, w, h) EVE_COCMD_UNSUPPORTED(CMD_SETBITMAP, false)
1200#if (EVE_SUPPORT_CHIPID >= EVE_BT815)
1246#define EVE_CoCmd_rotateAround(phost, x, y, a, s) EVE_COCMD_UNSUPPORTED(CMD_ROTATEAROUND, false)
1247#define EVE_CoCmd_resetFonts(phost) EVE_COCMD_UNSUPPORTED(CMD_RESETFONTS, false)
1248#define EVE_CoCmd_fillWidth(phost, s) EVE_COCMD_UNSUPPORTED(CMD_FILLWIDTH, false)
1279#if (EVE_DL_OPTIMIZE)
1280 phost->DlPrimitive = 0;
1400#if (EVE_DL_OPTIMIZE)
1401 phost->DlPrimitive = 0;
1430#if (EVE_DL_OPTIMIZE)
1431 phost->DlPrimitive = 0;
1462#if (EVE_DL_OPTIMIZE)
1463 phost->DlPrimitive = 0;
1509#if (EVE_DL_OPTIMIZE)
1510 phost->DlPrimitive = 0;
1541#if (EVE_DL_OPTIMIZE)
1542 phost->DlPrimitive = 0;
1567#if (EVE_DL_OPTIMIZE)
1568 phost->DlPrimitive = 0;
1591#if (EVE_SUPPORT_CHIPID >= EVE_BT815)
1609#if (EVE_DL_OPTIMIZE)
1616#define EVE_CoCmd_gradientA(phost, x0, y0, argb0, x1, y1, argb1) EVE_COCMD_UNSUPPORTED(CMD_GRADIENTA, false)
1645#if (EVE_DL_OPTIMIZE)
1684#if (EVE_DL_OPTIMIZE)
1704#if (EVE_DL_OPTIMIZE)
1718#if (EVE_DL_OPTIMIZE)
1737#if defined(EVE_MULTI_GRAPHICS_TARGET) || (EVE_SUPPORT_CHIPID == EVE_FT801)
1742#if (EVE_DL_OPTIMIZE)
1754#if (EVE_SUPPORT_CHIPID >= EVE_FT810)
1767#if (EVE_DL_OPTIMIZE)
1776#if (EVE_SUPPORT_CHIPID >= EVE_BT815)
1787#define EVE_CoCmd_playVideo(phost, options) EVE_COCMD_UNSUPPORTED(CMD_PLAYVIDEO, false)
1791#if (EVE_SUPPORT_CHIPID >= EVE_BT815)
1841#if (EVE_DL_OPTIMIZE)
1860#if (EVE_DL_OPTIMIZE)
1867#define EVE_CoCmd_animStart(phost, ch, aoptr, loop) EVE_COCMD_UNSUPPORTED(CMD_ANIMSTART, false)
1868#define EVE_CoCmd_animStop(phost, ch) EVE_COCMD_UNSUPPORTED(CMD_ANIMSTOP, false)
1869#define EVE_CoCmd_animXY(phost, ch, x, y) EVE_COCMD_UNSUPPORTED(CMD_ANIMXY, false)
1870#define EVE_CoCmd_animDraw(phost, ch) EVE_COCMD_UNSUPPORTED(CMD_ANIMDRAW, false)
1871#define EVE_CoCmd_animFrame(phost, x, y, aoptr, frame) EVE_COCMD_UNSUPPORTED(CMD_ANIMFRAME, false)
1875#if (EVE_SUPPORT_CHIPID >= EVE_BT817)
1913#if (EVE_DL_OPTIMIZE)
1932#if (EVE_DL_OPTIMIZE)
1963#if (EVE_DL_OPTIMIZE)
1970#define EVE_CoCmd_calibrateSub(phost, x, y, w, h) EVE_COCMD_UNSUPPORTED(CMD_CALIBRATESUB, 0)
1971#define EVE_CoCmd_testCard(phost) EVE_COCMD_UNSUPPORTED(CMD_TESTCARD, false)
1972#define EVE_CoCmd_animFrameRam(phost, x, y, aoptr, frame) EVE_COCMD_UNSUPPORTED(CMD_ANIMFRAMERAM, false)
1973#define EVE_CoCmd_animStartRam(phost, ch, aoptr, loop) EVE_COCMD_UNSUPPORTED(CMD_ANIMSTARTRAM, false)
1974#define EVE_CoCmd_runAnim(phost, waitmask, play) EVE_COCMD_UNSUPPORTED(CMD_RUNANIM, false)
static void EVE_CoCmd_setBitmap(EVE_HalContext *phost, uint32_t source, uint16_t fmt, uint16_t w, uint16_t h)
Send CMD_SETBITMAP.
EVE_HAL_EXPORT void EVE_CoCmd_d(EVE_HalContext *phost, uint32_t cmd)
#define EVE_CoCmd_animFrameRam(phost, x, y, aoptr, frame)
EVE_HAL_EXPORT void EVE_CoCmd_dddd(EVE_HalContext *phost, uint32_t cmd, uint32_t d0, uint32_t d1, uint32_t d2)
EVE_HAL_EXPORT void EVE_CoCmd_text_s(EVE_HalContext *phost, int16_t x, int16_t y, int16_t font, uint16_t options, const char *s, uint32_t length)
Send CMD_TEXT with length.
static void EVE_CoCmd_flashSpiTx(EVE_HalContext *phost, uint32_t num)
Send CMD_FLASHSPITX. Must follow data.
static void EVE_CoCmd_dl(EVE_HalContext *phost, uint32_t dl)
Write a display list instruction. Example: EVE_CoCmd_dl(DISPLAY());.
EVE_HAL_EXPORT bool EVE_CoCmd_flashRead_flush(EVE_HalContext *phost, uint32_t dest, uint32_t src, uint32_t num)
Read from Flash to RAM_G.
EVE_HAL_EXPORT bool EVE_CoCmd_inflate_progMem(EVE_HalContext *phost, uint32_t dst, eve_progmem_const uint8_t *src, uint32_t size)
Inflates data from program memory to RAM_G.
static void EVE_CoCmd_scale(EVE_HalContext *phost, int32_t sx, int32_t sy)
Send CMD_SCALE.
EVE_HAL_EXPORT void EVE_CoCmd_setRotate(EVE_HalContext *phost, uint32_t r)
CMD_SETROTATE.
static void EVE_CoCmd_logo(EVE_HalContext *phost)
Send CMD_LOGO.
static void EVE_CoCmd_spinner(EVE_HalContext *phost, int16_t x, int16_t y, uint16_t style, uint16_t scale)
Send CMD_SPINNER.
static void EVE_CoCmd_screenSaver(EVE_HalContext *phost)
Send CMD_SCREENSAVER.
EVE_HAL_EXPORT uint32_t EVE_CoCmd_flashAttach(EVE_HalContext *phost)
Attach flash.
static void EVE_CoCmd_memCpy(EVE_HalContext *phost, uint32_t dest, uint32_t src, uint32_t num)
Send CMD_MEMCPY.
#define EVE_CoCmd_callList(phost, a)
EVE_HAL_EXPORT bool EVE_CoCmd_loadImage_flash(EVE_HalContext *phost, uint32_t dst, uint32_t src, uint32_t *format)
Load image from Flash to RAM_G.
EVE_HAL_EXPORT void EVE_CoCmd_text_ex(EVE_HalContext *phost, int16_t x, int16_t y, int16_t font, uint16_t options, bool bottom, int16_t baseLine, int16_t capsHeight, int16_t xOffset, const char *s)
Send CMD_TEXT.
static void EVE_CoCmd_flashSpiRx(EVE_HalContext *phost, uint32_t ptr, uint32_t num)
Send CMD_FLASHSPIRX.
static void EVE_CoCmd_dial(EVE_HalContext *phost, int16_t x, int16_t y, int16_t r, uint16_t options, uint16_t val)
Send CMD_DIAL.
static void EVE_CoCmd_sync(EVE_HalContext *phost)
Send CMD_SYNC.
#define EVE_CoCmd_endList(phost)
EVE_HAL_EXPORT bool EVE_CoCmd_bitmapTransform(EVE_HalContext *phost, int32_t x0, int32_t y0, int32_t x1, int32_t y1, int32_t x2, int32_t y2, int32_t tx0, int32_t ty0, int32_t tx1, int32_t ty1, int32_t tx2, int32_t ty2, uint16_t *result)
Send CMD_BITMAP_TRANSFORM. Blocking call if a pointer is passed to result
EVE_HAL_EXPORT void EVE_CoCmd_dwwwwwwz_s(EVE_HalContext *phost, uint32_t cmd, uint16_t w0, uint16_t w1, uint16_t w2, uint16_t w3, uint16_t w4, uint16_t w5, const char *s, uint32_t len)
static void EVE_CoCmd_clearCache(EVE_HalContext *phost)
Send CMD_CLEARCACHE.
EVE_HAL_EXPORT void EVE_CoCmd_ddwww(EVE_HalContext *phost, uint32_t cmd, uint32_t d0, uint16_t w1, uint16_t w2, uint16_t w3)
static void EVE_CoCmd_flashErase(EVE_HalContext *phost)
Send CMD_FLASHERASE.
EVE_HAL_EXPORT void EVE_CoCmd_dwwwwwwz(EVE_HalContext *phost, uint32_t cmd, uint16_t w0, uint16_t w1, uint16_t w2, uint16_t w3, uint16_t w4, uint16_t w5, const char *s)
EVE_HAL_EXPORT bool EVE_CoCmd_getProps(EVE_HalContext *phost, uint32_t *ptr, uint32_t *w, uint32_t *h)
Get the image properties decompressed by CMD_LOADIMAGE.
EVE_HAL_EXPORT bool EVE_CoCmd_regRead(EVE_HalContext *phost, uint32_t ptr, uint32_t *result)
Send CMD_REGREAD.
static void EVE_CoCmd_swap(EVE_HalContext *phost)
Send CMD_SWAP.
static void EVE_CoCmd_gradColor(EVE_HalContext *phost, uint32_t c)
Send CMD_GRADCOLOR.
static void EVE_CoCmd_animFrame(EVE_HalContext *phost, int16_t x, int16_t y, uint32_t aoptr, uint32_t frame)
Send CMD_ANIMFRAME.
#define ESD_RENDER(name,...)
EVE_HAL_EXPORT void EVE_CoCmd_dwwwwdw(EVE_HalContext *phost, uint32_t cmd, uint16_t w0, uint16_t w1, uint16_t w2, uint16_t w3, uint32_t d4, uint16_t w5)
EVE_HAL_EXPORT void EVE_CoCmd_button(EVE_HalContext *phost, int16_t x, int16_t y, int16_t w, int16_t h, int16_t font, uint16_t options, const char *s,...)
Send CMD_BUTTON.
static void EVE_CoCmd_animXY(EVE_HalContext *phost, int32_t ch, int16_t x, int16_t y)
Send CMD_ANIMXY.
#define EVE_CoCmd_fontCache(phost, font, ptr, num)
static void EVE_CoCmd_mediaFifo(EVE_HalContext *phost, uint32_t ptr, uint32_t size)
Send CMD_MEDIAFIFO. See EVE_MediaFifo interface for easier FIFO access.
EVE_HAL_EXPORT void EVE_CoCmd_toggle(EVE_HalContext *phost, int16_t x, int16_t y, int16_t w, int16_t font, uint16_t options, uint16_t state, const char *s,...)
Send CMD_TOGGLE.
EVE_HAL_EXPORT void EVE_CoCmd_text(EVE_HalContext *phost, int16_t x, int16_t y, int16_t font, uint16_t options, const char *s,...)
Send CMD_TEXT.
static void EVE_CoCmd_inflate2(EVE_HalContext *phost, uint32_t ptr, uint32_t options)
Send CMD_INFLATE2.
static void EVE_CoCmd_interrupt(EVE_HalContext *phost, uint32_t ms)
Send CMD_INTERRUPT.
static void EVE_CoCmd_videoFrame(EVE_HalContext *phost, uint32_t dst, uint32_t ptr)
CMD_VIDEOFRAME.
EVE_HAL_EXPORT uint32_t EVE_CoCmd_flashFast(EVE_HalContext *phost, uint32_t *result)
Enter fast flash state.
EVE_HAL_EXPORT void EVE_CoCmd_ddddd(EVE_HalContext *phost, uint32_t cmd, uint32_t d0, uint32_t d1, uint32_t d2, uint32_t d3)
EVE_HAL_EXPORT void EVE_CoCmd_number(EVE_HalContext *phost, int16_t x, int16_t y, int16_t font, uint16_t options, int32_t n)
Send CMD_NUMBER.
EVE_HAL_EXPORT void EVE_CoCmd_dwwww(EVE_HalContext *phost, uint32_t cmd, uint16_t w0, uint16_t w1, uint16_t w2, uint16_t w3)
EVE_HAL_EXPORT void EVE_CoCmd_dwwwwwwww(EVE_HalContext *phost, uint32_t cmd, uint16_t w0, uint16_t w1, uint16_t w2, uint16_t w3, uint16_t w4, uint16_t w5, uint16_t w6, uint16_t w7)
static void EVE_CoCmd_setBase(EVE_HalContext *phost, uint32_t base)
Send CMD_SETBASE.
static void EVE_CoCmd_flashSpiDesel(EVE_HalContext *phost)
Send CMD_FLASHSPIDESEL.
#define EVE_CoCmd_getImage(phost, source, fmt, w, h, palette)
EVE_HAL_EXPORT void EVE_CoCmd_dwwwww(EVE_HalContext *phost, uint32_t cmd, uint16_t w0, uint16_t w1, uint16_t w2, uint16_t w3, uint16_t w4)
#define EVE_CoCmd_hsf(phost, hsf)
static void EVE_CoCmd_gauge(EVE_HalContext *phost, int16_t x, int16_t y, int16_t r, uint16_t options, uint16_t major, uint16_t minor, uint16_t val, uint16_t range)
Send CMD_GAUGE.
EVE_HAL_EXPORT bool EVE_CoCmd_loadImage_progMem(EVE_HalContext *phost, uint32_t dst, eve_progmem_const uint8_t *src, uint32_t size, uint32_t *format)
Load image from program memory.
static void EVE_CoCmd_stop(EVE_HalContext *phost)
Send CMD_STOP.
static void EVE_CoCmd_memSet(EVE_HalContext *phost, uint32_t ptr, uint32_t value, uint32_t num)
Send CMD_MEMSET.
static void EVE_CoCmd_loadImage(EVE_HalContext *phost, uint32_t ptr, uint32_t options)
Send CMD_LOADIMAGE. Data must follow this command.
EVE_HAL_EXPORT void EVE_CoCmd_ddd(EVE_HalContext *phost, uint32_t cmd, uint32_t d0, uint32_t d1)
EVE_HAL_EXPORT void EVE_CoCmd_dd(EVE_HalContext *phost, uint32_t cmd, uint32_t d0)
#define EVE_CoCmd_runAnim(phost, waitmask, play)
#define EVE_CoCmd_pclkFreq(phost, ftarget, rounding)
static void EVE_CoCmd_videoStart(EVE_HalContext *phost)
Send CMD_VIDEOSTART.
static void EVE_CoCmd_flashWrite(EVE_HalContext *phost, uint32_t ptr, uint32_t num)
Send CMD_FLASHWRITE. This command must be followed by the data to write.
static void EVE_CoCmd_fillWidth(EVE_HalContext *phost, uint32_t s)
Send CMD_FILLWIDTH.
#define EVE_CoCmd_fontCacheQuery(phost, total, used)
static void EVE_CoCmd_gradient(EVE_HalContext *phost, int16_t x0, int16_t y0, uint32_t rgb0, int16_t x1, int16_t y1, uint32_t rgb1)
Send CMD_GRADIENT.
EVE_HAL_EXPORT bool EVE_CoCmd_animStart(EVE_HalContext *phost, int32_t ch, uint32_t aoptr, uint32_t loop)
Send CMD_ANIMSTART.
EVE_HAL_EXPORT void EVE_CoCmd_dwwwwwww(EVE_HalContext *phost, uint32_t cmd, uint16_t w0, uint16_t w1, uint16_t w2, uint16_t w3, uint16_t w4, uint16_t w5, uint16_t w6)
static void EVE_CoCmd_snapshot(EVE_HalContext *phost, uint32_t ptr)
Send CMD_SNAPSHOT.
EVE_HAL_EXPORT void EVE_CoCmd_ddww(EVE_HalContext *phost, uint32_t cmd, uint32_t d0, uint16_t w1, uint16_t w2)
#define ESD_FUNCTION(name,...)
EVE_HAL_EXPORT void EVE_CoCmd_dwwdwwd(EVE_HalContext *phost, uint32_t cmd, uint16_t w0, uint16_t w1, uint32_t d2, uint16_t w3, uint16_t w4, uint32_t d5)
static void EVE_CoCmd_rotate(EVE_HalContext *phost, int32_t a)
Send CMD_ROTATE.
EVE_HAL_EXPORT bool EVE_CoCmd_getPtr(EVE_HalContext *phost, uint32_t *result)
Get the end memory address of data inflated by CMD_INFLATE.
EVE_HAL_EXPORT void EVE_CoCmd_dwwwwd(EVE_HalContext *phost, uint32_t cmd, uint16_t w0, uint16_t w1, uint16_t w2, uint16_t w3, uint32_t d4)
static void EVE_CoCmd_appendF(EVE_HalContext *phost, uint32_t ptr, uint32_t num)
Send CMD_APPENDF.
static void EVE_CoCmd_gradientA(EVE_HalContext *phost, int16_t x0, int16_t y0, uint32_t argb0, int16_t x1, int16_t y1, uint32_t argb1)
Send CMD_GRADIENTA.
static void EVE_CoCmd_setScratch(EVE_HalContext *phost, uint32_t handle)
Send CMD_SETSCRATCH.
static void EVE_CoCmd_inflate(EVE_HalContext *phost, uint32_t ptr)
Send CMD_INFLATE. Data must follow this command.
EVE_HAL_EXPORT uint32_t EVE_CoCmd_calibrate(EVE_HalContext *phost)
Send CMD_CALIBRATE.
EVE_HAL_EXPORT bool EVE_CoCmd_memCrc(EVE_HalContext *phost, uint32_t ptr, uint32_t num, uint32_t *result)
Send CMD_MEMCRC.
EVE_HAL_EXPORT void EVE_CoDlImpl_resetCoState(EVE_HalContext *phost)
static void EVE_CoCmd_setFont(EVE_HalContext *phost, uint32_t font, uint32_t ptr)
Send CMD_SETFONT.
static void EVE_CoCmd_animStop(EVE_HalContext *phost, int32_t ch)
Send CMD_ANIMSTOP.
static void EVE_CoCmd_bgColor(EVE_HalContext *phost, uint32_t c)
Send CMD_BGCOLOR.
static void EVE_CoCmd_nop(EVE_HalContext *phost)
Send CMD_NOP.
#define EVE_CoCmd_calibrateSub(phost, x, y, w, h)
EVE_HAL_EXPORT bool EVE_CoCmd_flashErase_flush(EVE_HalContext *phost)
Send CMD_FLASHERASE. Wait for completion.
EVE_HAL_EXPORT bool EVE_CoCmd_inflate_flash(EVE_HalContext *phost, uint32_t dst, uint32_t src)
Inflates data from Flash to RAM_G.
static void EVE_CoCmd_flashRead(EVE_HalContext *phost, uint32_t dest, uint32_t src, uint32_t num)
Read from Flash to RAM_G. Call EVE_Cmd_waitFlush to wait for completion.
#define EVE_CoCmd_testCard(phost)
static void EVE_CoCmd_clock(EVE_HalContext *phost, int16_t x, int16_t y, int16_t r, uint16_t options, uint16_t h, uint16_t m, uint16_t s, uint16_t ms)
Send CMD_CLOCK.
static void EVE_CoCmd_loadIdentity(EVE_HalContext *phost)
Send CMD_LOADIDENTITY.
static void EVE_CoCmd_snapshot2(EVE_HalContext *phost, uint32_t fmt, uint32_t ptr, int16_t x, int16_t y, int16_t w, int16_t h)
Send CMD_SNAPSHOT2.
static void EVE_CoCmd_coldStart(EVE_HalContext *phost)
Send CMD_COLDSTART.
EVE_HAL_EXPORT void EVE_CoCmd_dwwwwdww(EVE_HalContext *phost, uint32_t cmd, uint16_t w0, uint16_t w1, uint16_t w2, uint16_t w3, uint32_t d4, uint16_t w5, uint16_t w6)
static void EVE_CoCmd_playVideo(EVE_HalContext *phost, uint32_t options)
Send CMD_PLAYVIDEO.
static void EVE_CoCmd_sketch(EVE_HalContext *phost, int16_t x, int16_t y, uint16_t w, uint16_t h, uint32_t ptr, uint16_t format)
Send CMD_SKETCH.
#define EVE_CoCmd_apiLevel(phost, level)
EVE_HAL_EXPORT void EVE_CoCmd_dddwwww(EVE_HalContext *phost, uint32_t cmd, uint32_t d0, uint32_t d1, uint16_t w2, uint16_t w3, uint16_t w4, uint16_t w5)
static void EVE_CoCmd_append(EVE_HalContext *phost, uint32_t ptr, uint32_t num)
Send CMD_APPEND.
EVE_HAL_EXPORT void EVE_CoDlImpl_resetDlState(EVE_HalContext *phost)
static void EVE_CoCmd_animDraw(EVE_HalContext *phost, int32_t ch)
Send CMD_ANIMDRAW.
static void EVE_CoCmd_flashSource(EVE_HalContext *phost, uint32_t ptr)
Send CMD_FLASHSOURCE.
static void EVE_CoCmd_dlStart(EVE_HalContext *phost)
Send CMD_DLSTART.
static void EVE_CoCmd_resetFonts(EVE_HalContext *phost)
Send CMD_RESETFONT.
static void EVE_CoCmd_memZero(EVE_HalContext *phost, uint32_t ptr, uint32_t num)
Send CMD_MEMZERO.
static void EVE_CoCmd_videoStartF(EVE_HalContext *phost)
Send CMD_VIDEOSTARTF.
static void EVE_CoCmd_scrollbar(EVE_HalContext *phost, int16_t x, int16_t y, int16_t w, int16_t h, uint16_t options, uint16_t val, uint16_t size, uint16_t range)
Send CMD_SCROLLBAR.
EVE_HAL_EXPORT void EVE_CoCmd_dwwdd(EVE_HalContext *phost, uint32_t cmd, uint16_t w0, uint16_t w1, uint32_t d2, uint32_t d3)
EVE_HAL_EXPORT void EVE_CoCmd_keys(EVE_HalContext *phost, int16_t x, int16_t y, int16_t w, int16_t h, int16_t font, uint16_t options, const char *s)
Send CMD_KEYS.
static void EVE_CoCmd_flashDetach(EVE_HalContext *phost)
Send CMD_FLASHDETACH.
#define ESD_PARAMETER(name,...)
static void EVE_CoCmd_translate(EVE_HalContext *phost, int32_t tx, int32_t ty)
Send CMD_TRANSLATE.
static void EVE_CoCmd_romFont(EVE_HalContext *phost, uint32_t font, uint32_t romslot)
Send CMD_ROMFONT.
#define EVE_CoCmd_animStartRam(phost, ch, aoptr, loop)
static void EVE_CoCmd_memWrite(EVE_HalContext *phost, uint32_t ptr, uint32_t num)
Send CMD_MEMWRITE.
#define EVE_MULTI_TARGET_CHECK(cmd, condition)
static void EVE_CoCmd_progress(EVE_HalContext *phost, int16_t x, int16_t y, int16_t w, int16_t h, uint16_t options, uint16_t val, uint16_t range)
Send CMD_PROGRESS.
static void EVE_CoCmd_slider(EVE_HalContext *phost, int16_t x, int16_t y, int16_t w, int16_t h, uint16_t options, uint16_t val, uint16_t range)
Send CMD_SLIDER.
static void EVE_CoCmd_setMatrix(EVE_HalContext *phost)
Send CMD_SETMATRIX.
static void EVE_CoCmd_setFont2(EVE_HalContext *phost, uint32_t font, uint32_t ptr, uint32_t firstchar)
Send CMD_SETFONT2.
static void EVE_CoCmd_flashUpdate(EVE_HalContext *phost, uint32_t dest, uint32_t src, uint32_t num)
Send CMD_FLASHUPDATE. This command must be followed by the data to write.
static void EVE_CoCmd_track(EVE_HalContext *phost, int16_t x, int16_t y, int16_t w, int16_t h, int16_t tag)
Send CMD_TRACK.
#define EVE_CoCmd_newList(phost, a)
static void EVE_CoCmd_memWrite32(EVE_HalContext *phost, uint32_t ptr, uint32_t value)
Send CMD_MEMWRITE, followed by a single 32-bit value.
EVE_HAL_EXPORT bool EVE_CoCmd_getMatrix(EVE_HalContext *phost, int32_t *m)
Send CMD_GETMATRIX.
static void EVE_CoCmd_fgColor(EVE_HalContext *phost, uint32_t c)
Send CMD_FGCOLOR.
static void EVE_CoCmd_rotateAround(EVE_HalContext *phost, int32_t x, int32_t y, int32_t a, int32_t s)
Send CMD_ROTATEAROUND.
#define EVE_CoCmd_wait(phost, us)
static void EVE_CoCmd_cSketch(EVE_HalContext *phost, int16_t x, int16_t y, uint16_t w, uint16_t h, uint32_t ptr, uint16_t format, uint16_t freq)
Send CMD_CSKETCH. Only exists under FT801.
#define EVE_CoCmd_return(phost)
#define eve_progmem_const
Defines EVE hardware values.
#define CMD_FLASHSPIDESEL
static ft_uint32_t ft_uint8_t ft_uint32_t length
static ft_void_t ft_uint32_t * cmd