|
AM263x Motor Control SDK
09.02.00
|
|
Go to the documentation of this file.
48 #include "../dcl_common.h"
55 typedef enum dcl_error_codes
73 #define DCL_clearError(ptr) ((ptr)->css->err = dcl_none)
80 #define DCL_setError(ptr,code) ((ptr)->css->err |= code)
86 #define DCL_getErrorLine(ptr) ((ptr)->css->err_line = ((ptr)->css->err) ? __LINE__ : 0)
92 #define DCL_getErrorFunc(ptr) ((ptr)->css->err_func = ((ptr)->css->err) ? __FUNCTION__ : NULL)
98 #define DCL_getErrorInfo(ptr) \
100 DCL_getErrorLine(ptr); \
101 DCL_getErrorFunc(ptr); \
108 #define DCL_runErrorHandler(ptr) \
110 if(ptr->css->err != dcl_none)\
112 DCL_setBreakPoint(); \
113 DCL_clearError(ptr); \
123 #endif // _DCL_ERROR_H_
@ dcl_none
No error.
Definition: dcl_error.h:57
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_controller_err
Controller operation not completed.
Definition: dcl_error.h:64
@ dcl_timing_err
Timing error.
Definition: dcl_error.h:65
@ dcl_underflow_err
Numerical underflow
Definition: dcl_error.h:63
@ dcl_param_range_err
Parameter range exceeded.
Definition: dcl_error.h:58
@ dcl_param_warn_err
Parameter warning.
Definition: dcl_error.h:60
@ dcl_input_range_err
Input range exceeded.
Definition: dcl_error.h:61
@ dcl_param_invalid_err
Parameter not valid.
Definition: dcl_error.h:59
@ dcl_comp_err
Computation error.
Definition: dcl_error.h:66
@ dcl_overflow_err
Numerical overflow.
Definition: dcl_error.h:62