global items used:
template implementation (gps_sw.cpp):
ACGps
*CGpsTemplate::NewGPS (CClockInterface *clock): Returns a
new object of type CSoftwareGps. If clock is NULL, an
assert fails.
member functions:
CSoftwareGps
(CClockInterface *clock): Just calls the ctor of the base class. If
clock is NULL, an assert fails.
virtual
~CSoftwareGps(): disable all GPS interrupts that are stored in derived
member enableMask.
virtual
void ClearGpsInterrupt(): Clears the interrupt that was triggered
by the end of the GPS time information. The function is empty.
virtual
void DisableGps (EGpsUnit gpu): Disables the GPS time interrupt of
the GPS interrupt process. Like EnableGps(), the function gets
the GPS interrupt process and disables the GPS time interrupts. The appropriate
bit in enableMask and statusMask is cleared.
virtual
void EnableGps (EGpsUnit gpu): Enables the GPS time interrupt of the
GPS interrupt process. The function obtains a pointer to the software clock
from the inherited member clock and calls CSoftwareClock::GetGpsInterrupt()
to get (maybe create) the GPS interrupt process. It enables the GPS time
interrupt of this process, and sets the appropriate bit of enableMask
to 1, then calls SetGpsStatus() to set the status of this gpu
to False.
virtual
EGpsUnit GetGpsNumber(): Returns the GPU to which the receiver that
has last captured the timestamp is connected. This information is obtained
through a call to function GetGpsUnit() of the software clock.
virtual
void GetGpsTime (CNtpTime& time): Reads the global simulation
time, converts it to the NTP format and stores it in time.