glreq_mgrs/glsupl/glsupl_arp.h File Reference

Contains interface to GLSUPL Application Request Processor. More...

Include dependency graph for glsupl_arp.h:

Functions

void GpsHalReceiveRti (void *pGlCtrl)
 Download rtistatus.dat and pass RTI to GlEngine.
Entry points to the GLSUPL Application Request Processor.

These entry points must be registered during GpsHalRegisterCustomEvent() HAL callback in order the for GLSUPL to be used

GlAppReqHdlr GlArpSuplCreate (void)
 This is the first entry point to GLSUPL Application Request Processor.
void GlArpSuplSetCfgValue (GlAppReqHdlr hdlr, const char *pcAttrName, const char *pcValue)
 This funcion is used to set parameters of GLSUPL Application Request Processor.
void GlArpSuplStart (GlAppReqHdlr hdlr, void *pGlCtrl)
 This funcion is called after GLCT is initialised.
void GlArpSuplEvents (GlAppReqHdlr hdlr, void *pGlCtrl, GPSCTRL_EVENT *pEvent)
 This funcion is called each time HAL receives the event GLCTEV_PAL_NRM_SUPL_DATA.
GPS HAL must implement these callbacks.

/*

void GpsHalPlatfCmdSuplInit (GpsHal *pHal)
void GpsHalSuplSetCfgValue (const char *pcAttrName, const char *pcValue)
void GpsHalSuplWrite (GpsHal *pHal, GLSUPL_Session *pSuplSession, const unsigned char *data, unsigned size)
 This is how GLSUPL sends the data to the network or local platform services.
void GpsHalSuplReqLocationId (GpsHal *pHal, GLSUPL_Session *pSuplSession)
 Requests CID Called by the SUPL engine to request the Cell Information.
void GpsHalSuplInitSession (GpsHal *pHal, GLSUPL_Session *pSuplSession)
 Init SUPL session Called by the SUPL engine to initialize SUPL session.
void GpsHalSuplInitPrepareVer (const unsigned char *pucBuffer, int iBytes, unsigned char *ver)
 Calculate HMAC for SUPL NI rquest This function is obsolete.
void GpsHalSuplReqConnection (GpsHal *pHal, GLSUPL_Session *pSuplSession, const GLSUPL_Connection *pSuplConnection)
 Requests TCP/IP Connection to SLP server called by the SUPL engine to request SUPL Connection SUPL Protocol stack waiting for glSuplConnect call which will inform about the result of this request.
void GpsHalSuplNotificationVerificarionReq (GpsHal *pHal, GLSUPL_Session *pSuplSession, const GLSUPL_Notification *notif)
 Inform that SLP requests for Notification & Verification called by the SUPL engine after receiving SUPL-INIT message requestorText and notificationText are allocated on stack and should be stored by application both pointers will be invalid after end of this function Application should response with glSuplVerificationRsp only if notification types are GL_SUPL_NOTIFICATION_AND_VERFICATION_ALLOWED or GL_SUPL_NOTIFICATION_AND_VERFICATION_DENIED.
void GpsHalSuplEndConnection (GpsHal *pHal, GLSUPL_Session *pSuplSession)
 Informs that connection to SLP server can be closed.
void GpsHalSuplEndSession (GpsHal *pHal, GLSUPL_Session *pSuplSession)
 Informs that session is finished.
void GpsHalSuplStartReAidTimer (GpsHal *pHal)
 Starts SUPL re-aiding timer.
void GpsHalSuplStopReAidTimer (GpsHal *pHal)
 Stops SUPL re-aiding timer.

Detailed Description

Contains interface to GLSUPL Application Request Processor.

Copyright 2001-2010 Broadcom Corporation -- http://www.broadcom.com This program is the proprietary software of Broadcom Corporation and/or its licensors, and may only be used, duplicated, modified or distributed pursuant to the terms and conditions of a separate, written license agreement executed between you and Broadcom (an "Authorized License"). Except as set forth in an Authorized License, Broadcom grants no license (express or implied), right to use, or waiver of any kind with respect to the Software, and Broadcom expressly reserves all rights in and to the Software and all intellectual property rights therein. IF YOU HAVE NO AUTHORIZED LICENSE, THEN YOU HAVE NO RIGHT TO USE THIS SOFTWARE IN ANY WAY, AND SHOULD IMMEDIATELY NOTIFY BROADCOM AND DISCONTINUE ALL USE OF THE SOFTWARE.


Function Documentation

This is the first entry point to GLSUPL Application Request Processor.

The pFCreate field of GlcReqMgrHandler must be set to point to this function during call to GpsHalRegisterCustomEvent() HAL callback

void GlArpSuplEvents ( GlAppReqHdlr  hdlr,
void *  pGlCtrl,
GPSCTRL_EVENT pEvent 
)

This funcion is called each time HAL receives the event GLCTEV_PAL_NRM_SUPL_DATA.

The pFprocEvent field of GlcReqMgrHandler must be set to point to this function during call to GpsHalRegisterCustomEvent() HAL callback

void GlArpSuplSetCfgValue ( GlAppReqHdlr  hdlr,
const char *  pcAttrName,
const char *  pcValue 
)

This funcion is used to set parameters of GLSUPL Application Request Processor.

The pFSetCfg field of GlcReqMgrHandler must be set to point to this function during call to GpsHalRegisterCustomEvent() HAL callback

void GlArpSuplStart ( GlAppReqHdlr  hdlr,
void *  pGlCtrl 
)

This funcion is called after GLCT is initialised.

The pFStart field of GlcReqMgrHandler must be set to point to this function during call to GpsHalRegisterCustomEvent() HAL callback

void GpsHalSuplInitPrepareVer ( const unsigned char *  pucBuffer,
int  iBytes,
unsigned char *  ver 
)

Calculate HMAC for SUPL NI rquest This function is obsolete.

Now glsupl_NetworkRequest() can calculate HMAC inside supl library

void GpsHalSuplWrite ( GpsHal pHal,
GLSUPL_Session pSuplSession,
const unsigned char *  data,
unsigned  size 
)

This is how GLSUPL sends the data to the network or local platform services.

called by the SUPL engine to write the encoded bytes to the network.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines