Defines the interface to the Transient Capture Module (TCM)
Go to the source code of this file.
Data Structures | |
struct | dcl_tcm |
Defines the TCM structure. More... | |
Macros | |
#define | TCM_DEFAULTS { FDLOG_DEFAULTS, FDLOG_DEFAULTS, FDLOG_DEFAULTS, 0.1, -0.1, 0, 10 } |
Defines default values to initialize the TCM structure. More... | |
Typedefs | |
typedef _DCL_VOLATILE struct dcl_tcm | DCL_TCM |
typedef _DCL_VOLATILE struct dcl_tcm | TCM |
Enumerations | |
enum | DCL_tcm_states { TCM_INVALID = 0, TCM_IDLE = 1, TCM_ARMED = 2, TCM_CAPTURE = 3, TCM_COMPLETE = 4 } |
Enumerated TCM operating modes. More... | |
Functions | |
_DCL_CODE_ACCESS void | DCL_initTCM (DCL_TCM *q, float32_t *addr, uint32_t size, uint32_t lead, float32_t tmin, float32_t tmax) |
Resets the TCM module: clears buffers and sets idle mode. More... | |
_DCL_CODE_ACCESS void | DCL_resetTCM (DCL_TCM *q) |
Resets the TCM module: clears all frame buffers and sets idle mode. More... | |
_DCL_CODE_ACCESS uint16_t | DCL_armTCM (DCL_TCM *q) |
Changes the TCM mode to "TCM_ARMED". More... | |
_DCL_CODE_ACCESS uint16_t | DCL_runTCM (DCL_TCM *q, float32_t data) |
Runs the TCM module. More... | |
_DCL_CODE_ACCESS float32_t | DCL_runITAE (DCL_FDLOG *elog, float32_t prd) |
Computes ITAE performance index from a log of servo error. More... | |
_DCL_CODE_ACCESS float32_t | DCL_runIAE (DCL_FDLOG *elog) |
Computes IAE performance index from a log of servo error. More... | |
_DCL_CODE_ACCESS float32_t | DCL_runIES (DCL_FDLOG *elog) |
Computes IES performance index from a log of servo error. More... | |