Lines Matching refs:pMacServices
60 MacServices_t *pMacServices = (MacServices_t*)os_memoryAlloc( hOS, sizeof(MacServices_t) );
61 if ( NULL == pMacServices )
68 pMacServices->hScanSRV = NULL;
69 pMacServices->hPowerSrv = NULL;
72 pMacServices->hScanSRV = MacServices_scanSRV_create(hOS);
73 if ( NULL == pMacServices->hScanSRV )
75 MacServices_destroy( pMacServices );
80 pMacServices->hMeasurementSRV = MacServices_measurementSRV_create( hOS );
81 if ( NULL == pMacServices->hMeasurementSRV )
83 MacServices_destroy(pMacServices);
87 pMacServices->hPowerSrv = powerSrv_create(hOS);
88 if (NULL == pMacServices->hPowerSrv )
90 MacServices_destroy(pMacServices);
95 pMacServices->hOS = hOS;
97 return pMacServices;
113 MacServices_t *pMacServices = (MacServices_t*)hMacServices;
116 if ( NULL != pMacServices->hScanSRV )
118 MacServices_scanSRV_destroy( pMacServices->hScanSRV );
120 if ( NULL != pMacServices->hMeasurementSRV )
122 MacServices_measurementSRV_destroy( pMacServices->hMeasurementSRV );
125 if(pMacServices->hPowerSrv)
126 powerSrv_destroy(pMacServices->hPowerSrv);
129 os_memoryFree( pMacServices->hOS, (TI_HANDLE)pMacServices , sizeof(MacServices_t) );
151 MacServices_t *pMacServices = (MacServices_t*)hMacServices;
155 MacServices_measurementSRV_init (pMacServices->hMeasurementSRV,
159 pMacServices->hPowerSrv,
162 if (powerSrv_init (pMacServices->hPowerSrv,
186 MacServices_t *pMacServices = (MacServices_t*)hMacServices;
188 if (powerSrv_config(pMacServices->hPowerSrv,&pInitParams->tPowerSrv) != TI_OK)
193 MacServices_scanSrv_config (pMacServices, &pInitParams->tScanSrv);
207 MacServices_t *pMacServices = (MacServices_t*)hMacServices;
209 scanSRV_restart (pMacServices->hScanSRV);
210 measurementSRV_restart (pMacServices->hMeasurementSRV);
211 powerSrv_restart (pMacServices->hPowerSrv);
231 MacServices_t *pMacServices = (MacServices_t*)hMacServices;
233 powerSrvRegisterFailureEventCB (pMacServices->hPowerSrv,
237 measurementSRVRegisterFailureEventCB (pMacServices->hMeasurementSRV,
241 scanSRV_registerFailureEventCB (pMacServices->hScanSRV,
268 MacServices_t *pMacServices = (MacServices_t*)hMacServices;
270 return powerSrv_SetPsMode (pMacServices->hPowerSrv,
298 MacServices_t *pMacServices = (MacServices_t*)hMacServices;
300 return powerSrv_ReservePS(pMacServices->hPowerSrv,psMode,sendNullDataOnExit,powerSaveCBObject,powerSaveCompleteCB);
322 MacServices_t *pMacServices = (MacServices_t*)hMacServices;
324 return powerSrv_ReleasePS(pMacServices->hPowerSrv,sendNullDataOnExit,powerSaveCBObject,powerSaveCompleteCB);
340 MacServices_t *pMacServices = (MacServices_t*)hMacServices;
342 return powerSrv_getPsStatus( pMacServices->hPowerSrv);
359 MacServices_t *pMacServices = (MacServices_t*)hMacServices;
361 powerSrv_SetRateModulation( pMacServices->hPowerSrv, rate);
367 MacServices_t *pMacServices = (MacServices_t*)hMacServices;
369 return powerSrv_GetRateModulation( pMacServices->hPowerSrv);