Lines Matching +full:power +full:- +full:off +full:- +full:time +full:- +full:sec
2 …* /src/NTP/REPOSITORY/ntp4-dev/include/mbg_gps166.h,v 4.7 2006/06/22 18:41:43 kardel RELEASE_20060…
11 * Copyright (c) 1997-2005 by Frank Kardel <kardel <AT> ntp.org>
56 * standard time string automatically once per second, once per
77 * The Unix time_t epoch is usually 1970-01-01 00:00 whereas
78 * the GPS epoch is 1980-01-06 00:00, so the difference is 10 years,
80 * of the day-of-month (6 - 1), so:<br>
126 * @brief Enumeration of modes supported for time string transmission
128 * This determines e.g. at which point in time a string starts
199 * The individual command codes are marked with (rwa) accordingly, where '-' is used
217 GPS_AUTO_ON = 0x000, ///< (-w-) no data, enable auto-msgs from device
218 GPS_AUTO_OFF, ///< (-w-) no data, disable auto-msgs from device
219 …GPS_SW_REV, ///< (r--) deprecated, ::SW_REV, software revision, use only if ::GPS_RECEIV…
220 …GPS_BVAR_STAT, ///< (r--) ::BVAR_STAT, status of buffered variables, only if ::GPS_MODEL_HA…
221 GPS_TIME, ///< (-wa) ::TTM, current time or capture, or init board time
222 …GPS_POS_XYZ, ///< (rw-) ::XYZ, current position in ECEF coordinates, only if ::GPS_MODEL_…
223 …GPS_POS_LLA, ///< (rw-) ::LLA, current position in geographic coordinates, only if ::GPS_…
224 GPS_TZDL, ///< (rw-) ::TZDL, time zone / daylight saving, only if ::GPS_MODEL_HAS_TZDL
225 …GPS_PORT_PARM, ///< (rw-) deprecated, ::PORT_PARM, use ::PORT_SETTINGS etc. if ::GPS_RECEIV…
226 GPS_SYNTH, ///< (rw-) ::SYNTH, synthesizer settings, only if ::GPS_HAS_SYNTH
227 …GPS_ANT_INFO, ///< (r-a) ::ANT_INFO, time diff after antenna disconnect, only if ::GPS_MOD…
228 GPS_UCAP, ///< (r-a) ::TTM, user capture events, only if ::RECEIVER_INFO::n_ucaps > 0
231 GPS_CFGH = 0x100, ///< (rw-) ::CFGH, SVs' configuration and health codes
232 GPS_ALM, ///< (rw-) req: uint16_t SV num, ::SV_ALM, one SV's almanac
233 GPS_EPH, ///< (rw-) req: uint16_t SV num, ::SV_EPH, one SV's ephemeris
234 GPS_UTC, ///< (rw-) ::UTC, GPS %UTC correction parameters
235 GPS_IONO, ///< (rw-) ::IONO, GPS ionospheric correction parameters
236 GPS_ASCII_MSG ///< (r--) ::ASCII_MSG, the GPS ASCII message
241 typedef uint16_t CSUM; /* checksum used by some structures stored in non-volatile memory */
302 typedef uint16_t IOD; ///< Issue-Of-Data code
324 * non-volatile memory is not available, or incomplete.
325 * Most data sets will just be re-collected from the data streams sent
327 * computed earlier during normal operation, and will be re-computed
365 * @brief A structure used to hold time in GPS format
367 * Date and time refer to the linear time scale defined by GPS, with
370 * GPS time is counted by the week numbers since the epoch, plus second
374 * the receiver's internal time.
376 * %UTC time differs from GPS time since a number of leap seconds have
377 * been inserted in the %UTC time scale after the GPS epoche. The number
384 uint32_t sec; ///< the second of that week member
391 * @brief Local date and time computed from GPS time
394 * from GPS time. Additional corrections could have been made according
395 * to the time zone/daylight saving parameters ::TZDL defined by the user.
399 * @note Conversion from GPS time to %UTC and/or local time can only be
401 * receiver's non-volatile memory.
412 int8_t sec; ///< seconds, 0..59, or 60 in case of inserted leap second member
414 int32_t offs_from_utc; ///< local time offset from %UTC [sec]
424 * These bits report info on the time conversion from GPS time to %UTC
425 * and/or local time as well as device status info.
432 TM_BIT_LOCAL, ///< %UTC has been converted to local time according to ::TZDL settings
437 TM_BIT_LS_ANN_NEG, ///< set in addition to ::TM_BIT_LS_ANN if leap sec is negative
438 TM_BIT_INVT, ///< invalid time, e.g. if RTC battery bas been empty
446 TM_BIT_NO_SYNC, ///< time sync actually not verified
447 TM_BIT_NO_POS ///< position actually not verified, LOCK LED off
454 * These bits report info on the time conversion from GPS time to %UTC
455 * and/or local time as well as device status info.
482 * @brief A structure used to transmit information on date and time
484 * This structure can be used to transfer the current time, in which
485 * case the channel field has to be set to -1, or an event capture time
486 * retrieved from the on-board FIFO, in which case the channel field
487 * contains the index of the time capture input, e.g. 0 or 1.
491 int16_t channel; ///< -1: the current on-board time; >= 0 the capture channel number
492 T_GPS t; ///< time in GPS scale and format
493 TM_GPS tm; ///< time converted to %UTC and/or local time according to ::TZDL settings
533 * the so-called geographic datum. GPS uses the WGS84 (World Geodetic System
552 * Phase may be in a range from -360 deg to +360 deg with a resolution
554 * -3600 to +3600.
566 * - freq == 1230 --> 123.0 Hz
567 * - freq == 1233 --> 123 1/3 Hz (real 1/3 Hz, NOT 123.3 Hz)
568 * - freq == 1235 --> 123.5 Hz
569 * - freq == 1236 --> 123 2/3 Hz (real 2/3 Hz, NOT 123.6 Hz)
581 #define N_SYNTH_RANGE ( MAX_SYNTH_RANGE - MIN_SYNTH_RANGE + 1 )
594 /* == MAX_SYNTH_FREQ * 10^(MAX_SYNTH_RANGE-1) */
606 ( ( ( N_SYNTH_RANGE - (_r) ) % ( N_SYNTH_FREQ_DIGIT - 1 ) ) + 1 )
631 int16_t freq; ///< four digits used; scale: 0.1 Hz; e.g. 1234 -> 123.4 Hz
633 int16_t phase; ///< -::MAX_SYNTH_PHASE..+::MAX_SYNTH_PHASE; >0 -> pulses later
639 _mbg_swab16( &(_p)->freq ); \
640 _mbg_swab16( &(_p)->range ); \
641 _mbg_swab16( &(_p)->phase ); \
651 SYNTH_OFF, ///< not enabled after power-up
678 * @defgroup group_tzdl Time zone / daylight saving parameters
683 * - offs = 3600L one hour from %UTC
684 * - offs_dl = 3600L one additional hour if daylight saving enabled
685 * - tm_on = first Sunday from March 25, 02:00:00h ( year |= ::DL_AUTO_FLAG )
686 * - tm_off = first Sunday from October 25, 03:00:00h ( year |= ::DL_AUTO_FLAG )
687 * - name[0] == "CET " name if daylight saving not enabled
688 * - name[1] == "CEST " name if daylight saving is enabled
693 * @brief The name of a time zone
700 * @brief Time zone / daylight saving parameters
702 * This structure is used to specify how a device converts on-board %UTC
703 * to local time, including computation of beginning and end of daylight
704 * saving time (DST), if required.
709 * and ::TZDL::tm_off members are ignored for the conversion to local time,
714 int32_t offs; ///< standard offset from %UTC to local time [sec]
715 int32_t offs_dl; ///< additional offset if daylight saving enabled [sec]
716 TM_GPS tm_on; ///< date/time when daylight saving starts
717 TM_GPS tm_off; ///< date/time when daylight saving ends
744 * receiver has re-synchronized to the satellite signal.
745 * In this case ::ANT_INFO::delta_t reports the time offset
747 * time has drifted while the antenna was disconnected.
752 TM_GPS tm_disconn; ///< time of antenna disconnect
753 TM_GPS tm_reconn; ///< time of antenna reconnect
754 int32_t delta_t; ///< clock offs at reconn. time in 1/::RECEIVER_INFO::ticks_per_sec units
780 T_GPS tot_51; ///< time of transmission, page 51
781 T_GPS tot_63; ///< time of transmission, page 63
782 T_GPS t0a; ///< complete reference time almanac
797 * consistency of the structure in non-volatile memory.
803 * GPS-%UTC time offset in addition to the whole seconds. This is evaluated
804 * by the receivers' firmware to convert GPS time to %UTC time.
807 * GPS time and %UTC, which corresponds to the number of leap seconds inserted
808 * into the %UTC time scale since GPS was put into operation in January 1980.
817 * can only define a point in time which is +/- 127 weeks off the current time.
825 * inside the +/- 127 week range.
834 T_GPS t0t; ///< Reference Time %UTC Parameters [wn|sec]
835 l_fp A0; ///< +- Clock Correction Coefficient 0 [sec]
836 l_fp A1; ///< +- Clock Correction Coefficient 1 [sec/sec]
840 int8_t delta_tls; ///< Current %UTC offset to GPS system time [sec]
841 …_t delta_tlsf; ///< Future %UTC offset to GPS system time after next leap second transition [sec]
861 * Needed to compute the position of a satellite at a given time with
870 HEALTH health; ///< health indication of transmitting SV [---]
874 T_GPS tt; ///< time of transmission
875 T_GPS t0c; ///< Reference Time Clock [---]
876 T_GPS t0e; ///< Reference Time Ephemeris [---]
878 l_fp sqrt_A; ///< Square Root of semi-major Axis [sqrt(m)]
879 l_fp e; ///< Eccentricity [---]
880 l_fp M0; ///< +- Mean Anomaly at Ref. Time [rad]
881 l_fp omega; ///< +- Argument of Perigee [rad]
882 l_fp OMEGA0; ///< +- Longit. of Asc. Node of orbit plane [rad]
883 l_fp OMEGADOT; ///< +- Rate of Right Ascension [rad/sec]
884 l_fp deltan; ///< +- Mean Motion Diff. from computed value [rad/sec]
885 l_fp i0; ///< +- Inclination Angle [rad]
886 l_fp idot; ///< +- Rate of Inclination Angle [rad/sec]
887 l_fp crc; ///< +- Cosine Corr. Term to Orbit Radius [m]
888 l_fp crs; ///< +- Sine Corr. Term to Orbit Radius [m]
889 l_fp cuc; ///< +- Cosine Corr. Term to Arg. of Latitude [rad]
890 l_fp cus; ///< +- Sine Corr. Term to Arg. of Latitude [rad]
891 l_fp cic; ///< +- Cosine Corr. Term to Inclination Angle [rad]
892 l_fp cis; ///< +- Sine Corr. Term to Inclination Angle [rad]
894 l_fp af0; ///< +- Clock Correction Coefficient 0 [sec]
895 l_fp af1; ///< +- Clock Correction Coefficient 1 [sec/sec]
896 l_fp af2; ///< +- Clock Correction Coefficient 2 [sec/sec^2]
897 l_fp tgd; ///< +- estimated group delay differential [sec]
901 uint8_t L2code; ///< code on L2 channel [---]
902 uint8_t L2flag; ///< L2 P data flag [---]
912 * is in view at a given time. Valid for an interval of more than 7 days
920 HEALTH health; ///< [---]
921 T_GPS t0a; ///< Reference Time Almanac [sec]
923 l_fp sqrt_A; ///< Square Root of semi-major Axis [sqrt(m)]
924 l_fp e; ///< Eccentricity [---]
926 l_fp M0; ///< +- Mean Anomaly at Ref. Time [rad]
927 l_fp omega; ///< +- Argument of Perigee [rad]
928 l_fp OMEGA0; ///< +- Longit. of Asc. Node of orbit plane [rad]
929 l_fp OMEGADOT; ///< +- Rate of Right Ascension [rad/sec]
930 l_fp deltai; ///< +- [rad]
931 l_fp af0; ///< +- Clock Correction Coefficient 0 [sec]
932 l_fp af1; ///< +- Clock Correction Coefficient 1 [sec/sec]
946 l_fp alpha_0; ///< Ionosph. Corr. Coeff. Alpha 0 [sec]
947 l_fp alpha_1; ///< Ionosph. Corr. Coeff. Alpha 1 [sec/deg]
948 l_fp alpha_2; ///< Ionosph. Corr. Coeff. Alpha 2 [sec/deg^2]
949 l_fp alpha_3; ///< Ionosph. Corr. Coeff. Alpha 3 [sec/deg^3]
951 l_fp beta_0; ///< Ionosph. Corr. Coeff. Beta 0 [sec]
952 l_fp beta_1; ///< Ionosph. Corr. Coeff. Beta 1 [sec/deg]
953 l_fp beta_2; ///< Ionosph. Corr. Coeff. Beta 2 [sec/deg^2]
954 l_fp beta_3; ///< Ionosph. Corr. Coeff. Beta 3 [sec/deg^3]