|
AM243x Motor Control SDK
09.00.00
|
|
Go to the documentation of this file.
48 #include "../dcl_common.h"
72 #define DCL_clearError(ptr) ((ptr)->css->err = dcl_none)
79 #define DCL_setError(ptr,code) ((ptr)->css->err |= code)
85 #define DCL_getErrorLine(ptr) ((ptr)->css->err_line = ((ptr)->css->err) ? __LINE__ : 0)
91 #define DCL_getErrorFunc(ptr) ((ptr)->css->err_func = ((ptr)->css->err) ? __FUNCTION__ : NULL)
97 #define DCL_getErrorInfo(ptr) \
99 DCL_getErrorLine(ptr); \
100 DCL_getErrorFunc(ptr); \
107 #define DCL_runErrorHandler(ptr) \
109 if(dcl_none != ptr->css->err)\
111 DCL_setBreakPoint(); \
112 DCL_clearError(ptr); \
122 #endif // _DCL_ERROR_H_
@ dcl_param_warn_err
Parameter warning.
Definition: dcl_error.h:60
@ dcl_param_range_err
Parameter range exceeded.
Definition: dcl_error.h:58
dcl_error_codes
Defines the library enumerated error codes. These will be applied as bit masks in the error handler.
Definition: dcl_error.h:56
@ dcl_none
No error.
Definition: dcl_error.h:57
@ dcl_overflow_err
Numerical overflow.
Definition: dcl_error.h:62
@ dcl_timing_err
Timing error.
Definition: dcl_error.h:65
@ dcl_param_invalid_err
Parameter not valid.
Definition: dcl_error.h:59
@ dcl_underflow_err
Numerical underflow
Definition: dcl_error.h:63
@ dcl_controller_err
Controller operation not completed.
Definition: dcl_error.h:64
@ dcl_input_range_err
Input range exceeded.
Definition: dcl_error.h:61