AM243x Motor Control SDK  09.02.00

Introduction

Defines Controller Common Support Structure (CSS) and related macros.

Go to the source code of this file.

Data Structures

struct  DCL_CSS
 Defines the controller common support structure. More...
 
struct  DCL_CSSF64
 Defines the 64bit CSS structure. More...
 

Macros

#define DCL_CSS_DEFAULTS   { 0.0f, DCL_DEFAULT_PERIOD_S, 0U, 0U, 0U, NULL }
 Default values to initialize the CSS structure. More...
 
#define DCL_CSSF64_DEFAULTS   { 0.0L, DCL_DEFAULT_PERIODF64_S, 0U, 0U, 0U, NULL }
 Default values to initialize the CSS 64bit structure. More...
 
#define DCL_setControllerPeriod(p, t_sec)   ((p)->css->T = t_sec)
 Loads the controller period in the CSS CSS pointer must be configured first. More...
 
#define DCL_setUpdateStatus(p)   ((p)->css->sts |= DCL_STS_PARAM_UPDATE)
 Macros to set and clear the update-in-progress flag. More...
 
#define DCL_clearUpdateStatus(p)   ((p)->css->sts &= ~DCL_STS_PARAM_UPDATE)
 
#define DCL_getUpdateStatus(p)   (0U != ((p)->css->sts & DCL_STS_PARAM_UPDATE))
 Determine whether a parameter update-in-progress flag is set. More...
 
#define DCL_setControllerStatus(p)   ((p)->css->sts |= DCL_STS_CTRL_RUNNING)
 Macros placed at the beginning and end of the controller so that other functions know a control operation is in progress. Typically only used with complex controllers which may not be atomic. More...
 
#define DCL_clearControllerStatus(p)   ((p)->css->sts &= ~DCL_STS_CTRL_RUNNING)
 
#define DCL_getControllerStatus(p)   (0U != ((p)->css->sts & DCL_STS_CTRL_RUNNING))
 Determine whether a controller operation-in-progress flag is set. More...
 

Enumerations

enum  DCL_status_bits { DCL_STS_NONE = 0U, DCL_STS_PARAM_UPDATE = (1U << 0), DCL_STS_CTRL_RUNNING = (1U << 1) }
 Defines the library enumerated status bits. More...