ScriptDefinition object  Signature control

Chapter 2: System Object Properties, Events, and Functions

SerialGPS object

The SerialGPS object provides an interface to Bluetooth unit global positioning system (GPS) devices manufactured by Pharos and TomTom. The SerialGPS object inherits from the GPS base class.

In addition to the functions listed, this object inherits functions from the NonVisualObject object.

Properties

SerialGPS property

Datatype

Description

ClassDefinition

PowerObject

An object of type PowerObject containing information about the class definition of the object or control.

ConfigParams

String

Customization property that is currently undefined.

DeviceHandle

UnsignedLong

Read-only value containing a device-specific handle.

RawData

String

Read-only, raw, NMEA-formatted data without any parsing for validity.

SerialPort

String

Specifies the serial port used by the GPS device. For Bluetooth devices, the value of this property is typically COM8.

Vendor

String

Customization property that is currently undefined.

Events

SerialGPS event

Occurs

Constructor

When the object is created

Destructor

When the object is destroyed

Functions

SerialGPS function

Datatype returned

Description

Close

Integer

Closes a GPS communications channel if one is open and deactivates the data handlers.

GetFix

GPSFix

Populates the GPSFix structure with values from the current fix.

GetHeading

GPSHeading

Populates the GPSHeading structure with values from the current heading.

GetSatellitesInView

GPSSatellitesInView

Populates the GPSSatellitePosition and GPSSatellitesInView structures with position information from the current satellites in view.

Open

Integer

Initializes GPS data handlers and opens a communications channel. You can use an optional string argument to force-feed a single set of GPS data without opening a communications channel. If this argument is used, the data acquisition behavior of derived classes (SerialGPS) remains undefined.





Copyright © 2004. Sybase Inc. All rights reserved. Signature control

View this book as PDF