Lines Matching refs:error
35 * The osal header file defines the error codes
61 * Each error code can be broken up into three fields as given below:
62 * - Type of error (2 bits): NO_ERROR: 00, WARNING: 01, FATAL_ERROR: 10
63 * - Component ID (14 bits): A unique ID which indicates which of the component generated the error
64 * - Error ID (16 bits): The specific error generated by a component
76 #define TIMM_OSAL_IS_WARNING(error) ((((error)>>30) == TIMM_OSAL_WAR) ? 1:0)
78 /** This macro tests if the provided M4OSA_ERR is a fatal error or not*/
79 #define TIMM_OSAL_IS_ERROR(error) ((((error)>>30) == TIMM_OSAL_ERR) ? 1:0)
81 /** This macro returns an error code accroding to the 3 provided fields:
82 * @arg Type: (IN) [TIMM_OSAL_U32] Type of error to put in the error code
83 * @arg compID: (IN) [TIMM_OSAL_U32] CompID to put in the error code
84 * @arg errorID: (IN) [TIMM_OSAL_U32] ErrorID to put in the error code*/
88 /** This macro extracts the 3 fields from the error:
89 * @arg error: (IN) [TIMM_OSAL_ERRORTYPE] Error code
90 * @arg type: (OUT) [TIMM_OSAL_U32] Type of error in the error code
91 * @arg compID: (OUT) [TIMM_OSAL_U32] CompID to put in the error code
92 * @arg errorID: (OUT) [TIMM_OSAL_U32] ErrorID to put in the error code*/
93 #define TIMM_OSAL_ERR_SPLIT(error, type, compID, errorID)\
94 { type=(TIMM_OSAL_U32)((error)>>30);\
95 compID=(TIMM_OSAL_U32)(((error)>>16)&0x003FFF);\
96 (TIMM_OSAL_U32)(errorID=(error)&0x00FFFF); }
106 /* Definition of common error codes */
107 /** there is no error*/