|
MotorWare f2806x Module API Documentation
|
Data Structures | |
| struct | _FEM_Obj_ |
| Defines the frequency of execution monitoring (FEM) object. More... | |
Typedefs | |
| typedef struct _FEM_Obj_ | FEM_Obj |
| Defines the frequency of execution monitoring (FEM) object. More... | |
| typedef struct _FEM_Obj_ * | FEM_Handle |
| Defines the FEM handle. More... | |
Functions | |
| static uint32_t | FEM_getCnt_z0 (FEM_Handle handle) |
| Gets the current count value. More... | |
| static uint32_t | FEM_getCnt_z1 (FEM_Handle handle) |
| Gets the previous count value. More... | |
| static uint32_t | FEM_getDeltaCnt (FEM_Handle handle) |
| Gets the latest delta count measured, cnts. More... | |
| static uint32_t | FEM_getErrorCnt (FEM_Handle handle) |
| Gets the frequency error count. More... | |
| static bool | FEM_getFlag_freqError (FEM_Handle handle) |
| Gets the state of the frequency error flag. More... | |
| static uint32_t | FEM_getMaxDeltaCnt (FEM_Handle handle) |
| Gets the maximum delta count allowed, cnts. More... | |
| static uint32_t | FEM_getMaxDeltaCntObserved (FEM_Handle handle) |
| Gets the maximum delta count observed, cnts. More... | |
| static uint32_t | FEM_getMinDeltaCnt (FEM_Handle handle) |
| Gets the minimum delta count allowed, cnts. More... | |
| static uint32_t | FEM_getTimerPeriod (FEM_Handle handle) |
| Gets the timer period, cnts. More... | |
| FEM_Handle | FEM_init (void *pMemory, const size_t numBytes) |
| Initializes the frequency of execution monitoring (FEM) object. More... | |
| static bool | FEM_isFreqError (FEM_Handle handle) |
| Gets the state of the frequency error flag. More... | |
| static void | FEM_setCnt_z0 (FEM_Handle handle, const uint32_t cnt) |
| Sets the current count value. More... | |
| static void | FEM_setCnt_z1 (FEM_Handle handle, const uint32_t cnt) |
| Sets the previous count value. More... | |
| static void | FEM_setDeltaCnt (FEM_Handle handle, const uint32_t deltaCnt) |
| Sets the delta count value. More... | |
| static void | FEM_setErrorCnt (FEM_Handle handle, const uint32_t numErrors) |
| Sets the error count. More... | |
| static void | FEM_setFlag_freqError (FEM_Handle handle, const bool state) |
| Sets the state of the frequency error flag. More... | |
| static void | FEM_setMaxDeltaCnt (FEM_Handle handle, const uint32_t maxDeltaCnt) |
| Sets the maximum delta count, cnts. More... | |
| static void | FEM_setMaxDeltaCntObserved (FEM_Handle handle, const uint32_t maxDeltaCnt) |
| Sets the maximum delta count observed, cnts. More... | |
| static void | FEM_setMinDeltaCnt (FEM_Handle handle, const uint32_t minDeltaCnt) |
| Sets the minimum delta count, cnts. More... | |
| void | FEM_setParams (FEM_Handle handle, const float_t timerFreq_Hz, const uint32_t timerPeriod_cnts, const float_t spFreq_Hz, const float_t maxError_Hz) |
| Sets the frequency of execution monitoring parameters, cnts. More... | |
| static void | FEM_setTimerPeriod (FEM_Handle handle, const uint32_t timerPeriod_cnts) |
| Sets the timer period, cnts. More... | |
| static void | FEM_incrErrorCnt (FEM_Handle handle) |
| Increments the error counter. More... | |
| static void | FEM_run (FEM_Handle handle) |
| Runs the frequency of execution monitoring. More... | |
| static void | FEM_updateCnts (FEM_Handle handle, const uint32_t cnt) |
| Updates the current and previous count values. More... | |
| struct _FEM_Obj_ |
| typedef struct _FEM_Obj_* FEM_Handle |
|
inlinestatic |
Gets the current count value.
| [in] | handle | The frequency of execution monitoring (FEM) handle |
Definition at line 74 of file fem.h.
References _FEM_Obj_::cnt_z0.
Referenced by FEM_run(), and FEM_updateCnts().
|
inlinestatic |
Gets the previous count value.
| [in] | handle | The frequency of execution monitoring (FEM) handle |
Definition at line 85 of file fem.h.
References _FEM_Obj_::cnt_z1.
Referenced by FEM_run().
|
inlinestatic |
Gets the latest delta count measured, cnts.
| [in] | handle | The frequency of execution monitoring (FEM) handle |
Definition at line 96 of file fem.h.
References _FEM_Obj_::deltaCnt.
|
inlinestatic |
Gets the frequency error count.
| [in] | handle | The frequency of execution monitoring (FEM) handle |
Definition at line 107 of file fem.h.
References _FEM_Obj_::errorCnt.
Referenced by FEM_incrErrorCnt().
|
inlinestatic |
Gets the state of the frequency error flag.
| [in] | handle | The frequency of execution monitoring (FEM) handle |
Definition at line 118 of file fem.h.
References _FEM_Obj_::flag_freqError.
|
inlinestatic |
Gets the maximum delta count allowed, cnts.
| [in] | handle | The frequency of execution monitoring (FEM) handle |
Definition at line 129 of file fem.h.
References _FEM_Obj_::maxDeltaCnt.
Referenced by FEM_run().
|
inlinestatic |
Gets the maximum delta count observed, cnts.
| [in] | handle | The frequency of execution monitoring (FEM) handle |
Definition at line 140 of file fem.h.
References _FEM_Obj_::maxDeltaCntObserved.
Referenced by FEM_run().
|
inlinestatic |
Gets the minimum delta count allowed, cnts.
| [in] | handle | The frequency of execution monitoring (FEM) handle |
Definition at line 151 of file fem.h.
References _FEM_Obj_::minDeltaCnt.
Referenced by FEM_run().
|
inlinestatic |
Gets the timer period, cnts.
| [in] | handle | The frequency of execution monitoring (FEM) handle |
Definition at line 162 of file fem.h.
References _FEM_Obj_::timerPeriod_cnts.
Referenced by FEM_run().
|
inlinestatic |
Increments the error counter.
| [in] | handle | The frequency of execution monitoring (FEM) handle |
Definition at line 320 of file fem.h.
References _FEM_Obj_::errorCnt, FEM_getErrorCnt(), and FEM_setErrorCnt().
Referenced by FEM_run().
| FEM_Handle FEM_init | ( | void * | pMemory, |
| const size_t | numBytes | ||
| ) |
|
inlinestatic |
Gets the state of the frequency error flag.
| [in] | handle | The frequency of execution monitoring (FEM) handle |
Definition at line 180 of file fem.h.
References _FEM_Obj_::flag_freqError.
|
inlinestatic |
Runs the frequency of execution monitoring.
| [in] | handle | The frequency of execution monitoring (FEM) handle |
Definition at line 334 of file fem.h.
References _FEM_Obj_::cnt_z0, _FEM_Obj_::cnt_z1, _FEM_Obj_::deltaCnt, FEM_getCnt_z0(), FEM_getCnt_z1(), FEM_getMaxDeltaCnt(), FEM_getMaxDeltaCntObserved(), FEM_getMinDeltaCnt(), FEM_getTimerPeriod(), FEM_incrErrorCnt(), FEM_setDeltaCnt(), FEM_setFlag_freqError(), FEM_setMaxDeltaCntObserved(), _FEM_Obj_::maxDeltaCnt, _FEM_Obj_::maxDeltaCntObserved, and _FEM_Obj_::minDeltaCnt.
|
inlinestatic |
Sets the current count value.
| [in] | handle | The frequency of execution monitoring (FEM) handle |
| [in] | cnt | The current count value |
Definition at line 191 of file fem.h.
References _FEM_Obj_::cnt_z0.
Referenced by FEM_setParams(), and FEM_updateCnts().
|
inlinestatic |
Sets the previous count value.
| [in] | handle | The frequency of execution monitoring (FEM) handle |
| [in] | cnt | The previous count value |
Definition at line 204 of file fem.h.
References _FEM_Obj_::cnt_z1.
Referenced by FEM_setParams(), and FEM_updateCnts().
|
inlinestatic |
Sets the delta count value.
| [in] | handle | The frequency of execution monitoring (FEM) handle |
| [in] | deltaCnt | The delta count value |
Definition at line 217 of file fem.h.
References _FEM_Obj_::deltaCnt.
Referenced by FEM_run(), and FEM_setParams().
|
inlinestatic |
Sets the error count.
| [in] | handle | The frequency of execution monitoring (FEM) handle |
| [in] | numErrors | The number of frequency errors |
Definition at line 230 of file fem.h.
References _FEM_Obj_::errorCnt.
Referenced by FEM_incrErrorCnt(), and FEM_setParams().
|
inlinestatic |
Sets the state of the frequency error flag.
| [in] | handle | The frequency of execution monitoring (FEM) handle |
| [in] | state | The desired state |
Definition at line 243 of file fem.h.
References _FEM_Obj_::flag_freqError.
Referenced by FEM_run(), and FEM_setParams().
|
inlinestatic |
Sets the maximum delta count, cnts.
| [in] | handle | The frequency of execution monitoring (FEM) handle |
| [in] | maxDeltaCnt | The maximum delta count, cnts |
Definition at line 256 of file fem.h.
References _FEM_Obj_::maxDeltaCnt.
Referenced by FEM_setParams().
|
inlinestatic |
Sets the maximum delta count observed, cnts.
| [in] | handle | The frequency of execution monitoring (FEM) handle |
| [in] | maxDeltaCnt | The maximum delta count observed, cnts |
Definition at line 269 of file fem.h.
References _FEM_Obj_::maxDeltaCnt, and _FEM_Obj_::maxDeltaCntObserved.
Referenced by FEM_run(), and FEM_setParams().
|
inlinestatic |
Sets the minimum delta count, cnts.
| [in] | handle | The frequency of execution monitoring (FEM) handle |
| [in] | minDeltaCnt | The minimum delta count, cnts |
Definition at line 282 of file fem.h.
References _FEM_Obj_::minDeltaCnt.
Referenced by FEM_setParams().
| void FEM_setParams | ( | FEM_Handle | handle, |
| const float_t | timerFreq_Hz, | ||
| const uint32_t | timerPeriod_cnts, | ||
| const float_t | spFreq_Hz, | ||
| const float_t | maxError_Hz | ||
| ) |
Sets the frequency of execution monitoring parameters, cnts.
| [in] | handle | The frequency of execution monitoring (FEM) handle |
| [in] | timerFreq_Hz | The timer frequency, Hz |
| [in] | timerPeriod_cnts | The timer period, cnts |
| [in] | spFreq_Hz | The setpoint frequency, Hz |
| [in] | maxError_Hz | The maximum frequency error, Hz |
Definition at line 35 of file fem.c.
References FEM_setCnt_z0(), FEM_setCnt_z1(), FEM_setDeltaCnt(), FEM_setErrorCnt(), FEM_setFlag_freqError(), FEM_setMaxDeltaCnt(), FEM_setMaxDeltaCntObserved(), FEM_setMinDeltaCnt(), and FEM_setTimerPeriod().
|
inlinestatic |
Sets the timer period, cnts.
| [in] | handle | The frequency of execution monitoring (FEM) handle |
| [in] | timerPeriod_cnts | The timer period, cnts |
Definition at line 308 of file fem.h.
References _FEM_Obj_::timerPeriod_cnts.
Referenced by FEM_setParams().
|
inlinestatic |
Updates the current and previous count values.
| [in] | handle | The frequency of execution monitoring (FEM) handle |
| [in] | timerCnt | The current count value |
Definition at line 393 of file fem.h.
References _FEM_Obj_::cnt_z0, FEM_getCnt_z0(), FEM_setCnt_z0(), and FEM_setCnt_z1().
1.8.9.1