AM243x Motor Control SDK  09.02.00

Introduction

Defines all error handling strctures and macro.

Go to the source code of this file.

Macros

#define DCL_clearError(ptr)   ((ptr)->css->err = dcl_none)
 Macro to clear stored error code in CSS. More...
 
#define DCL_setError(ptr, code)   ((ptr)->css->err |= code)
 Macro to set error code in CSS. More...
 
#define DCL_getErrorLine(ptr)   ((ptr)->css->err_line = ((ptr)->css->err) ? __LINE__ : 0)
 Macro to store line location of error in CSS. More...
 
#define DCL_getErrorFunc(ptr)   ((ptr)->css->err_func = ((ptr)->css->err) ? __FUNCTION__ : NULL)
 Macro to store function location of error in CSS. More...
 
#define DCL_getErrorInfo(ptr)
 Macro to store error info in CSS. More...
 
#define DCL_runErrorHandler(ptr)
 Prototype for basic error handler. More...
 

Enumerations

enum  DCL_error_codes {
  dcl_none = 0U, dcl_param_range_err = (1U << 0), dcl_param_invalid_err = (1U << 1), dcl_param_warn_err = (1U << 2),
  dcl_input_range_err = (1U << 3), dcl_overflow_err = (1U << 4), dcl_underflow_err = (1U << 5), dcl_controller_err = (1U << 6),
  dcl_timing_err = (1U << 7), dcl_comp_err = (1U << 8)
}
 Defines the library enumerated error codes. These will be applied as bit masks in the error handler. More...