ISF  2.2 rev 5
Intelligent Sensing Framework for Kinetis with Processor Expert
App1.c File Reference
#include "App1_Functions.h"
#include "App1.h"
#include "App1_types.h"
#include "isf_target.h"
#include "isf_types.h"
#include "isf.h"
#include "isf_init.h"
#include "isf_ci.h"
#include "isf_ci_stream.h"
#include "isf_sm_types.h"
#include "fsl_os_abstraction.h"
#include "isf_util.h"
#include "isf_dsa_direct.h"
#include "isf_pm.h"
#include "Events.h"
#include "isf_sensor_configuration.h"
#include "isf_sensor_configuration_extern.h"
#include "isf_accelerometer_types.h"
#include "isf_magnetometer_types.h"
#include "isf_gyrometer_types.h"
#include "isf_pressure_types.h"
#include "isf_temperature_types.h"
#include "isf_orientation_types.h"
#include "isf_altitude_types.h"
#include "isf_pedometer_types.h"
#include "fsl_Sensor_Custom_1_Functions.h"
#include "fsl_Sensor_Analog_1_Functions.h"
Include dependency graph for App1.c:

Go to the source code of this file.

Data Structures

struct  subscriptionConfig_t
 This structure holds the sensor subscriptions configuration info. More...
 
struct  pseudoSettings_t
 
struct  appSubscriptionResponse_t
 This structure holds the ISF application subscriptions information in the "GET_APP_SUBSCRIPTION" CI command response buffer. More...
 

Macros

#define App1_TASK_NAME   "App1_task"
 
#define App1_TASK_STACK_SIZE   1200
 
#define App1_TASK_PRIORITY   11
 
#define startof(type, member)   ((int32)&((type *)0)->member)
 
#define NUM_SENSORS   (sizeof(App1AppInstance.info)/sizeof(SensorInfo_t))
 Macro thats holds number of active sensors. More...
 
#define SET_FIELD(name, val)   (((val)<<name##_SHIFT)&(name##_MASK))
 Macro that extracts one of the fields below. More...
 
#define GET_FIELD(name, val)   ((val&name##_MASK)>>name##_SHIFT)
 
#define CTRL_STATE_MASK   0x0F
 Control register mask/shift definitions for the application. More...
 
#define CTRL_STATE_SHIFT   0
 
#define CTRL_QREN_MASK   0x10
 
#define CTRL_QREN_SHIFT   4
 
#define CTRL_RESET_MASK   0x20
 
#define CTRL_RESET_SHIFT   5
 
#define CTRL_POWER_MASK   0xC0
 
#define CTRL_POWER_SHIFT   6
 

Functions

 OSA_TASK_DEFINE (App1, App1_TASK_STACK_SIZE)
 
int32 App1_GotoState (uint8 desiredState)
 
void App1_task (os_task_param_t task_init_data)
 
void App1_init (void)
 
void App1_MainTask (void)
 
ci_response_t App1_ci_app_callback (ci_host_cmd_packet_t *pHostPacket, ci_app_resp_packet_t *pAppPacket)
 
void App1_ReturnSensorsToInit ()
 

Variables

App1AppInstance_t App1AppInstance
 

Detailed Description

Version
02.00

Definition in file App1.c.