ISF  2.1
Intelligent Sensing Framework for Kinetis with Processor Expert
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
fusion_exec.c File Reference
#include "MKL25Z4.h"
#include "math.h"
#include "PE_Types.h"
#include "fusion.h"
#include "fusion_config.h"
#include "fusion_exec.h"
Include dependency graph for fusion_exec.c:

Go to the source code of this file.

Macros

#define START_TIMER(x)   x = SYST_CVR & 0x00FFFFFF
 
#define STOP_TIMER(x)   x -= SYST_CVR & 0x00FFFFFF; if (x < 0) x += SYST_RVR
 

Functions

void Fusion_Init (fusion_state_t *pState)
 
int8 Fusion_Run (fusion_state_t *pState, fusion_algorithmConfig_t *pAlgorithmConfig)
 
void MagCal_Run (fusion_state_t *pState)
 

Macro Definition Documentation

#define START_TIMER (   x)    x = SYST_CVR & 0x00FFFFFF

Definition at line 45 of file fusion_exec.c.

Referenced by Fusion_Run().

#define STOP_TIMER (   x)    x -= SYST_CVR & 0x00FFFFFF; if (x < 0) x += SYST_RVR

Definition at line 46 of file fusion_exec.c.

Referenced by Fusion_Run().

Function Documentation

void MagCal_Run ( fusion_state_t pState)

Definition at line 257 of file fusion_exec.c.

References fRunMagCalibration(), fusion_state_t::thisMag, fusion_state_t::thisMagBuffer, and fusion_state_t::thisMagCal.

Referenced by fsl_MagCal_task().

Here is the call graph for this function:

Here is the caller graph for this function: