Create the PGLOR,NET sentence to report network aiding and GPS results. More...

Functions | |
| void | GpsHalNrInit (void *pHal, pFunc_PrintPglorNet_t pFunc, int bFull) |
| Initialize the PGLOR,NET data: provide the HAL and a callback function to handle the printing. | |
| void | GpsHalNrSetPosSource (GL_POS_SOURCE source) |
| Sets the position source. | |
| GL_POS_SOURCE | GpsHalNrGetPosSource () |
| Gets the position source. | |
| void | GpsHalNrSetSessionType (PGLOR_NET_SESSION_TYPE t) |
| Sets the session type. | |
| PGLOR_NET_SESSION_TYPE | GpsHalNrGetSessionType () |
| Gets the session type. | |
| int | GpsHalNrControl (int iFlags, unsigned long ulTimeOffsetMS) |
| Control options: | |
| void | GpsHalNrFixStart (unsigned long ulFlags) |
| Call this function when starting a request that will result in a $PGLOR,NET,pass/fail message. | |
| void | GpsHalNrFixEnd (unsigned long ulFlags) |
| Indicate we got a fix (could be an unsuccessful fix). | |
| void | GpsHalNrProtocol (unsigned long ulFlag, unsigned long ulData) |
| Report AGPS protocol progress. Use the PGLOR_NET_*** bits to describe the protocol. | |
| void | GpsHalNrSessionStart (int bClear) |
| Report AGPS session is starting. | |
| unsigned long | GpsHalNrSessionStartTime () |
| Returns the session start time. | |
| unsigned long | GpsHalNrFixStartTime () |
| Returns the fix start time. | |
| void | GpsHalNrSessionEnd (unsigned long ulFlag, unsigned long ulData) |
| Report AGPS session is ending: start removing attributes of the session. | |
Create the PGLOR,NET sentence to report network aiding and GPS results.
The flags passed to GpsHalNr***() functions fall into these categories:
The flags are the logical OR of:
Or the flag can be:
| int GpsHalNrControl | ( | int | iFlags, |
| unsigned long | ulTimeOffsetMS | ||
| ) |
Control options:
| void GpsHalNrFixStart | ( | unsigned long | ulFlags | ) |
Call this function when starting a request that will result in a $PGLOR,NET,pass/fail message.
| unsigned long GpsHalNrFixStartTime | ( | void | ) |
Returns the fix start time.
Returns zero if fix process has not been started.
| void GpsHalNrInit | ( | void * | pHal, |
| pFunc_PrintPglorNet_t | cbPrint, | ||
| int | bFull | ||
| ) |
Initialize the PGLOR,NET data: provide the HAL and a callback function to handle the printing.
| void GpsHalNrSessionEnd | ( | unsigned long | ulFlag, |
| unsigned long | ulData | ||
| ) |
Report AGPS session is ending: start removing attributes of the session.
Handling of ulFlag is reversed in this function: the flags are removed.
| void GpsHalNrSessionStart | ( | int | bClear | ) |
Report AGPS session is starting.
You may use GpsHalNrProtocol() function to notify this event instead.
| bClear | [input] Clears the previous session completely. Otherwise, only the session start time will be updated. |
| unsigned long GpsHalNrSessionStartTime | ( | void | ) |
Returns the session start time.
Returns zero if session has not been started.