Eve_Hal framework APIs for loading file. More...
#include "EVE_Platform.h"
Go to the source code of this file.
Functions | |
EVE_HAL_EXPORT bool | EVE_Util_loadSdCard (EVE_HalContext *phost) |
Mount the SDcard. | |
EVE_HAL_EXPORT bool | EVE_Util_sdCardReady (EVE_HalContext *phost) |
EVE_HAL_EXPORT bool | EVE_Util_loadRawFile (EVE_HalContext *phost, uint32_t address, const char *filename) |
Load a raw file into RAM_G. | |
EVE_HAL_EXPORT bool | EVE_Util_loadInflateFile (EVE_HalContext *phost, uint32_t address, const char *filename) |
Load file into RAM_G by CMD_INFLATE. | |
EVE_HAL_EXPORT bool | EVE_Util_loadImageFile (EVE_HalContext *phost, uint32_t address, const char *filename, uint32_t *format) |
Load image into RAM_G. | |
EVE_HAL_EXPORT bool | EVE_Util_loadCmdFile (EVE_HalContext *phost, const char *filename, uint32_t *transfered) |
EVE_HAL_EXPORT size_t | EVE_Util_readFile (EVE_HalContext *phost, uint8_t *buffer, size_t size, const char *filename) |
EVE_HAL_EXPORT bool | EVE_Util_loadMediaFile (EVE_HalContext *phost, const char *filename, uint32_t *transfered) |
EVE_HAL_EXPORT void | EVE_Util_closeFile (EVE_HalContext *phost) |
Eve_Hal framework APIs for loading file.
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_LoadFile.h.
EVE_HAL_EXPORT void EVE_Util_closeFile | ( | EVE_HalContext * | phost | ) |
Definition at line 555 of file EVE_LoadFile_FATFS.c.
EVE_HAL_EXPORT bool EVE_Util_loadCmdFile | ( | EVE_HalContext * | phost, |
const char * | filename, | ||
uint32_t * | transfered | ||
) |
Load a file into the coprocessor FIFO
Definition at line 334 of file EVE_LoadFile_FATFS.c.
EVE_HAL_EXPORT bool EVE_Util_loadImageFile | ( | EVE_HalContext * | phost, |
uint32_t | address, | ||
const char * | filename, | ||
uint32_t * | format | ||
) |
Load image into RAM_G.
Load a file using CMD_LOADIMAGE. The image format is provided as output to the optional format argument
phost | Pointer to Hal context |
address | Address in RAM_G |
filename | File to load |
format | Target format of image |
Definition at line 270 of file EVE_LoadFile_FATFS.c.
EVE_HAL_EXPORT bool EVE_Util_loadInflateFile | ( | EVE_HalContext * | phost, |
uint32_t | address, | ||
const char * | filename | ||
) |
Load file into RAM_G by CMD_INFLATE.
phost | Pointer to Hal context |
address | Address to write |
filename | File to load |
Definition at line 207 of file EVE_LoadFile_FATFS.c.
EVE_HAL_EXPORT bool EVE_Util_loadMediaFile | ( | EVE_HalContext * | phost, |
const char * | filename, | ||
uint32_t * | transfered | ||
) |
Load a file into the media FIFO. If transfered is set, the file may be streamed partially, and will be kept open until EVE_Util_closeFile is called, and stop once the coprocessor has processed it. Filename may be omitted in subsequent calls
Definition at line 432 of file EVE_LoadFile_FATFS.c.
EVE_HAL_EXPORT bool EVE_Util_loadRawFile | ( | EVE_HalContext * | phost, |
uint32_t | address, | ||
const char * | filename | ||
) |
Load a raw file into RAM_G.
phost | Pointer to Hal context |
address | Address in RAM_G |
filename | File to load |
Definition at line 148 of file EVE_LoadFile_FATFS.c.
EVE_HAL_EXPORT bool EVE_Util_loadSdCard | ( | EVE_HalContext * | phost | ) |
Mount the SDcard.
Load SD card
phost | Pointer to Hal context |
Definition at line 98 of file EVE_LoadFile_FATFS.c.
EVE_HAL_EXPORT size_t EVE_Util_readFile | ( | EVE_HalContext * | phost, |
uint8_t * | buffer, | ||
size_t | size, | ||
const char * | filename | ||
) |
Read a file into a buffer, returns the number of bytes read
Definition at line 387 of file EVE_LoadFile_FATFS.c.
EVE_HAL_EXPORT bool EVE_Util_sdCardReady | ( | EVE_HalContext * | phost | ) |
Definition at line 129 of file EVE_LoadFile_FATFS.c.