• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /** \file MacServicesApi.h
2  *  \brief This file include public definitions for the MacServices module, comprising its API.
3  *  \author Yuval Adler
4  *  \date 6-Oct-2005
5  */
6  /****************************************************************************
7 **+-----------------------------------------------------------------------+**
8 **|                                                                       |**
9 **| Copyright(c) 1998 - 2008 Texas Instruments. All rights reserved.      |**
10 **| All rights reserved.                                                  |**
11 **|                                                                       |**
12 **| Redistribution and use in source and binary forms, with or without    |**
13 **| modification, are permitted provided that the following conditions    |**
14 **| are met:                                                              |**
15 **|                                                                       |**
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         |**
21 **|    distribution.                                                      |**
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.      |**
25 **|                                                                       |**
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.  |**
37 **|                                                                       |**
38 **+-----------------------------------------------------------------------+**
39 ****************************************************************************/
40 
41 #ifndef __MACSERVICESAPI_H__
42 #define __MACSERVICESAPI_H__
43 
44 #include "commonTypes.h"
45 #include "osApi.h"
46 /*#include "whalCtrl_api.h"*/
47 #include "scanTypes.h"
48 #include "measurementTypes.h"
49 
50 /*
51  ***********************************************************************
52  *	Constant definitions.
53  ***********************************************************************
54  */
55 
56 /*
57  ***********************************************************************
58  *	Enums.
59  ***********************************************************************
60  */
61 typedef enum
62 {
63 	POWERAUTHO_AWAKE_NOT_REQUIRED	= 0,
64 	POWERAUTHO_AWAKE_REQUIRED		= 1
65 } MacServices_powerAutho_AwakeRequired_e;
66 
67 typedef enum
68 {
69 	POWERAUTHO_AWAKE_REASON_CONNECTION = 0,
70 	POWERAUTHO_AWAKE_REASON_FIRST_BEACON	,
71 	POWERAUTHO_AWAKE_REASON_OUT_OS_SYNC,
72 	POWERAUTHO_AWAKE_REASON_IBSS
73 } MacServices_powerAutho_AwakeReason_e;
74 
75 /*
76  ***********************************************************************
77  *	Typedefs.
78  ***********************************************************************
79  */
80 
81  /** \typedef scan_srvCompleteCB_t
82   * \brief Defines the function prototype for the scan complete callback
83   */
84 typedef void (*scan_srvCompleteCB_t) ( TI_HANDLE clientObj, UINT16 SPSStatus, BOOLEAN TSFError , TI_STATUS ScanStatus , TI_STATUS PSMode);
85 
86 /** \typedef measurement_srvCompleteCB_t
87  * \brief Defines the function prototype for the measurement complete callback
88  */
89 typedef void (*measurement_srvCompleteCB_t)( TI_HANDLE clientObj, measurement_reply_t* msrReply );
90 
91 typedef void (*CmdResponseCB_t )(TI_HANDLE objectHandle,UINT16 MboxStatus);
92 
93 
94 /*Power server callbacks*/
95 typedef void (*MacServices_powerSaveCmdResponseCB_t )(TI_HANDLE cmdResponseHandle,UINT8 MboxStatus);
96 /*typedef void (*powerSaveCmdResponseCB_t )(TI_HANDLE cmdResponseHandle,UINT8 MboxStatus);*/
97 
98 typedef void (*MacServices_powerSaveCmpltCB_t )(TI_HANDLE powerSaveCmpltHandle,UINT8 PSMode,UINT8 transStatus);
99 /*typedef void (*powerSaveCmpltCB_t )(TI_HANDLE powerSaveCmpltHandle,UINT8 PSMode,UINT8 transStatus);*/
100 
101 
102 
103 
104 
105 /*
106  ***********************************************************************
107  *	Structure definitions.
108  ***********************************************************************
109  */
110 
111 /*
112  ***********************************************************************
113  *	External data definitions.
114  ***********************************************************************
115  */
116 
117 /*
118  ***********************************************************************
119  *	External functions definitions
120  ***********************************************************************
121  */
122 /**
123  * \author Yuval Adler\n
124  * \date 6-Oct-2004\n
125  * \brief Creates MacServices module
126  *
127  * Function Scope \e Public.\n
128  * \param hOS - handle to the OS object.\n
129  */
130 TI_HANDLE MacServices_create( TI_HANDLE hOS );
131 
132 /**
133  * \author Yuval Adler\n
134  * \date 6-Oct-2004\n
135  * \brief Destroys MacServices module
136  *
137  * Function Scope \e Public.\n
138  * \param hMacServices - handle to the MacServices object.\n
139  */
140 void MacServices_destroy( TI_HANDLE hMacServices );
141 
142 /**
143  * \author Yuval Adler\n
144  * \date  6-Oct-2004\n
145  * \brief Initializes the MacServices module
146  *
147  * Function Scope \e Public.\n
148  * \param hMacServices - handle to the Mac Services object.\n
149  * \param hReport - handle to the report object.\n
150  * \param hHalCtrl - handle to the HAL ctrl object.\n
151  * \param hHealthMonitor - can be send as NULL. \n
152  */
153 void MacServices_init( TI_HANDLE hMacServices, TI_HANDLE hReport, TI_HANDLE hHalCtrl);
154 
155 void MacServices_config( TI_HANDLE hMacServices,TnetwDrv_InitParams_t *pInitParams);
156 
157 void MacServices_registerFailureEventCB( TI_HANDLE hMacServices, void * failureEventCB, TI_HANDLE hFailureEventObj );
158 
159 
160 /***********************************************************************
161  *	Scan SRV API functions
162  ***********************************************************************/
163 
164 
165 /**
166  * \author Ronen Kalish\n
167  * \date 29-Dec-2004\n
168  * \brief Registers a complete callback for scan complete notifications.
169  *
170  * Function Scope \e Public.\n
171  * \param hMacServices - handle to the MacServices object.\n
172  * \param scanCompleteCB - the complete callback function.\n
173  * \param hScanCompleteObj - handle to the object passed to the scan complete callback function.\n
174  */
175 void MacServices_scanSRV_registerScanCompleteCB( TI_HANDLE hMacServices,
176                                      scan_srvCompleteCB_t scanCompleteCB, TI_HANDLE hScanCompleteObj );
177 
178 
179 
180 /**
181  * \author Ronen Kalish\n
182  * \date 29-Dec-2004\n
183  * \brief Performs a scan
184  *
185  * Function Scope \e Public.\n
186  * \param hMacServices - handle to the MacServices object.\n
187  * \param scanParams - the scan specific parameters.\n
188  * \param bHighPriority - whether to perform a high priority (overlaps DTIM) scan.\n
189  * \param bDriverMode - whether to try to enter driver mode (with PS on) before issuing the scan command.\n
190  * \param bScanOnDriverModeError - whether to proceed with the scan if requested to enter driver mode and failed.\n
191  * \param bSendNullData - whether to send Null data when exiting driver mode on scan complete.\n
192  * \param psRequest - Parameter sent to PowerSaveServer on PS request to indicate PS on or "keep current"
193  * \param commandResponseFunc - CB function which called after downloading the command. \n
194  * \param commandResponseObj -  The CB function Obj (Notice : last 2 params are NULL in Legacy run). \n
195   * \return OK if successful (various, TBD codes if not).\n
196  */
197 TI_STATUS MacServices_scanSRV_scan( TI_HANDLE hMacServices, scan_Params_t *scanParams, BOOLEAN bHighPriority,
198                         BOOLEAN bDriverMode, BOOLEAN bScanOnDriverModeError,
199 						PowerMgr_802_11_PsMode_e psRequest, BOOLEAN bSendNullData,
200 						CmdResponseCB_t commandResponseFunc, TI_HANDLE commandResponseObj );
201 
202 /**
203  * \author Ronen Kalish\n
204  * \date 29-Dec-2004\n
205  * \brief Stops a scan in progress
206  *
207  * Function Scope \e Public.\n
208  * \param hMacServices - handle to the MacServices object.\n
209  * \param bSendNullData - indicates whether to send Null data when exiting driver mode.\n
210  * \param commandResponseFunc - CB function which called after downloading the command. \n
211  * \param commandResponseObj -  The CB function Obj (Notice : last 2 params are NULL in Legacy run). \n
212  * \return OK if successful (various, TBD codes if not).\n
213  */
214 TI_STATUS MacServices_scanSRV_stopScan( TI_HANDLE hMacServices, BOOLEAN bSendNullData , CmdResponseCB_t commandResponseFunc, TI_HANDLE commandResponseObj );
215 
216 /**
217  * \author Ronen Kalish\n
218  * \date 17-Jan-2005\n
219  * \brief Notifies the scan SRV of a FW reset (that had originally been reported by a different module).\n
220  *
221  * Function Scope \e Public.\n
222  * \param hMacServices - handle to the MacServices object.\n
223  * \return OK if successful (various, TBD codes if not).\n
224  */
225 TI_STATUS MacServices_scanSRV_stopOnFWReset( TI_HANDLE hMacServices );
226 
227 /**
228  * \author Ronen Kalish\n
229  * \date 29-Dec-2004\n
230  * \brief callback function used by the power manager to notify driver mode result
231  *
232  * Function Scope \e Public.\n
233  * \param hScanSRV - handle to the scan SRV object.\n
234  * \param psStatus - the power save request status.\n
235  */
236 void MacServices_scanSRV_powerSaveCB( TI_HANDLE hScanSRV, UINT8 PSMode,UINT8 psStatus );
237 
238 /**
239  * \author Ronen Kalish\n
240  * \date 29-Dec-2004\n
241  * \brief Callback function used by the HAL ctrl to notify scan complete
242  *
243  * Function Scope \e Public.\n
244  * \param hScanSRV - handle to the scan SRV object.\n
245  * \param str - pointer to scan result buffer (holding SPS status for SPS scan only!).\n
246  * \param strLen - scan result buffer length (should ALWAYS be 2, even for non SPS scans).\n
247  */
248 void MacServices_scanSRV_scanCompleteCB( TI_HANDLE hScanSRV, char* str, UINT32 strLen );
249 
250 /**
251  * \author Ronen Kalish\n
252  * \date 29-Dec-2004\n
253  * \brief called when a scan timer expires. Completes the scan and starts a recovery process.
254  *
255  * Function Scope \e Public.\n
256  * \param hScanSRV - handle to the scan SRV object.\n
257  */
258 void MacServices_scanSRV_scanTimerExpired( TI_HANDLE hScanSRV );
259 
260 #ifdef TI_DBG
261 /**
262  * \author Shirit Brook\n
263  * \date God knows when...\n
264  * \brief Prints Scan Server SM status.\n
265  *
266  * Function Scope \e Public.\n
267  * \param hMacServices - handle to the Mac Services object.\n
268  */
269 void MacServices_scanSrv_printDebugStatus(TI_HANDLE hMacServices);
270 #endif
271 
272 /*Power server API*/
273 
274 
275 /**
276   * \author Assaf Azulay
277  * \date 24-Oct-2005\n
278  * \brief request PS by User
279  *
280  * Function Scope \e Public.\n
281  * Parameters:\n
282  * 1) hPowerSrv 						- handle to the PowerSrv object.\n
283  * 2) psMode							- Power save/Active request.\n
284  * 3) sendNullDataOnExit				- \n
285  * 4) powerSaveCompleteCBObject		- handle to the Callback functin module.\n
286  * 5) powerSaveCompleteCB				- Calback function - for success/faild notification.\n
287  * 6) powerSavecmdResponseCB			- Calback function - for GWSI success/faild notification.\n
288  * Return Value: TI_STATUS - OK / PENDING / NOK.\n
289  * \b Description:\n
290  * This function is a user mode request from the Power Save Server./n
291  * it will create a Request from typ "USER_REQUEST" and will try to perform the user request for PS/Active./n
292  * this will be done in respect of priority to Driver request./n
293  */
294 TI_STATUS MacServices_powerSrv_SetPsMode(	TI_HANDLE 	hMacServices,
295                                 					PowerMgr_802_11_PsMode_e	psMode,
296  									BOOL  						sendNullDataOnExit,
297  						        		void * 						powerSaveCompleteCBObject,
298  						        		MacServices_powerSaveCmpltCB_t  			powerSaveCompleteCB,
299  						        		MacServices_powerSaveCmdResponseCB_t	powerSavecmdResponseCB);
300 
301 
302 /**
303   * \author Assaf Azulay
304  * \date 24-Oct-2005\n
305  * \brief SW configure, use to override the current PowerMode (what ever it will be) to
306  *        active/PS combined with awake/power-down. use for temporary change the system policy.
307  *
308  * Function Scope \e Public.\n
309  * Parameters:\n
310  * 1) TI_HANDLE - handle to the powerSrv object.\n
311  * 2) powerSrv_RequestFor_802_11_PS_e - the driver mode obliged to be in 802.11 PS or not change.\n
312  * 3) PowerCtrl_PowerLevel_e - the desired driver power level (allowed: AWAKE or POWER DOWN).\n
313  * 4) TI_HANDLE theObjectHandle - the handle the object that need the PS success/fail notification.\n
314  * 5) ps802_11_NotificationCB_t - the callback function.\n
315  * 6) char* - the clinet name that ask for driver mode.\n
316  * Return Value: TI_STATUS - if success (already in power save) then OK,\n
317  *                           if pend (wait to ACK form AP for the null data frame) then PENDING\n
318  *                           if PS isn't enabled then POWER_SAVE_802_11_NOT_ALLOWED\n
319  *                           else NOK.\n
320  * \b Description:\n
321  * enter in to configuration of the driver that in higher priority from the user.\n
322  * the configuration is:\n
323  *  - to enter to802.11 PS or not (if not this isn't a request to get out from 802.11 PS).\n
324  *  - to change the HW power level to awake or power-down if not already there.
325  *    this is a must request.\n
326 */
327 TI_STATUS MacServices_powerSrv_ReservePS(	TI_HANDLE 	hMacServices,
328 									PowerMgr_802_11_PsMode_e 	psMode,
329  						 			BOOL  						sendNullDataOnExit,
330  									void * 						powerSaveCBObject,
331 									MacServices_powerSaveCmpltCB_t 			powerSaveCompleteCB);
332 
333 
334 /**
335  * \author Assaf Azulay
336  * \date 24-Oct-2005\n
337  * \brief end the temporary change of system policy, and returns to the user system policy.
338  *
339  * Function Scope \e Public.\n
340  * Parameters:\n
341  * 1) TI_HANDLE - handle to the powerSrv object.\n
342  * 2) char* - the clinet name that ask for driver mode.\n
343  * Return Value: TI_STATUS - OK on success else NOK.\n
344  * \b Description:\n
345  * enter in to configuration of the driver that in higher priority from the user.\n
346  * the configuration is:\n
347  * end the user mode configuration (driver mode priority) and returns the user configuration
348  * (user mode priority).
349 */
350 TI_STATUS MacServices_powerSrv_ReleasePS( 	TI_HANDLE 	hMacServices,
351 									BOOL  						sendNullDataOnExit,
352  						 			void *  						powerSaveCBObject,
353  									MacServices_powerSaveCmpltCB_t  			powerSaveCompleteCB);
354 
355 
356 /**
357  * \author Assaf Azulay
358  * \date 24-Oct-2005\n
359  * \brief reflects the actual state of the state machine
360  *
361  * Function Scope \e Public.\n
362  * Parameters:\n
363  * 1) TI_HANDLE - handle to the powerSrv object.\n
364  * Return Value:\n
365  * BOOLEAN - thre is in PS false otherwise.\n
366 */
367 BOOLEAN MacServices_powerSrv_getPsStatus(TI_HANDLE hMacServices);
368 
369 
370 /**
371  * \author Assaf Azulay
372  * \date 24-Oct-2005\n
373  * \sets the rate as got from user else sets default value.\n
374  *
375  * Function Scope \e Public.\n
376  * Parameters:\n
377  * 1) TI_HANDLE 	- handle to the powerSrv object.\n
378  * 2) UINT16		- desierd rate .\n
379  * Return Value:\n
380  * void.\n
381 */
382 void MacServices_powerSrv_SetRateModulation(TI_HANDLE hMacServices, UINT16  rate);
383 /**
384  * \Return the alrweady seted rate.\n
385  *
386  * Function Scope \e Public.\n
387  * Parameters:\n
388  * TI_HANDLE 	- handle to the powerSrv object.\n
389  * Return Value: UINT16		- desierd rate .\n
390  * void.\n
391 */
392 UINT16 MacServices_powerSrv_GetRateModulation(TI_HANDLE hMacServices);
393 
394 
395 
396 
397 /***********************************************************************
398  *	Measurement SRV API functions
399  ***********************************************************************/
400 
401 /**
402  * \author Ronen Kalish\n
403  * \date 09-November-2005\n
404  * \brief Starts a measurement operation.\n
405  *
406  * Function Scope \e Public.\n
407  * \param hMacServices - handle to the MacServices object.\n
408  * \param pMsrRequest - a structure containing measurement parameters.\n
409  * \param timeToRequestExpiryMs - the time (in milliseconds) the measurement SRV has to start the request.\n
410  * \param cmdResponseCBFunc - callback function to used for command response.\n
411  * \param cmdResponseCBObj - handle to pass to command response CB.\n
412  * \param cmdCompleteCBFunc - callback function to be used for command complete.\n
413  * \param cmdCompleteCBObj - handle to pass to command complete CB.\n
414  * \return OK if successful (various, TBD codes if not).\n
415  */
416 TI_STATUS MacServices_measurementSRV_startMeasurement( TI_HANDLE hMacServices,
417                                                        measurement_request_t* pMsrRequest,
418 													   UINT32 timeToRequestExpiryMs,
419                                                        CmdResponseCB_t cmdResponseCBFunc,
420                                                        TI_HANDLE cmdResponseCBObj,
421                                                        measurement_srvCompleteCB_t cmdCompleteCBFunc,
422                                                        TI_HANDLE cmdCompleteCBObj );
423 
424 /**
425  * \author Ronen Kalish\n
426  * \date 09-November-2005\n
427  * \brief Stops a measurement operation in progress.\n
428  *
429  * Function Scope \e Public.\n
430  * \param hMacServices - handle to the MacServices object.\n
431  * \param bSendNullData - whether to send NULL data when exiting driver mode.\n
432  * \param cmdResponseCBFunc - callback function to used for command response.\n
433  * \param cmdResponseCBObj - handle to pass to command response CB.\n
434  * \return OK if successful (various, TBD codes if not).\n
435  */
436 TI_STATUS MacServices_measurementSRV_stopMeasurement( TI_HANDLE hMacServices,
437 													  BOOLEAN bSendNullData,
438                                                       CmdResponseCB_t cmdResponseCBFunc,
439                                                       TI_HANDLE cmdResponseCBObj );
440 
441 /**
442  * \author Ronen Kalish\n
443  * \date 09-November-2005\n
444  * \brief Notifies the measurement SRV of a FW reset (recovery).\n
445  *
446  * Function Scope \e Public.\n
447  * \param hMacServices - handle to the MacServices object.\n
448  */
449 void MacServices_measurementSRV_FWReset( TI_HANDLE hMacServices );
450 
451 /**
452  * \author Ronen Kalish\n
453  * \date 09-November-2005\n
454  * \brief callback function used by the power manager to notify driver mode result
455  *
456  * Function Scope \e Public.\n
457  * \param hMeasurementSRV - handle to the measurement SRV object.\n
458  * \param PSMode - the power save mode the STA is currently in.\n
459  * \param psStatus - the power save request status.\n
460  */
461 void MacServices_measurementSRV_powerSaveCB( TI_HANDLE hMeasurementSRV, UINT8 PSMode,UINT8 psStatus );
462 
463 /**
464  * \author Ronen Kalish\n
465  * \date 14-November-2005\n
466  * \brief callback function used by the HAL for measure start event (sent when the FW
467  * has started measurement operation, i.e. switched channel and changed RX filters).\n
468  *
469  * Function Scope \e Public.\n
470  * \param hMeasurementSRV - handle to the measurement SRV object.\n
471  */
472 void MacServices_measurementSRV_measureStartCB( TI_HANDLE hMeasurementSRV );
473 
474 /**
475  * \author Ronen Kalish\n
476  * \date 14-November-2005\n
477  * \brief callback function used by the HAL for measure stop event (sent when the FW
478  * has finished measurement operation, i.e. switched channel to serving channel and changed back RX filters).\n
479  *
480  * Function Scope \e Public.\n
481  * \param hMeasurementSRV - handle to the measurement SRV object.\n
482  */
483 void MacServices_measurementSRV_measureCompleteCB( TI_HANDLE hMeasurementSRV );
484 
485 /**
486  * \author Ronen Kalish\n
487  * \date 14-November-2005\n
488  * \brief callback function used by the HAL for AP discovery stop event (sent when the FW
489  * has finished AP discovery operation).\n
490  *
491  * Function Scope \e Public.\n
492  * \param hMeasurementSRV - handle to the measurement SRV object.\n
493  */
494 void MacServices_measurementSRV_apDiscoveryCompleteCB( TI_HANDLE hMeasurementSRV );
495 
496 /**
497  * \author Ronen Kalish\n
498  * \date 16-November-2005\n
499  * \brief Callback for channel load get param call.\n
500  *
501  * Function Scope \e Public.\n
502  * \param hMeasurementSRV - handle to the measurement SRV object.\n
503  * \param status - the get_param call status.\n
504  * \param CB_buf - pointer to the results buffer (already on the measurement SRV object)
505  */
506 void MacServices_measurementSRV_channelLoadParamCB( TI_HANDLE hMeasurementSRV, TI_STATUS status, UINT8* CB_buf );
507 
508 /**
509  * \date 03-January-2005\n
510  * \brief Dummy callback for channel load get param call. Used to clear the channel load tracker.\n
511  *
512  * Function Scope \e Public.\n
513  * \param hMeasurementSRV - handle to the measurement SRV object.\n
514  * \param status - the get_param call status.\n
515  * \param CB_buf - pointer to the results buffer (already on the measurement SRV object)
516  */
517 void MacServices_measurementSRV_dummyChannelLoadParamCB( TI_HANDLE hMeasurementSRV, TI_STATUS status, UINT8* CB_buf );
518 
519 /**
520  * \author Ronen Kalish\n
521  * \date 16-November-2005\n
522  * \brief Callback for noise histogram get param call.\n
523  *
524  * Function Scope \e Public.\n
525  * \param hMeasurementSRV - handle to the measurement SRV object.\n
526  * \param status - the get_param call status.\n
527  * \param CB_buf - pointer to the results buffer (already on the measurement SRV object)
528  */
529 void MacServices_measurementSRV_noiseHistCallBack(TI_HANDLE hMeasurementSRV, TI_STATUS status, UINT8* CB_buf);
530 
531 /**
532  * \author Ronen Kalish\n
533  * \date 14-November-2005\n
534  * \brief called when a measurement FW guard timer expires.
535  *
536  * Function Scope \e Public.\n
537  * \param hMeasuremntSRV - handle to the measurement SRV object.\n
538  */
539 void MacServices_measurementSRV_startStopTimerExpired( TI_HANDLE hMeasurementSRV );
540 
541 /**
542  * \author Ronen Kalish\n
543  * \date 15-November-2005\n
544  * \brief called when a measurement type timer expires.\n
545  *
546  * Function Scope \e Public.\n
547  * \param hMeasuremntSRV - handle to the measurement SRV object.\n
548  */
549 void MacServices_measurementSRV_requestTimerExpired( TI_HANDLE hMeasurementSRV );
550 
551 
552 /**
553  * \author Victor Eisikovits\n
554  * \date 24-Nov-2005\n
555  * \brief updates the PowerPolicy and calcs the new MinPowerPolicy of the sustem
556  *
557  * Function Scope \e Public.\n
558  * \param 	hMacServices - the handle to the MacServices module.
559  *			aPowerPolicy - the new power policy.
560  */
561 int MacServices_powerAutho_PowerPolicyUpdate(TI_HANDLE hMacServices, powerAutho_PowerPolicy_e aPowerPolicy);
562 
563 /**
564  * \author Victor Eisikovits\n
565  * \date 24-Nov-2005\n
566  * \brief send the min power level to the FW for the first time
567  *
568  * Function Scope \e Public.\n
569  * \param 	hMacServices - the handle to the MacServices module.
570  */
571 int MacServices_powerAutho_ExitFromInit(TI_HANDLE hMacServices);
572 
573 /**
574  * \author Victor Eisikovits\n
575  * \date 24-Nov-2005\n
576  * \brief updates the AwakeRequired and calcs the new MinPowerPolicy of the sustem
577  *
578  * Function Scope \e Public.\n
579  * \param 	hMacServices - the handle to the MacServices module.
580  *			aAwakeRequired - the awake required parameter,
581  *				can be according to the enum required or not_required.
582  */
583 int MacServices_powerAutho_AwakeRequiredUpdate(TI_HANDLE hMacServices, MacServices_powerAutho_AwakeRequired_e aAwakeRequired, MacServices_powerAutho_AwakeReason_e aAwakeReason);
584 
585 int MacServices_powerAutho_EndRecovery(TI_HANDLE hMacServices);
586 
587 int powerAutho_Restart(TI_HANDLE hPowerAutho);
588 
589 #endif /* __MACSERVICESAPI_H__ */
590