1 /** \file requestHandler.h
2 * \brief Request Handler module interface header file
4 * \see requestHandler.c
6 /****************************************************************************
7 **+-----------------------------------------------------------------------+**
9 **| Copyright(c) 1998 - 2008 Texas Instruments. All rights reserved. |**
10 **| All rights reserved. |**
12 **| Redistribution and use in source and binary forms, with or without |**
13 **| modification, are permitted provided that the following conditions |**
16 **| * Redistributions of source code must retain the above copyright |**
17 **| notice, this list of conditions and the following disclaimer. |**
18 **| * Redistributions in binary form must reproduce the above copyright |**
19 **| notice, this list of conditions and the following disclaimer in |**
20 **| the documentation and/or other materials provided with the |**
22 **| * Neither the name Texas Instruments nor the names of its |**
23 **| contributors may be used to endorse or promote products derived |**
24 **| from this software without specific prior written permission. |**
26 **| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |**
27 **| "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |**
28 **| LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |**
29 **| A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |**
30 **| OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |**
31 **| SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |**
32 **| LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |**
33 **| DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |**
34 **| THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |**
35 **| (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |**
36 **| OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |**
38 **+-----------------------------------------------------------------------+**
39 ****************************************************************************/
41 /***************************************************************************/
43 /* MODULE: requestHandler.h */
44 /* PURPOSE: Request Handler module interface header file */
46 /***************************************************************************/
47 #ifndef __REQUEST_HANDLER_H__
48 #define __REQUEST_HANDLER_H__
51 #include "802_11Defs.h"
52 #include "measurementMgrApi.h"
54 PACKED_STRUCT( MeasurementRequest_t ,
56 measurement_type_e Type;
59 UINT16 measurementToken;
62 UINT8 ActualDurationTime;
63 measurement_scanMode_e ScanMode;
67 /* Functions Pointers Definitions */
68 typedef TI_STATUS (*parserRequestIEHdr_t) (UINT8 *pData, UINT16 *reqestLen,
69 UINT16 *measurementToken);
73 /* Function to the Pointer */
74 parserRequestIEHdr_t parserRequestIEHdr;
77 MeasurementRequest_t reqArr[MAX_NUM_REQ];
78 UINT8 numOfWaitingRequests;
88 TI_HANDLE requestHandler_create(TI_HANDLE hOs);
90 TI_STATUS RequestHandler_config(TI_HANDLE hRequestHandler,
94 TI_STATUS requestHandler_setParam(TI_HANDLE hRequestHandler,
97 TI_STATUS requestHandler_getParam(TI_HANDLE hRequestHandler,
100 TI_STATUS requestHandler_destroy(TI_HANDLE hRequestHandler);
102 TI_STATUS requestHandler_insertRequests(TI_HANDLE hRequestHandler,
103 measurement_mode_e measurementMode,
104 measurement_frameRequest_t measurementFrameReq);
106 TI_STATUS requestHandler_getNextReq(TI_HANDLE hRequestHandler,
107 BOOL isForActivation,
108 MeasurementRequest_t *pRequest[],
109 UINT8* numOfRequests);
111 TI_STATUS requestHandler_getCurrentExpiredReq(TI_HANDLE hRequestHandler,
113 MeasurementRequest_t **pRequest);
115 TI_STATUS requestHandler_clearRequests(TI_HANDLE hRequestHandler);
117 TI_STATUS requestHandler_getFrameToken(TI_HANDLE hRequestHandler,UINT16 *frameToken );
119 TI_STATUS requestHandler_setRequestParserFunction(TI_HANDLE hRequestHandler,
120 parserRequestIEHdr_t parserRequestIEHdr);
123 #endif /* __REQUEST_HANDLER_H__*/