ISF  2.1
Intelligent Sensing Framework for Kinetis with Processor Expert
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
App1 module documentation

Data Structures

struct  SensorInfo_t
 
struct  App1AppSettings_t
 
struct  App1AppInstance_t
 

Macros

#define startof(type, member)   ((int32)&((type *)0)->member)
 
#define App1_Orientation0_DATA_READY_EVENT   ((uint32)(1 << 0))
 
#define App1_Pressure1_DATA_READY_EVENT   ((uint32)(1 << 1))
 
#define App1_ALL_SENSOR_DATA_READY   (3)
 
#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
 
#define CONFIG_SETTINGS_REPORTRATE_BYTE_START   (4)
 
#define CONFIG_SETTINGS_REPORTRATE_BYTE_ENDS   (7)
 

Enumerations

enum  App1AppState_t { App1_STATE_STOPPED_UNSUBSCRIBED = 0, App1_STATE_STOPPED_SUBSCRIBED, App1_STATE_STARTED_SUBSCRIBED }
 

Functions

int32 App1_GotoState (uint8 desiredState)
 
void TaskApp1_task (uint32_t task_init_data)
 
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 ()
 

Detailed Description

Macro Definition Documentation

#define App1_ALL_SENSOR_DATA_READY   (3)

Definition at line 68 of file App1.c.

Referenced by App1_MainTask().

#define App1_Orientation0_DATA_READY_EVENT   ((uint32)(1 << 0))

Definition at line 64 of file App1.c.

Referenced by App1_MainTask().

#define App1_Pressure1_DATA_READY_EVENT   ((uint32)(1 << 1))

Definition at line 66 of file App1.c.

Referenced by App1_MainTask().

#define CONFIG_SETTINGS_REPORTRATE_BYTE_ENDS   (7)

Definition at line 130 of file App1.c.

#define CONFIG_SETTINGS_REPORTRATE_BYTE_START   (4)

Definition at line 129 of file App1.c.

#define CTRL_POWER_MASK   0xC0

Definition at line 90 of file App1.c.

Referenced by App1_ci_app_callback().

#define CTRL_POWER_SHIFT   6

Definition at line 91 of file App1.c.

#define CTRL_QREN_MASK   0x10

Definition at line 86 of file App1.c.

#define CTRL_QREN_SHIFT   4

Definition at line 87 of file App1.c.

#define CTRL_RESET_MASK   0x20

Definition at line 88 of file App1.c.

#define CTRL_RESET_SHIFT   5

Definition at line 89 of file App1.c.

#define CTRL_STATE_MASK   0x0F

Control register mask/shift definitions for the application.

Definition at line 84 of file App1.c.

Referenced by App1_ci_app_callback(), and App1_GotoState().

#define CTRL_STATE_SHIFT   0

Definition at line 85 of file App1.c.

#define GET_FIELD (   name,
  val 
)    ((val&name##_MASK)>>name##_SHIFT)

Definition at line 81 of file App1.c.

Referenced by App1_ci_app_callback(), App1_GotoState(), and App1_MainTask().

#define SET_FIELD (   name,
  val 
)    (((val)<<name##_SHIFT)&(name##_MASK))

Macro that extracts one of the fields below.

Definition at line 80 of file App1.c.

Referenced by App1_ci_app_callback(), and App1_GotoState().

#define startof (   type,
  member 
)    ((int32)&((type *)0)->member)

Definition at line 61 of file App1.c.

Referenced by App1_ci_app_callback().

Enumeration Type Documentation

Enumerator
App1_STATE_STOPPED_UNSUBSCRIBED 
App1_STATE_STOPPED_SUBSCRIBED 
App1_STATE_STARTED_SUBSCRIBED 

Definition at line 72 of file App1.c.

Function Documentation

void App1_ReturnSensorsToInit ( )
void TaskApp1_task ( uint32_t  task_init_data)

Definition at line 165 of file App1.c.

References App1_MainTask(), isf_lib_init(), and isf_system_sync().

Here is the call graph for this function: