hal_gfx_error.h
Go to the documentation of this file.
1 
2 /** @addtogroup GRAPHICS_SDK Graphics
3  * @{
4  */
5 
6 /** @defgroup HAL_GFX_ERROR Hal gfx error
7  * @brief GPU error code define.
8  * @{
9  */
10 #ifndef HAL_GFX_ERROR_H__
11 #define HAL_GFX_ERROR_H__
12 
13 #include "hal_gfx_sys_defs.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 /**
20  * @defgroup HAL_GFX_ERROR_MACRO Defines
21  * @{
22  */
23 #define HAL_GFX_ERR_NO_ERROR (0x00000000U) /**< No error has occured */
24 #define HAL_GFX_ERR_SYS_INIT_FAILURE (0x00000001U) /**< System initialization failure */
25 #define HAL_GFX_ERR_GPU_ABSENT (0x00000002U) /**< Nema GPU is absent */
26 #define HAL_GFX_ERR_RB_INIT_FAILURE (0x00000004U) /**< Ring buffer initialization failure */
27 #define HAL_GFX_ERR_NON_EXPANDABLE_CL_FULL (0x00000008U) /**< Non expandable command list is full*/
28 #define HAL_GFX_ERR_CL_EXPANSION (0x00000010U) /**< Command list expansion error */
29 #define HAL_GFX_ERR_OUT_OF_GFX_MEMORY (0x00000020U) /**< Graphics memory is full */
30 #define HAL_GFX_ERR_OUT_OF_HOST_MEMORY (0x00000040U) /**< Host memory is full */
31 #define HAL_GFX_ERR_NO_BOUND_CL (0x00000080U) /**< There is no bound command list */
32 #define HAL_GFX_ERR_NO_BOUND_FONT (0x00000100U) /**< There is no bound font */
33 #define HAL_GFX_ERR_GFX_MEMORY_INIT (0x00000200U) /**< Graphics memory initialization failure */
34 #define HAL_GFX_ERR_DRIVER_FAILURE (0x00000400U) /**< Nema GPU Kernel Driver failure*/
35 #define HAL_GFX_ERR_MUTEX_INIT (0x00000800U) /**< Mutex initialization failure*/
36 #define HAL_GFX_ERR_INVALID_BO (0x00001000U) /**< Invalid buffer provided*/
37 #define HAL_GFX_ERR_INVALID_CL (0x00002000U) /**< Invalid CL provided*/
38 
39 /** @} */
40 
41 /**
42  * @defgroup HAL_GFX_ERROR_FUNCTION Functions
43  * @{
44  */
45 /**
46  *****************************************************************************************
47  * @brief Return Error Id
48  *
49  * @return 0 if no error exists
50  *****************************************************************************************
51  */
52 uint32_t hal_gfx_get_error(void);
53 /** @} */
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #endif
60 /** @} */
61 /** @} */
62 
hal_gfx_get_error
uint32_t hal_gfx_get_error(void)
Return Error Id.
hal_gfx_sys_defs.h