EVE HAL framework utilities. More...
#include "EVE_HalDefs.h"
Go to the source code of this file.
Data Structures | |
struct | EVE_BootupParameters |
struct | EVE_ConfigParameters |
Typedefs | |
typedef struct EVE_BootupParameters | EVE_BootupParameters |
typedef struct EVE_ConfigParameters | EVE_ConfigParameters |
typedef enum EVE_DISPLAY_T | EVE_DISPLAY_T |
EVE HAL framework utilities.
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_Util.h.
typedef struct EVE_BootupParameters EVE_BootupParameters |
typedef struct EVE_ConfigParameters EVE_ConfigParameters |
typedef enum EVE_DISPLAY_T EVE_DISPLAY_T |
Display resolution presets.
s_DisplayResolutions
and s_DisplayNames
in EVE_Util.c around ln 50, as well as EVE_Util_configDefaults
around ln 500, when adding display presets. enum EVE_DISPLAY_T |
Display resolution presets.
s_DisplayResolutions
and s_DisplayNames
in EVE_Util.c around ln 50, as well as EVE_Util_configDefaults
around ln 500, when adding display presets. Definition at line 100 of file EVE_Util.h.
EVE_HAL_EXPORT bool EVE_Util_bootup | ( | EVE_HalContext * | phost, |
EVE_BootupParameters * | bootup | ||
) |
Boot up the device. Obtains the chip Id. Sets up clock and SPI speed.
phost | Pointer to Hal context |
bootup |
Definition at line 1121 of file EVE_Util.c.
EVE_HAL_EXPORT bool EVE_Util_bootupConfig | ( | EVE_HalContext * | phost | ) |
Bootup Coprocessor.
Calls EVE_Util_bootup and EVE_Util_config using the default parameters
phost | Pointer to Hal context |
Definition at line 1898 of file EVE_Util.c.
EVE_HAL_EXPORT bool EVE_Util_bootupConfigInteractive | ( | EVE_HalContext * | phost, |
EVE_DISPLAY_T | display | ||
) |
Calls EVE_Util_bootup and EVE_Util_config using the default parameters. Falls back to no interactivity on FT9XX platform.
Calls EVE_Util_bootup and EVE_Util_config using the default parameters. Falls back to no interactivity on FT9XX platform
phost | Pointer to Hal context |
display |
Definition at line 2582 of file EVE_Util.c.
EVE_HAL_EXPORT void EVE_Util_bootupDefaults | ( | EVE_HalContext * | phost, |
EVE_BootupParameters * | bootup | ||
) |
Get the default bootup parameters.
phost | Pointer to Hal context |
bootup |
Definition at line 282 of file EVE_Util.c.
EVE_HAL_EXPORT void EVE_Util_clearScreen | ( | EVE_HalContext * | phost | ) |
Clear the screen.
Sets the display list to a blank cleared screen.
phost | Pointer to Hal context |
Definition at line 270 of file EVE_Util.c.
EVE_HAL_EXPORT bool EVE_Util_config | ( | EVE_HalContext * | phost, |
EVE_ConfigParameters * | config | ||
) |
Boot up the device. Configures the display, resets or initializes coprocessor state.
phost | Pointer to Hal context |
config |
Definition at line 1396 of file EVE_Util.c.
EVE_HAL_EXPORT void EVE_Util_configDefaults | ( | EVE_HalContext * | phost, |
EVE_ConfigParameters * | config, | ||
EVE_DISPLAY_T | display | ||
) |
Get the default configuration parameters for the specified display.
phost | Pointer to Hal context |
config | |
display |
Definition at line 765 of file EVE_Util.c.
EVE_HAL_EXPORT bool EVE_Util_configDefaultsEx | ( | EVE_HalContext * | phost, |
EVE_ConfigParameters * | config, | ||
uint32_t | width, | ||
uint32_t | height, | ||
uint32_t | refreshRate, | ||
uint32_t | hsfWidth | ||
) |
Get the default configuration parameters for the specified display parameters.
phost | Pointer to Hal context |
config | |
width | |
height | |
refreshRate | |
hsfWidth |
Definition at line 740 of file EVE_Util.c.
EVE_HAL_EXPORT void EVE_Util_forceFault | ( | EVE_HalContext * | phost, |
const char * | err | ||
) |
Forces a coprocessor fault, useful for triggering a delayed reset (TODO: Remove this)
phost | Pointer to Hal context |
err |
Definition at line 2614 of file EVE_Util.c.
EVE_HAL_EXPORT bool EVE_Util_openDeviceInteractive | ( | EVE_HalContext * | phost, |
const wchar_t * | flashFile | ||
) |
Command line device selection utility. Provides selection of flash file, and option to write the flash file to the device. Parameter flashFile
is only relevant for Windows build. Falls back to no interactivity on FT9XX platform
phost | Pointer to Hal context |
flashFile |
Definition at line 2521 of file EVE_Util.c.
EVE_HAL_EXPORT bool EVE_Util_resetCoprocessor | ( | EVE_HalContext * | phost | ) |
Reset Coprocessor.
Resets the coprocessor. To be used after a coprocessor fault, or to exit CMD_LOGO. After a reset, flash will be in attached state (not in full speed). Coprocessor will be set to the latest API level.
phost | Pointer to Hal context |
Definition at line 1752 of file EVE_Util.c.
|
inlinestatic |
Command line device selection utility
Definition at line 178 of file EVE_Util.h.
|
inlinestatic |
Command line display selection utility
Definition at line 189 of file EVE_Util.h.
|
inlinestatic |
Definition at line 198 of file EVE_Util.h.
EVE_HAL_EXPORT void EVE_Util_shutdown | ( | EVE_HalContext * | phost | ) |
Complementary of bootup. Does not close the HAL context.
phost | Pointer to Hal context |
Definition at line 1667 of file EVE_Util.c.
|
inlinestatic |
Definition at line 209 of file EVE_Util.h.