ISF  1.1
Intelligent Sensing Framework
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
User/Source/isf_hostproxyconfig.c
Go to the documentation of this file.
00001 /*
00002  * 
00003  * Copyright (c) 2013, Freescale Semiconductor, Inc.
00004  * 
00005 */
00006 /*!
00007  * @file isf_hostproxyconfig.c
00008  * @brief This file defines the host configuration structure.   
00009  * 
00010  */
00011 
00012 #include "isf_hostproxy.h"
00013 #include "isf_hostproxyconfig.h"
00014 
00015 /*! @brief The table defines the Host Proxy configuration. 
00016  *  If the user application registers with the Host Proxy, the configuration table should be updated with the proxy instance. 
00017  *  For example, if a FXLC95000 accelerometer application registers with the Host Proxy, 
00018  *  the proxy number and the user application specific configuration instance should be inserted into the proxy configuration table.
00019 hp_Config_t proxyConfigTable[] = {
00020                 {
00021                                 .proxyNo = APP_PROXY_NO_FXCL95000_ACCEL, 
00022                                 .appConfig = &fxlc95000Config
00023                 }
00024 }; 
00025 uint8 numberOfProxy = sizeof(proxyConfigTable)/sizeof(hp_Config_t);
00026 */
00027 /* This is here to prevent compilation error in the case of hostproxy is not used,but accidently included in the build
00028 // if this hostproxy is being used then this must be filled with valid proxy information and number of proxy(numberOfProxy) set accordingly. 
00029 //see the example above*/
00030 hp_Config_t proxyConfigTable[] = {
00031                                 {
00032                                 .proxyNo = 0, 
00033                                 .appConfig = NULL
00034                                 }
00035 };
00036 
00037 /*! @brief The number of proxy instances registered with the Host Proxy. */
00038 uint8 numberOfProxy = 0;