EVE's co-processor commmands. More...
Go to the source code of this file.
EVE's co-processor commmands.
MIT License
Copyright (c) [2019] [Bridgetek Pte Ltd (BRTChip)]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Definition in file EVE_CoCmd.h.
#define ESD_FUNCTION | ( | name, | |
... | |||
) |
Definition at line 48 of file EVE_CoCmd.h.
#define ESD_PARAMETER | ( | name, | |
... | |||
) |
Definition at line 54 of file EVE_CoCmd.h.
#define ESD_RENDER | ( | name, | |
... | |||
) |
Definition at line 51 of file EVE_CoCmd.h.
#define EVE_CO_SCRATCH_HANDLE (EVE_CHIPID >= EVE_FT810 ? phost->CoScratchHandle : 15) |
Definition at line 145 of file EVE_CoCmd.h.
#define EVE_CoCmd_animFrameRam | ( | phost, | |
x, | |||
y, | |||
aoptr, | |||
frame | |||
) | EVE_COCMD_UNSUPPORTED(CMD_ANIMFRAMERAM, false) |
Definition at line 1972 of file EVE_CoCmd.h.
#define EVE_CoCmd_animStartRam | ( | phost, | |
ch, | |||
aoptr, | |||
loop | |||
) | EVE_COCMD_UNSUPPORTED(CMD_ANIMSTARTRAM, false) |
Definition at line 1973 of file EVE_CoCmd.h.
#define EVE_CoCmd_apiLevel | ( | phost, | |
level | |||
) | EVE_COCMD_UNSUPPORTED(CMD_APILEVEL, false) |
Definition at line 352 of file EVE_CoCmd.h.
#define EVE_CoCmd_calibrateSub | ( | phost, | |
x, | |||
y, | |||
w, | |||
h | |||
) | EVE_COCMD_UNSUPPORTED(CMD_CALIBRATESUB, 0) |
Definition at line 1970 of file EVE_CoCmd.h.
#define EVE_CoCmd_callList | ( | phost, | |
a | |||
) | EVE_COCMD_UNSUPPORTED(CMD_CALLLIST, false) |
Definition at line 355 of file EVE_CoCmd.h.
#define EVE_CoCmd_endList | ( | phost | ) | EVE_COCMD_UNSUPPORTED(CMD_ENDLIST, false) |
Definition at line 357 of file EVE_CoCmd.h.
#define EVE_CoCmd_fontCache | ( | phost, | |
font, | |||
ptr, | |||
num | |||
) | EVE_COCMD_UNSUPPORTED(CMD_FONTCACHE, false) |
Definition at line 917 of file EVE_CoCmd.h.
#define EVE_CoCmd_fontCacheQuery | ( | phost, | |
total, | |||
used | |||
) | EVE_COCMD_UNSUPPORTED(CMD_FONTCACHEQUERY, false) |
Definition at line 918 of file EVE_CoCmd.h.
#define EVE_CoCmd_getImage | ( | phost, | |
source, | |||
fmt, | |||
w, | |||
h, | |||
palette | |||
) | EVE_COCMD_UNSUPPORTED(CMD_GETIMAGE, false) |
Definition at line 916 of file EVE_CoCmd.h.
#define EVE_CoCmd_hsf | ( | phost, | |
hsf | |||
) | EVE_COCMD_UNSUPPORTED(CMD_HSF, false) |
Definition at line 351 of file EVE_CoCmd.h.
#define EVE_CoCmd_newList | ( | phost, | |
a | |||
) | EVE_COCMD_UNSUPPORTED(CMD_NEWLIST, false) |
Definition at line 356 of file EVE_CoCmd.h.
#define EVE_CoCmd_pclkFreq | ( | phost, | |
ftarget, | |||
rounding | |||
) | EVE_COCMD_UNSUPPORTED(CMD_PCLKFREQ, 0) |
Definition at line 358 of file EVE_CoCmd.h.
#define EVE_CoCmd_return | ( | phost | ) | EVE_COCMD_UNSUPPORTED(CMD_RETURN, false) |
Definition at line 354 of file EVE_CoCmd.h.
#define EVE_CoCmd_runAnim | ( | phost, | |
waitmask, | |||
play | |||
) | EVE_COCMD_UNSUPPORTED(CMD_RUNANIM, false) |
Definition at line 1974 of file EVE_CoCmd.h.
#define EVE_CoCmd_testCard | ( | phost | ) | EVE_COCMD_UNSUPPORTED(CMD_TESTCARD, false) |
Definition at line 1971 of file EVE_CoCmd.h.
#define EVE_COCMD_UNSUPPORTED | ( | cmd, | |
res | |||
) | eve_pragma_warning("Coprocessor command " #cmd " is not supported on this platform")(res) |
Change to eve_pragma_error
to strictly disable use of unsupported commands
Definition at line 58 of file EVE_CoCmd.h.
#define EVE_CoCmd_wait | ( | phost, | |
us | |||
) | EVE_COCMD_UNSUPPORTED(CMD_WAIT, false) |
Definition at line 353 of file EVE_CoCmd.h.
#define EVE_MULTI_TARGET_CHECK | ( | cmd, | |
condition | |||
) |
Definition at line 137 of file EVE_CoCmd.h.
#define EVE_MULTI_TARGET_CHECK_RETURN | ( | cmd, | |
condition, | |||
res | |||
) |
Definition at line 138 of file EVE_CoCmd.h.
#define FLASH_ERROR_FIRMWAREMISMATCH 0xE004 |
Definition at line 634 of file EVE_CoCmd.h.
#define FLASH_ERROR_FULLSPEEDFAILED 0xE005 |
Definition at line 635 of file EVE_CoCmd.h.
#define FLASH_ERROR_HEADERCRCFAILED 0xE003 |
Definition at line 633 of file EVE_CoCmd.h.
#define FLASH_ERROR_HEADERMISSING 0xE002 |
Definition at line 632 of file EVE_CoCmd.h.
#define FLASH_ERROR_NOTATTACHED 0xE001 |
Definition at line 631 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_ANIMDRAW.
phost | Pointer to Hal context |
ch | Channel |
Definition at line 1836 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_ANIMFRAME.
phost | Pointer to Hal context |
x | X param |
y | Y param |
aoptr | Aoptr param |
frame | Frame param |
Definition at line 1855 of file EVE_CoCmd.h.
EVE_HAL_EXPORT bool EVE_CoCmd_animStart | ( | EVE_HalContext * | phost, |
int32_t | ch, | ||
uint32_t | aoptr, | ||
uint32_t | loop | ||
) |
Send CMD_ANIMSTART.
phost | Pointer to Hal context |
ch | Channel |
aoptr | The address of the animation object in flash memory |
loop | Loop flags |
Definition at line 526 of file EVE_CoCmd.c.
|
inlinestatic |
Send CMD_ANIMSTOP.
phost | Pointer to Hal context |
ch | Channel |
Definition at line 1810 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_ANIMXY.
phost | Pointer to Hal context |
ch | Channel |
x | X screen |
y | Y screen |
Definition at line 1824 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_APPEND.
phost | Pointer to Hal context |
ptr | Start of source commands in main memory |
num | Number of bytes to copy. This must be a multiple of 4 |
Definition at line 481 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_APPENDF.
phost | Pointer to Hal context |
ptr | Start of source commands in flash memory. Must be 64-byte aligned |
num | Number of bytes to copy. This must be a multiple of 4 |
Definition at line 794 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_BGCOLOR.
phost | Pointer to Hal context |
c | New background color |
Definition at line 935 of file EVE_CoCmd.h.
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
phost | Pointer to Hal context |
x0 | Point X0 screen coordinate, in pixels |
y0 | Point Y0 screen coordinate, in pixels |
x1 | Point X1 screen coordinate, in pixels |
y1 | Point Y1 screen coordinate, in pixels |
x2 | Point X2 screen coordinate, in pixels |
y2 | Point Y2 screen coordinate, in pixels |
tx0 | Point X0 bitmap coordinate, in pixels |
ty0 | Point Y0 bitmap coordinate, in pixels |
tx1 | Point X1 bitmap coordinate, in pixels |
ty1 | Point Y1 bitmap coordinate, in pixels |
tx2 | Point X2 bitmap coordinate, in pixels |
ty2 | Point Y2 bitmap coordinate, in pixels |
result | Optional parameter result is set to -1 on success, 0 on failure |
Definition at line 34 of file EVE_CoCmd_State.c.
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.
phost | Pointer to Hal context |
x | x-coordinate of button top-left, in pixels |
y | y-coordinate of button top-left, in pixels |
w | Button width |
h | Button height |
font | font to use for text, 0-31 |
options | Font option |
s | Button label text, UTF-8 encoding |
... | Format of button label text, like printf |
Definition at line 154 of file EVE_CoCmd_Widgets.c.
EVE_HAL_EXPORT uint32_t EVE_CoCmd_calibrate | ( | EVE_HalContext * | phost | ) |
Send CMD_CALIBRATE.
phost | Pointer to Hal context |
Definition at line 500 of file EVE_CoCmd.c.
|
inlinestatic |
Send CMD_CLEARCACHE.
phost | Pointer to Hal context |
Definition at line 244 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_CLOCK.
phost | Pointer to Hal context |
x | x-coordinate of clock center, in pixels |
y | y-coordinate of clock center, in pixels |
r | Clock radius |
options | Drawing option |
h | hours |
m | minutes |
s | seconds |
ms | milliseconds |
Definition at line 1537 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_COLDSTART.
phost | Pointer to Hal context |
Definition at line 194 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_CSKETCH. Only exists under FT801.
phost | Pointer to Hal context |
x | x-coordinate of sketch area top-left, in pixels |
y | y-coordinate of sketch area top-left, in pixels |
w | Width of sketch area, in pixels |
h | Height of sketch area, in pixels |
ptr | Base address of sketch bitmap |
format | Format of sketch bitmap, either L1 or L8 |
freq | Deprecated |
Definition at line 1735 of file EVE_CoCmd.h.
EVE_HAL_EXPORT void EVE_CoCmd_d | ( | EVE_HalContext * | phost, |
uint32_t | cmd | ||
) |
Definition at line 39 of file EVE_CoCmd.c.
EVE_HAL_EXPORT void EVE_CoCmd_dd | ( | EVE_HalContext * | phost, |
uint32_t | cmd, | ||
uint32_t | d0 | ||
) |
Definition at line 49 of file EVE_CoCmd.c.
EVE_HAL_EXPORT void EVE_CoCmd_ddd | ( | EVE_HalContext * | phost, |
uint32_t | cmd, | ||
uint32_t | d0, | ||
uint32_t | d1 | ||
) |
Definition at line 62 of file EVE_CoCmd.c.
EVE_HAL_EXPORT void EVE_CoCmd_dddd | ( | EVE_HalContext * | phost, |
uint32_t | cmd, | ||
uint32_t | d0, | ||
uint32_t | d1, | ||
uint32_t | d2 | ||
) |
Definition at line 76 of file EVE_CoCmd.c.
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 | ||
) |
Definition at line 91 of file EVE_CoCmd.c.
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 | ||
) |
Definition at line 141 of file EVE_CoCmd.c.
EVE_HAL_EXPORT void EVE_CoCmd_ddww | ( | EVE_HalContext * | phost, |
uint32_t | cmd, | ||
uint32_t | d0, | ||
uint16_t | w1, | ||
uint16_t | w2 | ||
) |
Definition at line 107 of file EVE_CoCmd.c.
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 | ||
) |
Definition at line 123 of file EVE_CoCmd.c.
|
inlinestatic |
Send CMD_DIAL.
phost | Pointer to Hal context |
x | x-coordinate of dial center, in pixels |
y | y-coordinate of dial center, in pixels |
r | radius of dial, in pixels. |
options | Drawing option |
val | Specify the position of dial points by setting value between 0 and 65535 inclusive. 0 means that the dial points straight down, 0x4000 left, 0x8000 up, and0xc000 right. |
Definition at line 1563 of file EVE_CoCmd.h.
|
inlinestatic |
Write a display list instruction.
Example: EVE_CoCmd_dl(DISPLAY());.
phost | Pointer to Hal context |
dl | display list instruction |
Definition at line 117 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_DLSTART.
phost | Pointer to Hal context |
Definition at line 159 of file EVE_CoCmd.h.
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 | ||
) |
Definition at line 161 of file EVE_CoCmd.c.
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 | ||
) |
Definition at line 178 of file EVE_CoCmd.c.
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 | ||
) |
Definition at line 240 of file EVE_CoCmd.c.
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 | ||
) |
Definition at line 276 of file EVE_CoCmd.c.
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 | ||
) |
Definition at line 198 of file EVE_CoCmd.c.
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 | ||
) |
Definition at line 219 of file EVE_CoCmd.c.
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 | ||
) |
Definition at line 257 of file EVE_CoCmd.c.
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 | ||
) |
Definition at line 294 of file EVE_CoCmd.c.
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 | ||
) |
Definition at line 316 of file EVE_CoCmd.c.
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 | ||
) |
Definition at line 338 of file EVE_CoCmd.c.
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 | ||
) |
Definition at line 359 of file EVE_CoCmd.c.
|
inlinestatic |
Send CMD_FGCOLOR.
phost | Pointer to Hal context |
c | New foreground color, as a 24-bit RGB number |
Definition at line 957 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_FILLWIDTH.
phost | Pointer to Hal context |
s | line fill width, in pixels |
Definition at line 1238 of file EVE_CoCmd.h.
EVE_HAL_EXPORT uint32_t EVE_CoCmd_flashAttach | ( | EVE_HalContext * | phost | ) |
Attach flash.
phost | Pointer to Hal context |
Definition at line 208 of file EVE_CoCmd_IO.c.
|
inlinestatic |
Send CMD_FLASHDETACH.
phost | Pointer to Hal context |
Definition at line 715 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_FLASHERASE.
phost | Pointer to Hal context |
Definition at line 644 of file EVE_CoCmd.h.
EVE_HAL_EXPORT bool EVE_CoCmd_flashErase_flush | ( | EVE_HalContext * | phost | ) |
Send CMD_FLASHERASE. Wait for completion.
phost | Pointer to Hal context |
Definition at line 181 of file EVE_CoCmd_IO.c.
EVE_HAL_EXPORT uint32_t EVE_CoCmd_flashFast | ( | EVE_HalContext * | phost, |
uint32_t * | result | ||
) |
Enter fast flash state.
Enter fast flash state. Returns new FLASH_STATUS. Optional parameter result
will contain any error code, 0 on success
0xE001 flash is not attached
0xE002 no header detected in sector 0 - is flash blank?
0xE003 sector 0 data failed integrity check
0xE004 device/blob mismatch - was correct blob loaded?
0xE005 failed full-speed test - check board wiring
phost | Pointer to Hal context |
result |
Definition at line 228 of file EVE_CoCmd_IO.c.
|
inlinestatic |
Read from Flash to RAM_G. Call EVE_Cmd_waitFlush to wait for completion.
phost | Pointer to Hal context |
dest | destination address in main memory. Must be 4-byte aligned |
src | source address in flash memory. Must be 64-byte aligned |
num | number of bytes to read, must be multiple of 4 |
Definition at line 679 of file EVE_CoCmd.h.
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.
phost | Pointer to Hal context |
dest | destination address in main memory. Must be 4-byte aligned |
src | source address in flash memory. Must be 64-byte aligned |
num | number of bytes to read, must be multiple of 4 |
Definition at line 193 of file EVE_CoCmd_IO.c.
|
inlinestatic |
Send CMD_FLASHSOURCE.
phost | Pointer to Hal context |
ptr | flash address, must be 64-byte aligned |
Definition at line 781 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_FLASHSPIDESEL.
phost | Pointer to Hal context |
Definition at line 744 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_FLASHSPIRX.
phost | Pointer to Hal context |
ptr | destination address in main memory |
num | number of bytes to receive |
Definition at line 769 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_FLASHSPITX. Must follow data.
phost | Pointer to Hal context |
num | number of bytes to transmit |
Definition at line 756 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_FLASHUPDATE. This command must be followed by the data to write.
phost | Pointer to Hal context |
dest | destination address in flash memory. Must be 4096-byte aligned |
src | source data in main memory. Must be 4-byte aligned |
num | number of bytes to write, must be multiple of 4096 |
Definition at line 704 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_FLASHWRITE. This command must be followed by the data to write.
phost | Pointer to Hal context |
ptr | destination address in flash memory. Must be 256-byte aligned |
num | number of bytes to write, must be multiple of 256 |
Definition at line 665 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_GAUGE.
phost | Pointer to Hal context |
x | x-coordinate of gauge center, in pixels |
y | y-coordinate of gauge center, in pixels |
r | radius of the gauge, in pixels |
options | Drawing option |
major | Number of major subdivisions on the dial, 1-10 |
minor | Number of minor subdivisions on the dial, 1-10 |
val | gauge indicated value, between 0 and range, inclusive |
range | maximum value |
Definition at line 1505 of file EVE_CoCmd.h.
EVE_HAL_EXPORT bool EVE_CoCmd_getMatrix | ( | EVE_HalContext * | phost, |
int32_t * | m | ||
) |
Send CMD_GETMATRIX.
phost | Pointer to Hal context |
m | output parameters; 6 values; written with matrix coeffcients a, b, c, d, e, f |
Definition at line 391 of file EVE_CoCmd.c.
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.
phost | Pointer to Hal context |
ptr | Source address of bitmap |
w | Width of bitmap, in pixels |
h | Height of bitmap, in pixels |
Definition at line 150 of file EVE_CoCmd_IO.c.
EVE_HAL_EXPORT bool EVE_CoCmd_getPtr | ( | EVE_HalContext * | phost, |
uint32_t * | result | ||
) |
Get the end memory address of data inflated by CMD_INFLATE.
phost | Pointer to Hal context |
result | memory address |
Get the end memory address of data inflated by CMD_INFLATE.
Definition at line 104 of file EVE_CoCmd_IO.c.
|
inlinestatic |
Send CMD_GRADCOLOR.
phost | Pointer to Hal context |
c | New highlight gradient color, as a 24-bit RGB number |
Definition at line 1107 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_GRADIENT.
phost | Pointer to Hal context |
x0 | x-coordinate of point 0, in pixels |
y0 | y-coordinate of point 0, in pixels |
rgb0 | Color of point 0, as a 24-bit RGB number |
x1 | x-coordinate of point 1, in pixels |
y1 | y-coordinate of point 1, in pixels |
rgb1 | Color of point 1 |
Definition at line 1275 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_GRADIENTA.
phost | Pointer to Hal context |
x0 | x-coordinate of point 0, in pixels |
y0 | y-coordinate of point 0, in pixels |
argb0 | Color of point 0, as a 24-bit RGB number |
x1 | x-coordinate of point 1, in pixels |
y1 | y-coordinate of point 1, in pixels |
argb1 | Color of point 1 |
Definition at line 1604 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_INFLATE. Data must follow this command.
phost | Pointer to Hal context |
ptr | Destination address |
Definition at line 503 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_INFLATE2.
phost | Pointer to Hal context |
ptr | Destination address |
options | OPT_MEDIAFIFO or OPT_FLASH or 0 |
Definition at line 863 of file EVE_CoCmd.h.
EVE_HAL_EXPORT bool EVE_CoCmd_inflate_flash | ( | EVE_HalContext * | phost, |
uint32_t | dst, | ||
uint32_t | src | ||
) |
Inflates data from Flash to RAM_G.
phost | Pointer to Hal context |
dst | Image location on flash |
src | Destination on RAM_G |
Definition at line 295 of file EVE_CoCmd_IO.c.
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.
phost | Pointer to Hal context |
dst | Image address |
src | Desination on RAM_G |
size | size of src in bytes |
Definition at line 85 of file EVE_CoCmd_IO.c.
|
inlinestatic |
Send CMD_INTERRUPT.
phost | Pointer to Hal context |
ms | Delay before interrupt triggers, in milliseconds. The interrupt is guaranteed not to fire before this delay. If ms is zero, the interrupt fires immediately |
Definition at line 184 of file EVE_CoCmd.h.
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.
phost | Pointer to Hal context |
x | x-coordinate of keys top-left, in pixels |
y | y-coordinate of keys top-left, in pixels |
w | Keys width |
h | Keys height |
font | Font for keys label |
options | Drawing option |
s | key labels, one character per key |
Definition at line 199 of file EVE_CoCmd_Widgets.c.
|
inlinestatic |
Send CMD_LOADIDENTITY.
phost | Pointer to Hal context |
Definition at line 998 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_LOADIMAGE. Data must follow this command.
phost | Pointer to Hal context |
ptr | Destination address |
options | Command option |
Definition at line 534 of file EVE_CoCmd.h.
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.
phost | Pointer to Hal context |
dst | Image location on flash |
src | Destination on RAM_G |
format | Output parameter format returns loaded bitmap format on success |
Definition at line 270 of file EVE_CoCmd_IO.c.
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.
phost | Pointer to Hal context |
dst | Image address |
src | Desination on RAM_G |
size | size of src in bytes |
format | Output parameter format returns loaded bitmap format on success |
Definition at line 128 of file EVE_CoCmd_IO.c.
|
inlinestatic |
Send CMD_LOGO.
phost | Pointer to Hal context |
Definition at line 1714 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_MEDIAFIFO. See EVE_MediaFifo interface for easier FIFO access.
phost | Pointer to Hal context |
ptr | starting address of the memory block, 4-byte aligned |
size | number of bytes in the source memory block, 4-byte aligned |
Definition at line 588 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_MEMCPY.
phost | Pointer to Hal context |
dest | address of the destination memory block |
src | address of the source memory block |
num | number of bytes to copy |
Definition at line 465 of file EVE_CoCmd.h.
EVE_HAL_EXPORT bool EVE_CoCmd_memCrc | ( | EVE_HalContext * | phost, |
uint32_t | ptr, | ||
uint32_t | num, | ||
uint32_t * | result | ||
) |
Send CMD_MEMCRC.
phost | Pointer to Hal context |
ptr | starting address of the memory block |
num | number of bytes in the source memory block |
result | output parameter; written with the CRC-32 after command execution |
Definition at line 34 of file EVE_CoCmd_IO.c.
|
inlinestatic |
Send CMD_MEMSET.
phost | Pointer to Hal context |
ptr | starting address of the memory block |
value | value to be written to memory |
num | number of bytes in the memory block |
Definition at line 431 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_MEMWRITE.
You must write the specified number of bytes using one or more of any EVE_Cmd_wr... function call after calling this command, and pad the written data to align at 4 bytes
phost | Pointer to Hal context |
ptr | Destination on RAM_G |
num | number of bytes to copy |
Definition at line 398 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_MEMWRITE, followed by a single 32-bit value.
Convenience function to write one 32-bit value through the coprocessor. Useful in combination with EVE_Cmd_waitRead32 to add synchronization points into the command buffer.
phost | Pointer to Hal context |
ptr | Destination on RAM_G |
value | Value to write |
Definition at line 413 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_MEMZERO.
phost | Pointer to Hal context |
ptr | Destination on RAM_G |
num | number of bytes to clear |
Definition at line 447 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_NOP.
phost | Pointer to Hal context |
Definition at line 255 of file EVE_CoCmd.h.
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.
phost | Pointer to Hal context |
x | x-coordinate of text base, in pixels |
y | y-coordinate of text base, in pixels |
font | font to use for text, 0-31 |
options | Drawing option |
n | The number to display, either unsigned or signed 32-bit |
Definition at line 277 of file EVE_CoCmd_Widgets.c.
|
inlinestatic |
Send CMD_PLAYVIDEO.
phost | Pointer to Hal context |
options | Command option |
Definition at line 1762 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_PROGRESS.
phost | Pointer to Hal context |
x | x-coordinate of progress bar top-left, in pixels |
y | y-coordinate of progress bar top-left, in pixels |
w | width of progress bar, in pixels |
h | height of progress bar, in pixels |
options | Drawing option |
val | Displayed value of progresss bar, between 0 and range inclusive |
range | Maximum value |
Definition at line 1396 of file EVE_CoCmd.h.
EVE_HAL_EXPORT bool EVE_CoCmd_regRead | ( | EVE_HalContext * | phost, |
uint32_t | ptr, | ||
uint32_t * | result | ||
) |
Send CMD_REGREAD.
phost | Pointer to Hal context |
ptr | address of register to read |
result | output parameter; written with the register value |
Definition at line 60 of file EVE_CoCmd_IO.c.
|
inlinestatic |
Send CMD_RESETFONT.
phost | Pointer to Hal context |
Definition at line 1226 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_ROMFONT.
phost | Pointer to Hal context |
font | Font number |
romslot | Slot number |
Definition at line 1166 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_ROTATE.
phost | Pointer to Hal context |
a | clockwise rotation angle, in units of 1/65536 of a circle |
Definition at line 1056 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_ROTATEAROUND.
phost | Pointer to Hal context |
x | center of rotation/scaling, x-coordinate |
y | center of rotation/scaling, y-coordinate |
a | clockwise rotation angle, in units of 1/65536 of a circle |
s | scale factor, in signed 16.16 bit fixed-point form |
Definition at line 1211 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_SCALE.
phost | Pointer to Hal context |
sx | x scale factor, in signed 16.16 bit fixed-point form |
sy | y scale factor, in signed 16.16 bit fixed-point form |
Definition at line 1038 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_SCREENSAVER.
phost | Pointer to Hal context |
Definition at line 1680 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_SCROLLBAR.
phost | Pointer to Hal context |
x | x-coordinate of scroll bar top-left, in pixels |
y | y-coordinate of scroll bar top-left, in pixels |
w | width of scroll bar, in pixels. If width is greater, the scroll bar is drawn horizontally |
h | height of scroll bar, in pixels. If height is greater, the scroll bar is drawn vertically |
options | By default the scroll bar is drawn with a 3D effect. OPT FLAT removes the 3D effect |
val | Displayed value of scroll bar, between 0 and range inclusive |
size | Scrol bar size |
range | Maximum value |
Definition at line 1458 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_SETBASE.
phost | Pointer to Hal context |
base | Numeric base, from 2 to 36 |
Definition at line 1123 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_SETBITMAP.
phost | Pointer to Hal context |
source | Source address for bitmap, in RAM or flash, as a BITMAP SOURCEargument |
fmt | Bitmap format |
w | Bitmap screen width in pixels |
h | Bitmap screen height in pixels |
Definition at line 1184 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_SETFONT.
phost | Pointer to Hal context |
font | bitmap handle number, 0-31 |
ptr | pointer to font description block |
Definition at line 1093 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_SETFONT2.
phost | Pointer to Hal context |
font | bitmap handle number, 0-31 |
ptr | pointer to font description block |
firstchar | first character in the font. For an extended font block, this should be zero |
Definition at line 1137 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_SETMATRIX.
phost | Pointer to Hal context |
Definition at line 1072 of file EVE_CoCmd.h.
EVE_HAL_EXPORT void EVE_CoCmd_setRotate | ( | EVE_HalContext * | phost, |
uint32_t | r | ||
) |
CMD_SETROTATE.
phost | Pointer to Hal context |
r | new rotation value 0-7 |
Definition at line 419 of file EVE_CoCmd.c.
|
inlinestatic |
Send CMD_SETSCRATCH.
phost | Pointer to Hal context |
handle | bitmap handle number, 0-31 |
Definition at line 1152 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_SKETCH.
phost | Pointer to Hal context |
x | x-coordinate of sketch area top-left, in pixels |
y | y-coordinate of sketch area top-left, in pixels |
w | Width of sketch area, in pixels |
h | Height of sketch area, in pixels |
ptr | Base address of sketch bitmap |
format | Format of sketch bitmap, either L1 or L8 |
Definition at line 1700 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_SLIDER.
phost | Pointer to Hal context |
x | x-coordinate of slider top-left, in pixels |
y | y-coordinate of slider top-left, in pixels |
w | width of slider, in pixels |
h | height of slider, in pixels |
options | By default the slider is drawn with a 3D effect. OPT_FLAT removes the 3D effect |
val | Displayed value of slider, between 0 and range inclusive |
range | Maximum value |
Definition at line 1426 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_SNAPSHOT.
phost | Pointer to Hal context |
ptr | Snapshot destination address, in RAM_G |
Definition at line 492 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_SNAPSHOT2.
phost | Pointer to Hal context |
fmt | Output bitmap format, one of RGB565, ARGB4 or 0x20 |
ptr | Snapshot destination address, in RAM_G |
x | x-coordinate of snapshot area top-left, in pixels |
y | y-coordinate of snapshot area top-left, in pixels |
w | width of snapshot area, in pixels |
h | height of snapshot area, in pixels |
Definition at line 575 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_SPINNER.
phost | Pointer to Hal context |
x | The X coordinate of top left of spinner |
y | The Y coordinate of top left of spinner |
style | The style of spinner. Valid range is from 0 to 3 |
scale | The scaling coefficient of spinner. 0 means no scaling |
Definition at line 1641 of file EVE_CoCmd.h.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Send CMD_SYNC.
phost | Pointer to Hal context |
Definition at line 225 of file EVE_CoCmd.h.
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.
phost | Pointer to Hal context |
x | x-coordinate of text base, in pixels |
y | y-coordinate of text base, in pixels |
font | Font to use for text, 0-31 |
options | Text option |
s | Text string, UTF-8 encoding |
... | Text format |
Definition at line 63 of file EVE_CoCmd_Widgets.c.
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.
phost | Pointer to Hal context |
x | x-coordinate of text base, in pixels |
y | y-coordinate of text base, in pixels |
font | Font to use for text, 0-31 |
options | Text option |
bottom | |
baseLine | |
capsHeight | |
xOffset | |
s | Text string, UTF-8 encoding |
Definition at line 136 of file EVE_CoCmd_Widgets.c.
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.
phost | Pointer to Hal context |
x | x-coordinate of text base, in pixels |
y | y-coordinate of text base, in pixels |
font | Font to use for text, 0-31 |
options | Text option |
s | Text string, UTF-8 encoding |
length | length of text |
Definition at line 108 of file EVE_CoCmd_Widgets.c.
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.
phost | Pointer to Hal context |
x | x-coordinate of top-left of toggle, in pixels |
y | y-coordinate of top-left of toggle, in pixels |
w | width of toggle, in pixels |
font | font to use for text, 0-31 |
options | Drawing option |
state | state of the toggle: 0 is off, 65535 is on. |
s | string labels for toggle,UTF-8 encoding |
... | string labels format |
Definition at line 229 of file EVE_CoCmd_Widgets.c.
|
inlinestatic |
Send CMD_TRACK.
phost | Pointer to Hal context |
x | x-coordinate of track area top-left, in pixels |
y | y-coordinate of track area top-left, in pixels |
w | width of track area, in pixels |
h | height of track area, in pixels |
tag | tag for this track, 1-255 |
Definition at line 1670 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_TRANSLATE.
phost | Pointer to Hal context |
tx | x scale factor, in signed 16.16 bit fixed-point form. |
ty | y scale factor, in signed 16.16 bit fixed-point form. |
Definition at line 1018 of file EVE_CoCmd.h.
|
inlinestatic |
CMD_VIDEOFRAME.
phost | Pointer to Hal context |
dst | Main memory location to load the frame data |
ptr | Completion pointer |
Definition at line 612 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_VIDEOSTART.
phost | Pointer to Hal context |
Definition at line 599 of file EVE_CoCmd.h.
|
inlinestatic |
Send CMD_VIDEOSTARTF.
phost | Pointer to Hal context |
Definition at line 805 of file EVE_CoCmd.h.
EVE_HAL_EXPORT void EVE_CoDlImpl_resetCoState | ( | EVE_HalContext * | phost | ) |
Definition at line 83 of file EVE_CoDl.c.
EVE_HAL_EXPORT void EVE_CoDlImpl_resetDlState | ( | EVE_HalContext * | phost | ) |
Definition at line 38 of file EVE_CoDl.c.