1 2 /**************************************************************************** 3 **+-----------------------------------------------------------------------+** 4 **| |** 5 **| Copyright(c) 1998 - 2008 Texas Instruments. All rights reserved. |** 6 **| All rights reserved. |** 7 **| |** 8 **| Redistribution and use in source and binary forms, with or without |** 9 **| modification, are permitted provided that the following conditions |** 10 **| are met: |** 11 **| |** 12 **| * Redistributions of source code must retain the above copyright |** 13 **| notice, this list of conditions and the following disclaimer. |** 14 **| * Redistributions in binary form must reproduce the above copyright |** 15 **| notice, this list of conditions and the following disclaimer in |** 16 **| the documentation and/or other materials provided with the |** 17 **| distribution. |** 18 **| * Neither the name Texas Instruments nor the names of its |** 19 **| contributors may be used to endorse or promote products derived |** 20 **| from this software without specific prior written permission. |** 21 **| |** 22 **| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |** 23 **| "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |** 24 **| LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |** 25 **| A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |** 26 **| OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |** 27 **| SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |** 28 **| LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |** 29 **| DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |** 30 **| THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |** 31 **| (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |** 32 **| OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |** 33 **| |** 34 **+-----------------------------------------------------------------------+** 35 ****************************************************************************/ 36 37 /***************************************************************************/ 38 /* */ 39 /* MODULE: measurementMgrApi.h */ 40 /* PURPOSE: Measurement Manager module interface header file */ 41 /* */ 42 /***************************************************************************/ 43 44 45 46 47 48 #ifndef __MEASUREMENTMGR_API_H__ 49 #define __MEASUREMENTMGR_API_H__ 50 51 52 53 54 #include "measurementTypes.h" 55 #include "scrApi.h" 56 #include "mlmeApi.h" 57 58 59 60 61 62 63 64 TI_HANDLE measurementMgr_create(TI_HANDLE hOs); 65 66 TI_STATUS measurementMgr_config(TI_HANDLE hMeasurementMgr, 67 TI_HANDLE hMacServices, 68 TI_HANDLE hRegulatoryDomain, 69 TI_HANDLE hExcMngr, 70 TI_HANDLE hSiteMgr, 71 TI_HANDLE hHalCtrl, 72 TI_HANDLE hMlme, 73 TI_HANDLE hTrafficMonitor, 74 TI_HANDLE hReport, 75 TI_HANDLE hOs, 76 TI_HANDLE hScr, 77 TI_HANDLE hHealthMonitor, 78 TI_HANDLE hApConn, 79 TI_HANDLE hTx, 80 measurementInitParams_t * pMeasurementInitParams); 81 82 TI_STATUS measurementMgr_destroy(TI_HANDLE hMeasurementMgr); 83 84 TI_STATUS measurementMgr_setParam(TI_HANDLE hMeasurementMgr, paramInfo_t * pParam); 85 86 TI_STATUS measurementMgr_getParam(TI_HANDLE hMeasurementMgr, paramInfo_t * pParam); 87 88 TI_STATUS measurementMgr_connected(TI_HANDLE hMeasurementMgr); 89 90 TI_STATUS measurementMgr_disconnected(TI_HANDLE hMeasurementMgr); 91 92 TI_STATUS measurementMgr_enable(TI_HANDLE hMeasurementMgr); 93 94 TI_STATUS measurementMgr_disable(TI_HANDLE hMeasurementMgr); 95 96 TI_STATUS measurementMgr_setMeasurementMode(TI_HANDLE hMeasurementMgr, UINT16 capabilities, 97 UINT8 * pIeBuffer, UINT16 length); 98 99 TI_STATUS measurementMgr_receiveFrameRequest(TI_HANDLE hMeasurementMgr, measurement_frameType_e frameType, 100 INT32 dataLen, UINT8 * pData); 101 102 void measurementMgr_rejectPendingRequests(TI_HANDLE hMeasurementMgr, measurement_rejectReason_e rejectReason); 103 104 void measurementMgr_MeasurementCompleteCB(TI_HANDLE clientObj, measurement_reply_t * msrReply); 105 106 void measurementMgr_scrResponseCB(TI_HANDLE hClient, scr_clientRequestStatus_e requestStatus, 107 scr_pendReason_e pendReason); 108 109 void measurementMgr_mlmeResultCB(TI_HANDLE hMeasurementMgr, macAddress_t * bssid, mlmeFrameInfo_t * frameInfo, 110 Rx_attr_t * pRxAttr, UINT8 * buffer, UINT16 bufferLength); 111 112 113 #endif /* __MEASUREMENTMGR_API_H__ */ 114