1 /* 2 * CmdBldItr.c 3 * 4 * Copyright(c) 1998 - 2009 Texas Instruments. All rights reserved. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 11 * * Redistributions of source code must retain the above copyright 12 * notice, this list of conditions and the following disclaimer. 13 * * Redistributions in binary form must reproduce the above copyright 14 * notice, this list of conditions and the following disclaimer in 15 * the documentation and/or other materials provided with the 16 * distribution. 17 * * Neither the name Texas Instruments nor the names of its 18 * contributors may be used to endorse or promote products derived 19 * from this software without specific prior written permission. 20 * 21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 */ 33 34 35 /** \file CmdBldItr.c 36 * \brief Command builder. Interrogate commands 37 * 38 * \see CmdBld.h 39 */ 40 41 #define __FILE_ID__ FILE_ID_95 42 #include "tidef.h" 43 #include "CmdBld.h" 44 #include "CmdBldItrIE.h" 45 46 47 TI_STATUS cmdBld_ItrMemoryMap (TI_HANDLE hCmdBld, MemoryMap_t *apMap, void *fCb, TI_HANDLE hCb) 48 { 49 return cmdBld_ItrIeMemoryMap (hCmdBld, apMap, fCb, hCb); 50 } 51 52 53 TI_STATUS cmdBld_ItrRoamimgStatisitics (TI_HANDLE hCmdBld, void *fCb, TI_HANDLE hCb, void *pCb) 54 { 55 return cmdBld_ItrIeRoamimgStatisitics (hCmdBld, fCb, hCb, pCb); 56 } 57 58 59 TI_STATUS cmdBld_ItrErrorCnt (TI_HANDLE hCmdBld, void * fCb, TI_HANDLE hCb, void * pCb) 60 { 61 return cmdBld_ItrIeErrorCnt (hCmdBld, fCb, hCb, pCb); 62 } 63 64 65 /* 66 * ---------------------------------------------------------------------------- 67 * Function : TWD_GetAverageRSSI 68 * 69 * Input : averageRSSI - pointer for return verage RSSI result 70 * 71 * Output : averageRSSI 72 * Process : 73 * ----------------------------------------------------------------------------- 74 */ 75 TI_STATUS cmdBld_ItrRSSI (TI_HANDLE hCmdBld, void *fCb, TI_HANDLE hCb, void *pCb) 76 { 77 return cmdBld_ItrIeRSSI (hCmdBld, fCb, hCb, pCb); 78 } 79 80 81 /**************************************************************************** 82 * cmdBld_GetSoftGeminiParams() 83 **************************************************************************** 84 * DESCRIPTION: Get Soft Gemini config parameter 85 * 86 * INPUTS: 87 * 88 * OUTPUT: 89 * 90 * RETURNS: TI_OK or TI_NOK 91 ****************************************************************************/ 92 TI_STATUS cmdBld_ItrSg (TI_HANDLE hCmdBld, void *fCb, TI_HANDLE hCb, void* pCb) 93 { 94 return cmdBld_ItrIeSg (hCmdBld, fCb, hCb, pCb); 95 } 96 97 TI_STATUS cmdBld_ItrRateParams(TI_HANDLE hCmdBld, void *fCb, TI_HANDLE hCb, void* pCb) 98 { 99 TTwd *pTWD = (TTwd *)hCmdBld; 100 101 return cmdBld_ItrIeRateParams (pTWD->hCmdBld, fCb, hCb, pCb); 102 103 } 104 105 106 TI_STATUS cmdBld_ItrStatistics (TI_HANDLE hCmdBld, void *fCb, TI_HANDLE hCb, void *pCb) 107 { 108 return cmdBld_ItrIeStatistics (hCmdBld, fCb, hCb, pCb); 109 } 110 111 112 TI_STATUS cmdBld_ItrPowerConsumptionstat (TI_HANDLE hTWD, void *fCb, TI_HANDLE hCb, void* pCb) 113 { 114 TTwd *pTWD = (TTwd *)hTWD; 115 116 return cmdBld_ItrIePowerConsumptionstat (pTWD->hCmdBld, fCb, hCb, pCb); 117 } 118 119 /**************************************************************************** 120 * cmdBld_ItrDataFilterStatistics() 121 **************************************************************************** 122 * DESCRIPTION: Get the ACX GWSI counters 123 * 124 * INPUTS: 125 * 126 * OUTPUT: None 127 * 128 * RETURNS: TI_OK or TI_NOK 129 ****************************************************************************/ 130 TI_STATUS cmdBld_ItrDataFilterStatistics (TI_HANDLE hCmdBld, void *fCb, TI_HANDLE hCb, void *pCb) 131 { 132 return cmdBld_ItrIeDataFilterStatistics (hCmdBld, fCb, hCb, pCb); 133 } 134 135