Windows HAL sample code: init and basic config structure.
More...
#include "glgps_hal_win_xp.h"
#include <stdlib.h>
#include <stdio.h>
#include <Winreg.h>
#include <shlobj.h>
#include "glgps_hal_gpio.h"
#include "glgps_hal_win_const.h"
#include "glgps_hal_sensors_win_xp.h"
#include <string>
#include <algorithm>
#include <windows.h>
Functions |
void | stack_repaint () |
| /file Initialization of the Windows HAL
|
GpsHal * | GpsHalCreateHal () |
| Creates HAL layer In this function the application can perform any needed initialization of the HAL.
|
void | GpsHalInit (GpsHal *pHal) |
| Initialize the HAL before first use.
|
void | GpsHalDestroy (GpsHal *pHal) |
| Destroys HAL; in this function the application can clean up the HAL as needed.
|
short | GpsHalOpen (GpsHal *pHal) |
| Opens GPS HAL.
|
void | GpsHalClose (GpsHal *pHal) |
| Closes GPS HAL This is where serial port is closed, TCXO power turned off, ASIC turned off.
|
void | GpsHalCloseLog (GpsHal *pHal) |
| The session has ended the log file can be closed.
|
static void | GpsHalPlatfSetCfgValue (GpsHal *pHal, const plain_char *pcAttrName, const plain_char *pcValue) |
| Sets the value of the parameter not recognized by the HAL config parser This the the Platform-specific parser a try.
|
void | GpsHalSetCfgValue (GpsHal *pHal, const plain_char *pcAttrName, const plain_char *pcValue) |
| Sets the value of the parameter not recognized by the GLCT config parser.
|
Detailed Description
Windows HAL sample code: init and basic config structure.
Function Documentation
Closes GPS HAL This is where serial port is closed, TCXO power turned off, ASIC turned off.
- Parameters:
-
- Precondition:
- pHal != NULL
Creates HAL layer In this function the application can perform any needed initialization of the HAL.
- Returns:
- valid pointer to GpsHalConfig structure, NULL in case of failure.
Destroys HAL; in this function the application can clean up the HAL as needed.
- Parameters:
-
- Precondition:
- pHal != NULL
Initialize the HAL before first use.
Prepares HAL to be opened.
Opens GPS HAL.
This is where serial port is opened, TCXO power turned on, ASIC turned on.
- Parameters:
-
- Return values:
-
0 | if success, non-zero otherwise |
- Precondition:
- pHal != NULL
Sets the value of the parameter not recognized by the GLCT config parser.
- Parameters:
-
pHal | Handle to HAL instance retrieved through prior call to GpsHalCreateHal(). |
pcAttrName | TODO: comment pcAttrName |
pcValue | TODO: comment pcValue |
- Precondition:
- pHal != NULL