![Logo](ti_logo.svg) |
AM263x Motor Control SDK
09.02.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_sec) ((p)->css->T = t_sec)
106 typedef enum dcl_status_bits
115 #define DCL_setUpdateStatus(p) ((p)->css->sts |= DCL_STS_PARAM_UPDATE)
116 #define DCL_clearUpdateStatus(p) ((p)->css->sts &= ~DCL_STS_PARAM_UPDATE)
122 #define DCL_getUpdateStatus(p) (0U != ((p)->css->sts & DCL_STS_PARAM_UPDATE))
129 #define DCL_setControllerStatus(p) ((p)->css->sts |= DCL_STS_CTRL_RUNNING)
130 #define DCL_clearControllerStatus(p) ((p)->css->sts &= ~DCL_STS_CTRL_RUNNING)
136 #define DCL_getControllerStatus(p) (0U != ((p)->css->sts & DCL_STS_CTRL_RUNNING))
144 #endif // _DCL_CSS_H_
@ DCL_STS_CTRL_RUNNING
Controller operation-in-progress flag, high if operation is in progress.
Definition: dcl_css.h:110
DCL_status_bits
Defines the library enumerated status bits.
Definition: dcl_css.h:107
float64_t tpt
Test point.
Definition: dcl_css.h:73
float32_t tpt
Test point.
Definition: dcl_css.h:58
volatile uint32_t sts
Status word.
Definition: dcl_css.h:60
uint32_t err
Error status code.
Definition: dcl_css.h:62
float64_t T
Controller period in seconds.
Definition: dcl_css.h:74
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
@ DCL_STS_PARAM_UPDATE
Parameter update-in-progress flag, high if ongoing parameter update.
Definition: dcl_css.h:109
const char * err_func
Error function name.
Definition: dcl_css.h:78
@ DCL_STS_NONE
Status empty.
Definition: dcl_css.h:108
float32_t T
Controller period in seconds.
Definition: dcl_css.h:59
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
double float64_t
Definition: dcl_common.h:59
uint32_t err
Error status code.
Definition: dcl_css.h:77
float float32_t
Definition: dcl_common.h:58
const char * err_func
Error function name.
Definition: dcl_css.h:63