AM263x Digital Power SDK  09.01.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_getPendingStatus(p)   (0U != ((p)->css->sts & dcl_sts_param_pending))
 Determine whether a parameter pending-for-update 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...