|
AM243x Motor Control SDK
09.00.00
|
|
Go to the documentation of this file.
57 typedef struct dcl_css {
60 volatile uint32_t
sts;
68 #define DCL_CSS_DEFAULTS { 0.0f, DCL_DEFAULT_PERIOD_S, 0U, 0U, 0U, NULL }
72 typedef struct dcl_css64 {
75 volatile uint32_t
sts;
83 #define DCL_CSSF64_DEFAULTS { 0.0L, DCL_DEFAULT_PERIODF64_S, 0U, 0U, 0U, NULL }
92 #define DCL_setControllerPeriod(p,T) ((p)->css->t_sec = T)
116 #define DCL_setUpdateStatus(p) ((p)->css->sts |= dcl_sts_param_update)
117 #define DCL_clearUpdateStatus(p) ((p)->css->sts &= ~dcl_sts_param_update)
123 #define DCL_getUpdateStatus(p) (0U != ((p)->css->sts & dcl_sts_param_update))
128 #define DCL_setPendingStatus(p) ((p)->css->sts |= dcl_sts_param_pending)
129 #define DCL_clearPendingStatus(p) ((p)->css->sts &= ~dcl_sts_param_pending)
135 #define DCL_getPendingStatus(p) (0U != ((p)->css->sts & dcl_sts_param_pending))
142 #define DCL_setControllerStatus(p) ((p)->css->sts |= dcl_sts_ctrl_running)
143 #define DCL_clearControllerStatus(p) ((p)->css->sts &= ~dcl_sts_ctrl_running)
149 #define DCL_getControllerStatus(p) (0U != ((p)->css->sts & dcl_sts_ctrl_running))
157 #endif // _DCL_CSS_H_
float64_t tpt
Test point.
Definition: dcl_css.h:73
@ dcl_sts_param_update
Parameter update-in-progress flag, high if ongoing parameter update.
Definition: dcl_css.h:109
float32_t tpt
Test point.
Definition: dcl_css.h:58
volatile uint32_t sts
Status word.
Definition: dcl_css.h:60
float64_t t_sec
Controller period in seconds.
Definition: dcl_css.h:74
uint32_t err
Error status code.
Definition: dcl_css.h:62
@ dcl_sts_ctrl_running
Controller operation-in-progress flag, high if operation is in progress.
Definition: dcl_css.h:111
uint32_t err_line
Error location line (errno)
Definition: dcl_css.h:76
uint32_t err_line
Error location line (errno)
Definition: dcl_css.h:61
const char * err_func
Error function name.
Definition: dcl_css.h:78
float32_t t_sec
Controller period in seconds.
Definition: dcl_css.h:59
@ dcl_sts_param_pending
Parameter pending-for-update flag, high if parameter needs to be updated.
Definition: dcl_css.h:110
Defines the 64bit CSS structure.
Definition: dcl_css.h:72
volatile uint32_t sts
Status word.
Definition: dcl_css.h:75
Defines the controller common support structure.
Definition: dcl_css.h:57
dcl_status_bits
Defines the library enumerated status bits.
Definition: dcl_css.h:107
double float64_t
Definition: dcl_common.h:52
uint32_t err
Error status code.
Definition: dcl_css.h:77
float float32_t
Defines single,double precision data type. Note: Assumes ABI to be TI_EABI, does not support legacy T...
Definition: dcl_common.h:51
const char * err_func
Error function name.
Definition: dcl_css.h:63
@ dcl_sts_none
Status empty.
Definition: dcl_css.h:108