2 Intelligent Sensing Framework v2.0 Software Reference Manual, Rev. 2.0, 1/2016
Freescale Semiconductor, Inc.
Contents
1. About this document .................................................................................................................... 4
1.1 Purpose ................................................................................................................................. 4
1.2 Audience ............................................................................................................................... 4
1.3 Terminology and conventions ................................................................................................ 4
1.3.1 Notational conventions ................................................................................................................7
1.4 References ............................................................................................................................ 7
2. Introduction ................................................................................................................................... 7
2.1 System overview ................................................................................................................... 7
2.2 Development environment ................................................................................................... 10
3. Intelligent Sensing Framework .................................................................................................. 11
3.1 ISF theory of operation ........................................................................................................ 11
3.2 ISF architecture ................................................................................................................... 12
3.3 Processor Expert component architecture ........................................................................... 13
3.4 Core Framework component details .................................................................................... 14
3.4.1 Theory of operation overview ................................................................................................... 14
3.4.2 Framework overview ................................................................................................................ 14
3.4.3 Processor Expert component overview .................................................................................... 14
3.4.4 Digital Sensor Abstraction (DSA) ............................................................................................. 15
3.4.5 DSA-Direct interface ................................................................................................................. 18
3.4.6 Bus Manager ............................................................................................................................ 19
3.4.7 ISF system configuration .......................................................................................................... 22
3.4.8 Device Messaging and Protocol Adapters ............................................................................... 22
3.4.9 Host Interface/Command Interpreter ........................................................................................ 26
3.4.10 Power Manager ........................................................................................................................ 46
3.5 Application support component details ................................................................................ 48
3.5.1 Embedded Application component .......................................................................................... 48
3.6 MQXLite RTOS .................................................................................................................... 51
3.6.1 ISF tasks and initialization ........................................................................................................ 52
4. Revision history .......................................................................................................................... 52
Appendix A. Streaming protocol for host communication ............................................................. 53
A.1 Introduction .......................................................................................................................... 53
A.2 General description ............................................................................................................. 53
A.3 Stream configuration............................................................................................................ 53
A.3.1 Stream elements ...................................................................................................................... 54
A.3.2 Stream APIs ............................................................................................................................. 54
A.3.2.1 Stream API functions ............................................................................................. 54
A.3.2.2 Stream Protocol APIs ............................................................................................. 55
A.3.2.3 Enable Data Update command .............................................................................. 55
A.4 Stream host communication ................................................................................................ 55
A.4.1 Cyclic Redundancy Check (CRC) ............................................................................................ 56
A.4.2 Host command packet .............................................................................................................. 56
A.4.2.1 Command response packet ................................................................................... 57
A.4.3 Update packet .......................................................................................................................... 58
A.5 Stream host commands ....................................................................................................... 59
A.5.1 Command list summary ............................................................................................................ 59
A.5.2 Command description .............................................................................................................. 59
A.5.2.1 Reset command ..................................................................................................... 59
A.5.2.2 Disable Data Update command ............................................................................. 60
A.5.2.3 Create Stream command ....................................................................................... 61
A.5.2.4 Delete Stream command ....................................................................................... 63
A.5.2.5 Reset Trigger command......................................................................................... 64