EVE's co-processor IO commmands. More...
#include "EVE_Platform.h"
Go to the source code of this file.
EVE's co-processor IO 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_IO.c.
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.
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.
phost | Pointer to Hal context |
result |
Definition at line 228 of file EVE_CoCmd_IO.c.
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.
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 and CMD_INFLATE2 At API level 2, the allocation pointer is also advanced by:
Get the end memory address of data inflated by CMD_INFLATE.
Definition at line 104 of file EVE_CoCmd_IO.c.
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.
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.
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.
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.