37 const uint32_t timerPeriod_cnts,
41 uint32_t maxDeltaCnt = (uint32_t)(timerFreq_Hz/(spFreq_Hz - maxFreqError_Hz));
42 uint32_t minDeltaCnt = (uint32_t)(timerFreq_Hz/(spFreq_Hz + maxFreqError_Hz));
static void FEM_setFlag_freqError(FEM_Handle handle, const bool state)
Sets the state of the frequency error flag.
static void FEM_setDeltaCnt(FEM_Handle handle, const uint32_t deltaCnt)
Sets the delta count value.
static void FEM_setMinDeltaCnt(FEM_Handle handle, const uint32_t minDeltaCnt)
Sets the minimum delta count, cnts.
void FEM_setParams(FEM_Handle handle, const float_t timerFreq_Hz, const uint32_t timerPeriod_cnts, const float_t spFreq_Hz, const float_t maxFreqError_Hz)
Sets the frequency of execution monitoring parameters, cnts.
static void FEM_setErrorCnt(FEM_Handle handle, const uint32_t numErrors)
Sets the error count.
Contains the public interface to the frequency of execution monitoring(FEM) module routines...
static void FEM_setMaxDeltaCntObserved(FEM_Handle handle, const uint32_t maxDeltaCnt)
Sets the maximum delta count observed, cnts.
Defines the frequency of execution monitoring (FEM) object.
static void FEM_setCnt_z0(FEM_Handle handle, const uint32_t cnt)
Sets the current count value.
static void FEM_setMaxDeltaCnt(FEM_Handle handle, const uint32_t maxDeltaCnt)
Sets the maximum delta count, cnts.
static void FEM_setCnt_z1(FEM_Handle handle, const uint32_t cnt)
Sets the previous count value.
struct _FEM_Obj_ * FEM_Handle
Defines the FEM handle.
FEM_Handle FEM_init(void *pMemory, const size_t numBytes)
Initializes the frequency of execution monitoring (FEM) object.
static void FEM_setTimerPeriod(FEM_Handle handle, const uint32_t timerPeriod_cnts)
Sets the timer period, cnts.
float float_t
Defines the portable data type for 32 bit, signed floating-point data.