mbgtools-lx
4.2.8
|
#include <str_util.h>
#include <charcode.h>
#include <cfg_hlp.h>
#include <pcpsdev.h>
#include <ctrydttm.h>
#include <cnv_wday.h>
Go to the source code of this file.
Data Structures | |
struct | PCPS_STATUS_STR |
struct | PCPS_STATUS_STRS |
Macros | |
#define | _ext extern |
#define | DEFAULT_PCPS_WDAY_DATE_DIST 1 |
#define | DEFAULT_PCPS_DATE_TIME_DIST 2 |
#define | DEFAULT_PCPS_TIME_TZ_DIST 1 |
#define | N_PCPS_STATUS_STR 3 |
#define | DEFAULT_STR_TIME_ADJ_STATUS |
#define | DEFAULT_STR_SYS_TIME |
#define | DEFAULT_STR_REF_TIME |
#define | DEFAULT_STR_DELTA_TIME |
#define | DEFAULT_STR_LAST_CORR |
#define | DEFAULT_STR_WAIT_SYNC |
#define | DEFAULT_STR_REF_TIME_INFO |
#define | DEFAULT_STR_REF_SRC_LABEL |
#define | DEFAULT_STR_REF_SYNC_LABEL |
#define | DEFAULT_STR_TIME_INVAL_EN "Ref. Time is Invalid" |
#define | DEFAULT_STR_TIME_INVAL_DE "Referenzzeit nicht g" LCUE "ltig" |
#define | DEFAULT_STR_TIME_INVAL |
#define | DEFAULT_STR_SET_MANUALLY |
#define | DEFAULT_STR_DCF_HAS_SYNCD |
#define | DEFAULT_STR_DCF_HAS_NOT_SYNCD |
#define | DEFAULT_STR_DCF_FREE_RUNNING |
#define | DEFAULT_STR_DCF_NOT_FREE_RUNNING |
#define | DEFAULT_STR_GPS_SYNCD |
#define | DEFAULT_STR_GPS_NOT_SYNCD |
#define | DEFAULT_STR_GPS_POS_OK |
#define | DEFAULT_STR_GPS_POS_NOT_OK |
#define | DEFAULT_STR_ANN_DST |
#define | DEFAULT_STR_ANN_LS |
#define | DEFAULT_OPT_NAME_SETUP_EN "Setup" |
#define | DEFAULT_OPT_NAME_SETUP_DE "Einstellungen" |
#define | DEFAULT_OPT_NAME_SETUP |
#define | DEFAULT_OPT_NAME_SET_TIME_EN "Radio Clock's Date/Time" |
#define | DEFAULT_OPT_NAME_SET_TIME_DE "Datum/Zeit der Funkuhr" |
#define | DEFAULT_OPT_NAME_SET_TIME |
#define | DEFAULT_STR_NEW_DATE |
#define | DEFAULT_STR_NEW_TIME |
#define | TZ_NAME_UTC "UTC" |
#define | TZ_NAME_MEZ "MEZ" |
#define | TZ_NAME_MESZ "MESZ" |
#define | TZ_NAME_CET "CET" |
#define | TZ_NAME_CEST "CEST" |
#define | TZ_NAME_OEZ "OEZ" |
#define | TZ_NAME_OESZ "OESZ" |
#define | TZ_NAME_EET "EET" |
#define | TZ_NAME_EEST "EEST" |
#define | TZ_NAME_WEZ "WEZ" |
#define | TZ_NAME_WESZ "WESZ" |
#define | TZ_NAME_GMT "GMT" |
#define | TZ_NAME_BST "BST" |
#define | DEFAULT_OPT_NAME_TZ |
#define | DEFAULT_TZCODE_NAME_CET_CEST |
#define | DEFAULT_TZCODE_HINT_CET_CEST |
#define | DEFAULT_TZCODE_NAME_GMT_BST |
#define | DEFAULT_TZCODE_HINT_GMT_BST |
#define | DEFAULT_TZCODE_NAME_CET |
#define | DEFAULT_TZCODE_HINT_CET |
#define | DEFAULT_TZCODE_NAME_UTC |
#define | DEFAULT_TZCODE_HINT_UTC |
#define | DEFAULT_TZCODE_NAME_EET_EEST |
#define | DEFAULT_TZCODE_HINT_EET_EEST |
#define | DEFAULT_TZCODE_NAMES |
#define | DEFAULT_TZCODE_HINTS |
#define | DEFAULT_OPT_NAME_SERIAL |
#define | DEFAULT_OPT_NAME_EF |
#define | DEFAULT_OPT_NAME_CAB_LEN |
#define | DEFAULT_OPT_NAME_TR_DISTANCE |
#define | DEFAULT_OPT_NAME_IRIG_TX_EN "IRIG Output" |
#define | DEFAULT_OPT_NAME_IRIG_TX_DE "IRIG-Ausgang" |
#define | DEFAULT_OPT_NAME_IRIG_TX |
#define | DEFAULT_OPT_NAME_IRIG_RX_EN "IRIG Input" |
#define | DEFAULT_OPT_NAME_IRIG_RX_DE "IRIG-Eingang" |
#define | DEFAULT_OPT_NAME_IRIG_RX |
#define | DEFAULT_STR_IRIG_FMT_EN "IRIG Code Format" |
#define | DEFAULT_STR_IRIG_FMT_DE "IRIG Code-Format" |
#define | DEFAULT_STR_IRIG_FMT |
#define | DEFAULT_STR_IRIG_OFFS_EN "IRIG Time Offset from UTC" |
#define | DEFAULT_STR_IRIG_OFFS_DE "IRIG-Zeitoffset zu UTC" |
#define | DEFAULT_STR_IRIG_OFFS |
#define | DEFAULT_STR_IRIG_TIMESTR_UTC_EN "Send serial UTC" |
#define | DEFAULT_STR_IRIG_TIMESTR_UTC_DE "Seriell UTC ausgeben" |
#define | DEFAULT_STR_IRIG_TIMESTR_UTC |
#define | DEFAULT_STR_IRIG_OUTPUT_LOC_TM_EN "Transmit local time instead of UTC" |
#define | DEFAULT_STR_IRIG_OUTPUT_LOC_TM_DE "Ortszeit statt UTC aussenden" |
#define | DEFAULT_STR_IRIG_OUTPUT_LOC_TM |
#define | DEFAULT_IGNORE_RX_TFOM_EN "Ignore TFOM" |
#define | DEFAULT_IGNORE_RX_TFOM_DE "Ignoriere TFOM" |
#define | DEFAULT_IGNORE_RX_TFOM |
#define | DEFAULT_STR_TFOM_ALWAYS_SYNC_EN "Output TFOM always as 'sync'" |
#define | DEFAULT_STR_TFOM_ALWAYS_SYNC_DE "TFOM immer als 'sync' ausgeben" |
#define | DEFAULT_STR_TFOM_ALWAYS_SYNC |
#define | DEFAULT_STR_IRIG_NOT_CFGD_EN |
#define | DEFAULT_STR_IRIG_NOT_CFGD_DE |
#define | DEFAULT_STR_IRIG_NOT_CFGD |
#define | DEFAULT_STR_IRIG_INVT_EN |
#define | DEFAULT_STR_IRIG_INVT_DE |
#define | DEFAULT_STR_IRIG_INVT |
#define | DEFAULT_OPT_NAME_POUT |
#define | DEFAULT_OPT_NAME_SYNTH |
#define | DEFAULT_STR_SYNTH_FREQ |
#define | DEFAULT_STR_SYNTH_PHASE |
#define | DEFAULT_OPT_NAME_LAN_INTF_EN "LAN Interface" |
#define | DEFAULT_OPT_NAME_LAN_INTF_DE "Netzwerkschnittstelle" |
#define | DEFAULT_OPT_NAME_LAN_INTF |
#define | DEFAULT_OPT_NAME_PTP_CFG_EN "PTP Configuration" |
#define | DEFAULT_OPT_NAME_PTP_CFG_DE "PTP-Konfiguration" |
#define | DEFAULT_OPT_NAME_PTP_CFG |
#define | DEFAULT_OPT_NAME_PTP_UC_CFG_EN "PTP Unicast Configuration" |
#define | DEFAULT_OPT_NAME_PTP_UC_CFG_DE "PTP-Unicast-Konfiguration" |
#define | DEFAULT_OPT_NAME_PTP_UC_CFG |
#define | GER_MODE_NAME_STR_ON_REQ "nur auf Anfrage '?'" |
#define | GER_MODE_NAME_STR_PER_SEC "sek" LCUE "ndlich" |
#define | GER_MODE_NAME_STR_PER_MIN "min" LCUE "tlich" |
#define | GER_MODE_NAME_STR_AUTO "automatisch" |
#define | GER_MODE_NAME_STR_ON_REQ_SEC "sek" LCUE "ndlich nach Anfrage" |
#define | DEFAULT_MODE_NAMES |
#define | GER_POUT_NAME_IDLE "Nicht verwendet" |
#define | GER_POUT_NAME_TIMER "Zeitschaltung" |
#define | GER_POUT_NAME_SINGLE_SHOT "Einzelimpuls" |
#define | GER_POUT_NAME_CYCLIC_PULSE "Zyklischer Impuls" |
#define | GER_POUT_NAME_PER_SEC "Sek" LCUE "ndlicher Impuls" |
#define | GER_POUT_NAME_PER_MIN "Min" LCUE "tlicher Impuls" |
#define | GER_POUT_NAME_PER_HOUR "St" LCUE "ndlicher Impuls" |
#define | GER_POUT_NAME_DCF77 "DCF77-Zeitmarken" |
#define | GER_POUT_NAME_POS_OK "Position OK" |
#define | GER_POUT_NAME_TIME_SYNC "Zeit synchron" |
#define | GER_POUT_NAME_ALL_SYNC "Alles synchron" |
#define | GER_POUT_NAME_TIMECODE "DCLS-Zeitcode" |
#define | GER_POUT_NAME_TIMESTR "Serielles Zeittelegramm" |
#define | GER_POUT_NAME_10MHZ "Festfrequenz 10 MHz" |
#define | GER_POUT_NAME_DCF77_M59 "DCF77-Zeitmarken mit 59. Impuls" |
#define | GER_POUT_NAME_SYNTH "Synthesizer-Frequenz" |
#define | GER_POUT_NAME_TIME_SLOTS "Zeitschlitze pro Minute" |
#define | GER_POUT_NAME_GPIO "GPIO-Signal" |
#define | GER_POUT_PTTI_PPS "PTTI 1 PPS" |
#define | GER_POUT_HAVEQUICK "HaveQuick" |
#define | DEFAULT_GER_POUT_NAMES |
#define | GER_POUT_HINT_IDLE "Konstanter Ausgangspegel" |
#define | GER_POUT_HINT_TIMER "Schalten zu den angegebenen Zeiten" |
#define | GER_POUT_HINT_SINGLE_SHOT "Einzelner Impuls mit angegebener L" LCAE "nge" |
#define | GER_POUT_HINT_CYCLIC_PULSE "Impulse wiederholt nach angegebenem Intervall" |
#define | GER_POUT_HINT_PER_SEC "Impuls zu Beginn jeder Sekunde" |
#define | GER_POUT_HINT_PER_MIN "Impuls zu Beginn jeder Minute" |
#define | GER_POUT_HINT_PER_HOUR "Impuls zu Beginn jeder Stunde" |
#define | GER_POUT_HINT_DCF77 "DCF77-kompatible Zeitmarken" |
#define | GER_POUT_HINT_POS_OK "Schalten, wenn Empf" LCAE "ngerposition " LCUE "berpr" LCUE "ft" |
#define | GER_POUT_HINT_TIME_SYNC "Schalten, wenn Zeit synchron" |
#define | GER_POUT_HINT_ALL_SYNC "Schalten, wenn Zeit synchron und Position " LCUE "berpr" LCUE "ft" |
#define | GER_POUT_HINT_TIMECODE "Unmodulierter Zeitcode des IRIG-Ausgangs" |
#define | GER_POUT_HINT_TIMESTR "Zeittelegramm der seriellen Schnittstelle der Karte duplizieren" |
#define | GER_POUT_HINT_10MHZ "Feste Ausgangsfrequenz 10 MHz" |
#define | GER_POUT_HINT_DCF77_M59 "Zeitmarken wie DCF77, aber mit 500 ms Impuls in 59. Sekunde" |
#define | GER_POUT_HINT_SYNTH "Durch programmierbaren Synthesizer erzeugte Frequenz" |
#define | GER_POUT_HINT_TIME_SLOTS "Programmierbare Zeitslots, die in jeder Minute aktiviert werden" |
#define | GER_POUT_HINT_GPIO "Signal des spezifizierten GPIO-Ein- oder Ausgangs" |
#define | GER_POUT_HINT_PTTI_PPS "20 us-Impuls zum Sekundenbeginn" |
#define | GER_POUT_HINT_HAVEQUICK "Dupliziertes HaveQuick-Signal" |
#define | DEFAULT_GER_POUT_HINTS |
#define | _pcps_snprint_vernum_dec(_s, _sz, _v) |
#define | _pcps_snprint_vernum_hex(_s, _sz, _v) |
#define | _pcps_snprint_vernum _pcps_snprint_vernum_hex |
#define | _pcps_snprint_dev_id(_s, _sz, _n) snprintf_safe( (_s), (_sz), "%04Xh", _n ) |
#define | _pcps_snprint_wday(_s, _sz, _t, _l) snprint_ctry_wday( (_s), (_sz), _wday_mon17_to_sun06( (_t)->wday ), (_l) ) |
#define | _pcps_snprint_date(_s, _sz, _t, _yl) |
#define | _pcps_snprint_time(_s, _sz, _t) snprint_ctry_tm( (_s), (_sz), (_t)->hour, (_t)->min, (_t)->sec ) |
#define | _pcps_snprint_time_long(_s, _sz, _t) snprint_ctry_tm_long( (_s), (_sz), (_t)->hour, (_t)->min, (_t)->sec, (_t)->sec100, 2 ) |
#define | _cput_pcps_date(_t, _yl) |
#define | _cput_pcps_time(_t) |
#define | _cput_pcps_time_long(_t) |
#define | _cput_pcps_date_and_time(_t, _yl, _tz) |
Enumerations | |
enum | PCPS_TZ_NAME_BITS { PCPS_TZ_NAME_BIT_FORCE_UTC_OFFS, PCPS_TZ_NAME_BIT_APP_DST, N_PCPS_TZ_NAME_FLAG } |
Flag bits used to define PCPS_TZ_NAME_FLAGS. More... | |
enum | PCPS_TZ_NAME_FLAGS { PCPS_TZ_NAME_FORCE_UTC_OFFS = ( 1UL << PCPS_TZ_NAME_BIT_FORCE_UTC_OFFS ), PCPS_TZ_NAME_APP_DST = ( 1UL << PCPS_TZ_NAME_BIT_APP_DST ) } |
Flag bits used to control the string generated by pcps_tz_name. More... | |
Functions | |
const char * | inv_str (void) |
Return a language dependend string for "invalid". More... | |
const char * | pcps_tz_name (const PCPS_TIME *t, ulong flags, int is_msf) |
Return a static time zone string depending on the UTC offset from a PCPS_TIME structure. More... | |
const char * | pcps_tz_name_from_hr_time (const PCPS_HR_TIME *hrt, ushort flags, int is_msf) |
Return a static time zone string depending on the UTC offset from a PCPS_HR_TIME structure. More... | |
const char * | pcps_tz_name_hr_status (const PCPS_HR_TIME *t, ushort flags, int is_msf) |
Return a static time zone string depending on the UTC offset from a PCPS_HR_TIME structure. More... | |
const char * | pcps_tz_name_from_status (PCPS_TIME_STATUS_X status) |
Return a static time zone string depending on the UTC offset from a PCPS_HR_TIME structure. More... | |
char * | pcps_date_time_str (char *s, size_t max_len, const PCPS_TIME *t, int year_limit, const char *tz_str) |
int | pcps_str_tm_gps_date_time (char *s, size_t max_len, const TM_GPS *t) |
char * | pcps_date_time_wstr (char *ws, size_t count, const PCPS_TIME *t, ushort year_limit, const char *tz_str) |
void | pcps_status_strs (ushort status, int status_is_read, int is_gps, PCPS_STATUS_STRS *pstrs) |
char * | pcps_port_str (char *s, size_t max_len, const PCPS_DEV *pdev) |
const char * | pcps_tzcode_str (PCPS_TZCODE tzcode) |
char * | pcps_serial_str (char *s, size_t max_len, int i, const RECEIVER_PORT_CFG *p, const RECEIVER_INFO *p_ri, int short_strs) |
Variables | |
CLSTR | lstr_cet |
CLSTR | lstr_cest |
CLSTR | lstr_gmt |
CLSTR | lstr_bst |
CLSTR | tzcode_name [N_PCPS_TZCODE] |
int | pcps_wday_date_dist |
int | pcps_date_time_dist |
int | pcps_time_tz_dist |
const char * | mode_name [N_STR_MODE][N_LNG] |
const char * | short_mode_name [N_STR_MODE] |
#define _cput_pcps_date | ( | _t, | |
_yl | |||
) |
Definition at line 903 of file pcpslstr.h.
#define _cput_pcps_date_and_time | ( | _t, | |
_yl, | |||
_tz | |||
) |
Definition at line 924 of file pcpslstr.h.
#define _cput_pcps_time | ( | _t | ) |
Definition at line 910 of file pcpslstr.h.
#define _cput_pcps_time_long | ( | _t | ) |
Definition at line 917 of file pcpslstr.h.
#define _ext extern |
Definition at line 136 of file pcpslstr.h.
#define _pcps_snprint_date | ( | _s, | |
_sz, | |||
_t, | |||
_yl | |||
) |
Definition at line 892 of file pcpslstr.h.
Referenced by pcps_date_time_str().
#define _pcps_snprint_dev_id | ( | _s, | |
_sz, | |||
_n | |||
) | snprintf_safe( (_s), (_sz), "%04Xh", _n ) |
Definition at line 885 of file pcpslstr.h.
#define _pcps_snprint_time | ( | _s, | |
_sz, | |||
_t | |||
) | snprint_ctry_tm( (_s), (_sz), (_t)->hour, (_t)->min, (_t)->sec ) |
Definition at line 896 of file pcpslstr.h.
#define _pcps_snprint_time_long | ( | _s, | |
_sz, | |||
_t | |||
) | snprint_ctry_tm_long( (_s), (_sz), (_t)->hour, (_t)->min, (_t)->sec, (_t)->sec100, 2 ) |
Definition at line 899 of file pcpslstr.h.
Referenced by pcps_date_time_str().
#define _pcps_snprint_vernum _pcps_snprint_vernum_hex |
Definition at line 881 of file pcpslstr.h.
#define _pcps_snprint_vernum_dec | ( | _s, | |
_sz, | |||
_v | |||
) |
Definition at line 868 of file pcpslstr.h.
#define _pcps_snprint_vernum_hex | ( | _s, | |
_sz, | |||
_v | |||
) |
Definition at line 873 of file pcpslstr.h.
#define _pcps_snprint_wday | ( | _s, | |
_sz, | |||
_t, | |||
_l | |||
) | snprint_ctry_wday( (_s), (_sz), _wday_mon17_to_sun06( (_t)->wday ), (_l) ) |
Definition at line 889 of file pcpslstr.h.
Referenced by pcps_date_time_str().
#define DEFAULT_GER_POUT_HINTS |
Definition at line 840 of file pcpslstr.h.
#define DEFAULT_GER_POUT_NAMES |
Definition at line 791 of file pcpslstr.h.
#define DEFAULT_IGNORE_RX_TFOM |
Definition at line 621 of file pcpslstr.h.
#define DEFAULT_IGNORE_RX_TFOM_DE "Ignoriere TFOM" |
Definition at line 619 of file pcpslstr.h.
#define DEFAULT_IGNORE_RX_TFOM_EN "Ignore TFOM" |
Definition at line 618 of file pcpslstr.h.
Referenced by print_cfg_rx().
#define DEFAULT_MODE_NAMES |
Definition at line 756 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_CAB_LEN |
Definition at line 541 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_EF |
Definition at line 532 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_IRIG_RX |
Definition at line 572 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_IRIG_RX_DE "IRIG-Eingang" |
Definition at line 570 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_IRIG_RX_EN "IRIG Input" |
Definition at line 569 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_IRIG_TX |
Definition at line 562 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_IRIG_TX_DE "IRIG-Ausgang" |
Definition at line 560 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_IRIG_TX_EN "IRIG Output" |
Definition at line 559 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_LAN_INTF |
Definition at line 712 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_LAN_INTF_DE "Netzwerkschnittstelle" |
Definition at line 710 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_LAN_INTF_EN "LAN Interface" |
Definition at line 709 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_POUT |
Definition at line 679 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_PTP_CFG |
Definition at line 725 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_PTP_CFG_DE "PTP-Konfiguration" |
Definition at line 723 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_PTP_CFG_EN "PTP Configuration" |
Definition at line 722 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_PTP_UC_CFG |
Definition at line 738 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_PTP_UC_CFG_DE "PTP-Unicast-Konfiguration" |
Definition at line 736 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_PTP_UC_CFG_EN "PTP Unicast Configuration" |
Definition at line 735 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_SERIAL |
Definition at line 523 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_SET_TIME |
Definition at line 392 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_SET_TIME_DE "Datum/Zeit der Funkuhr" |
Definition at line 389 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_SET_TIME_EN "Radio Clock's Date/Time" |
Definition at line 386 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_SETUP |
Definition at line 377 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_SETUP_DE "Einstellungen" |
Definition at line 374 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_SETUP_EN "Setup" |
Definition at line 371 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_SYNTH |
Definition at line 688 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_TR_DISTANCE |
Definition at line 550 of file pcpslstr.h.
#define DEFAULT_OPT_NAME_TZ |
Definition at line 430 of file pcpslstr.h.
#define DEFAULT_PCPS_DATE_TIME_DIST 2 |
Definition at line 152 of file pcpslstr.h.
#define DEFAULT_PCPS_TIME_TZ_DIST 1 |
Definition at line 153 of file pcpslstr.h.
#define DEFAULT_PCPS_WDAY_DATE_DIST 1 |
Definition at line 151 of file pcpslstr.h.
#define DEFAULT_STR_ANN_DST |
Definition at line 355 of file pcpslstr.h.
Referenced by pcps_status_strs().
#define DEFAULT_STR_ANN_LS |
Definition at line 362 of file pcpslstr.h.
Referenced by pcps_status_strs().
#define DEFAULT_STR_DCF_FREE_RUNNING |
Definition at line 313 of file pcpslstr.h.
Referenced by pcps_status_strs().
#define DEFAULT_STR_DCF_HAS_NOT_SYNCD |
Definition at line 306 of file pcpslstr.h.
Referenced by pcps_status_strs().
#define DEFAULT_STR_DCF_HAS_SYNCD |
Definition at line 299 of file pcpslstr.h.
Referenced by pcps_status_strs().
#define DEFAULT_STR_DCF_NOT_FREE_RUNNING |
Definition at line 320 of file pcpslstr.h.
Referenced by pcps_status_strs().
#define DEFAULT_STR_DELTA_TIME |
Definition at line 235 of file pcpslstr.h.
#define DEFAULT_STR_GPS_NOT_SYNCD |
Definition at line 334 of file pcpslstr.h.
Referenced by pcps_status_strs().
#define DEFAULT_STR_GPS_POS_NOT_OK |
Definition at line 348 of file pcpslstr.h.
Referenced by pcps_status_strs().
#define DEFAULT_STR_GPS_POS_OK |
Definition at line 341 of file pcpslstr.h.
Referenced by pcps_status_strs().
#define DEFAULT_STR_GPS_SYNCD |
Definition at line 327 of file pcpslstr.h.
Referenced by pcps_status_strs().
#define DEFAULT_STR_IRIG_FMT |
Definition at line 582 of file pcpslstr.h.
#define DEFAULT_STR_IRIG_FMT_DE "IRIG Code-Format" |
Definition at line 580 of file pcpslstr.h.
#define DEFAULT_STR_IRIG_FMT_EN "IRIG Code Format" |
Definition at line 579 of file pcpslstr.h.
Referenced by print_cfg_rx(), and print_cfg_tx().
#define DEFAULT_STR_IRIG_INVT |
Definition at line 670 of file pcpslstr.h.
#define DEFAULT_STR_IRIG_INVT_DE |
Definition at line 664 of file pcpslstr.h.
#define DEFAULT_STR_IRIG_INVT_EN |
Definition at line 658 of file pcpslstr.h.
Referenced by show_invt_reason().
#define DEFAULT_STR_IRIG_NOT_CFGD |
Definition at line 651 of file pcpslstr.h.
#define DEFAULT_STR_IRIG_NOT_CFGD_DE |
Definition at line 644 of file pcpslstr.h.
#define DEFAULT_STR_IRIG_NOT_CFGD_EN |
Definition at line 637 of file pcpslstr.h.
Referenced by show_invt_reason().
#define DEFAULT_STR_IRIG_OFFS |
Definition at line 592 of file pcpslstr.h.
#define DEFAULT_STR_IRIG_OFFS_DE "IRIG-Zeitoffset zu UTC" |
Definition at line 590 of file pcpslstr.h.
#define DEFAULT_STR_IRIG_OFFS_EN "IRIG Time Offset from UTC" |
Definition at line 589 of file pcpslstr.h.
Referenced by print_cfg_rx().
#define DEFAULT_STR_IRIG_OUTPUT_LOC_TM |
Definition at line 612 of file pcpslstr.h.
#define DEFAULT_STR_IRIG_OUTPUT_LOC_TM_DE "Ortszeit statt UTC aussenden" |
Definition at line 610 of file pcpslstr.h.
#define DEFAULT_STR_IRIG_OUTPUT_LOC_TM_EN "Transmit local time instead of UTC" |
Definition at line 609 of file pcpslstr.h.
Referenced by print_cfg_tx().
#define DEFAULT_STR_IRIG_TIMESTR_UTC |
Definition at line 602 of file pcpslstr.h.
#define DEFAULT_STR_IRIG_TIMESTR_UTC_DE "Seriell UTC ausgeben" |
Definition at line 600 of file pcpslstr.h.
#define DEFAULT_STR_IRIG_TIMESTR_UTC_EN "Send serial UTC" |
Definition at line 599 of file pcpslstr.h.
Referenced by print_cfg_rx().
#define DEFAULT_STR_LAST_CORR |
Definition at line 241 of file pcpslstr.h.
#define DEFAULT_STR_NEW_DATE |
Definition at line 398 of file pcpslstr.h.
#define DEFAULT_STR_NEW_TIME |
Definition at line 404 of file pcpslstr.h.
#define DEFAULT_STR_REF_SRC_LABEL |
Definition at line 262 of file pcpslstr.h.
#define DEFAULT_STR_REF_SYNC_LABEL |
Definition at line 268 of file pcpslstr.h.
#define DEFAULT_STR_REF_TIME |
Definition at line 229 of file pcpslstr.h.
#define DEFAULT_STR_REF_TIME_INFO |
Definition at line 256 of file pcpslstr.h.
#define DEFAULT_STR_SET_MANUALLY |
Definition at line 291 of file pcpslstr.h.
Referenced by pcps_status_strs().
#define DEFAULT_STR_SYNTH_FREQ |
Definition at line 694 of file pcpslstr.h.
#define DEFAULT_STR_SYNTH_PHASE |
Definition at line 700 of file pcpslstr.h.
#define DEFAULT_STR_SYS_TIME |
Definition at line 223 of file pcpslstr.h.
#define DEFAULT_STR_TFOM_ALWAYS_SYNC |
Definition at line 630 of file pcpslstr.h.
#define DEFAULT_STR_TFOM_ALWAYS_SYNC_DE "TFOM immer als 'sync' ausgeben" |
Definition at line 628 of file pcpslstr.h.
#define DEFAULT_STR_TFOM_ALWAYS_SYNC_EN "Output TFOM always as 'sync'" |
Definition at line 627 of file pcpslstr.h.
Referenced by print_cfg_tx().
#define DEFAULT_STR_TIME_ADJ_STATUS |
Definition at line 217 of file pcpslstr.h.
#define DEFAULT_STR_TIME_INVAL |
Definition at line 284 of file pcpslstr.h.
Referenced by pcps_status_strs().
#define DEFAULT_STR_TIME_INVAL_DE "Referenzzeit nicht g" LCUE "ltig" |
Definition at line 281 of file pcpslstr.h.
#define DEFAULT_STR_TIME_INVAL_EN "Ref. Time is Invalid" |
Definition at line 278 of file pcpslstr.h.
#define DEFAULT_STR_WAIT_SYNC |
Definition at line 247 of file pcpslstr.h.
#define DEFAULT_TZCODE_HINT_CET |
Definition at line 471 of file pcpslstr.h.
#define DEFAULT_TZCODE_HINT_CET_CEST |
Definition at line 445 of file pcpslstr.h.
#define DEFAULT_TZCODE_HINT_EET_EEST |
Definition at line 497 of file pcpslstr.h.
#define DEFAULT_TZCODE_HINT_GMT_BST |
Definition at line 457 of file pcpslstr.h.
#define DEFAULT_TZCODE_HINT_UTC |
Definition at line 484 of file pcpslstr.h.
#define DEFAULT_TZCODE_HINTS |
Definition at line 512 of file pcpslstr.h.
#define DEFAULT_TZCODE_NAME_CET |
Definition at line 465 of file pcpslstr.h.
#define DEFAULT_TZCODE_NAME_CET_CEST |
Definition at line 439 of file pcpslstr.h.
#define DEFAULT_TZCODE_NAME_EET_EEST |
Definition at line 491 of file pcpslstr.h.
#define DEFAULT_TZCODE_NAME_GMT_BST |
Definition at line 451 of file pcpslstr.h.
#define DEFAULT_TZCODE_NAME_UTC |
Definition at line 478 of file pcpslstr.h.
#define DEFAULT_TZCODE_NAMES |
Definition at line 504 of file pcpslstr.h.
#define GER_MODE_NAME_STR_AUTO "automatisch" |
Definition at line 753 of file pcpslstr.h.
#define GER_MODE_NAME_STR_ON_REQ "nur auf Anfrage '?'" |
Definition at line 750 of file pcpslstr.h.
#define GER_MODE_NAME_STR_ON_REQ_SEC "sek" LCUE "ndlich nach Anfrage" |
Definition at line 754 of file pcpslstr.h.
#define GER_MODE_NAME_STR_PER_MIN "min" LCUE "tlich" |
Definition at line 752 of file pcpslstr.h.
#define GER_MODE_NAME_STR_PER_SEC "sek" LCUE "ndlich" |
Definition at line 751 of file pcpslstr.h.
#define GER_POUT_HAVEQUICK "HaveQuick" |
Definition at line 789 of file pcpslstr.h.
#define GER_POUT_HINT_10MHZ "Feste Ausgangsfrequenz 10 MHz" |
Definition at line 832 of file pcpslstr.h.
#define GER_POUT_HINT_ALL_SYNC "Schalten, wenn Zeit synchron und Position " LCUE "berpr" LCUE "ft" |
Definition at line 829 of file pcpslstr.h.
#define GER_POUT_HINT_CYCLIC_PULSE "Impulse wiederholt nach angegebenem Intervall" |
Definition at line 822 of file pcpslstr.h.
#define GER_POUT_HINT_DCF77 "DCF77-kompatible Zeitmarken" |
Definition at line 826 of file pcpslstr.h.
#define GER_POUT_HINT_DCF77_M59 "Zeitmarken wie DCF77, aber mit 500 ms Impuls in 59. Sekunde" |
Definition at line 833 of file pcpslstr.h.
#define GER_POUT_HINT_GPIO "Signal des spezifizierten GPIO-Ein- oder Ausgangs" |
Definition at line 836 of file pcpslstr.h.
#define GER_POUT_HINT_HAVEQUICK "Dupliziertes HaveQuick-Signal" |
Definition at line 838 of file pcpslstr.h.
#define GER_POUT_HINT_IDLE "Konstanter Ausgangspegel" |
Definition at line 819 of file pcpslstr.h.
#define GER_POUT_HINT_PER_HOUR "Impuls zu Beginn jeder Stunde" |
Definition at line 825 of file pcpslstr.h.
#define GER_POUT_HINT_PER_MIN "Impuls zu Beginn jeder Minute" |
Definition at line 824 of file pcpslstr.h.
#define GER_POUT_HINT_PER_SEC "Impuls zu Beginn jeder Sekunde" |
Definition at line 823 of file pcpslstr.h.
#define GER_POUT_HINT_POS_OK "Schalten, wenn Empf" LCAE "ngerposition " LCUE "berpr" LCUE "ft" |
Definition at line 827 of file pcpslstr.h.
#define GER_POUT_HINT_PTTI_PPS "20 us-Impuls zum Sekundenbeginn" |
Definition at line 837 of file pcpslstr.h.
#define GER_POUT_HINT_SINGLE_SHOT "Einzelner Impuls mit angegebener L" LCAE "nge" |
Definition at line 821 of file pcpslstr.h.
#define GER_POUT_HINT_SYNTH "Durch programmierbaren Synthesizer erzeugte Frequenz" |
Definition at line 834 of file pcpslstr.h.
#define GER_POUT_HINT_TIME_SLOTS "Programmierbare Zeitslots, die in jeder Minute aktiviert werden" |
Definition at line 835 of file pcpslstr.h.
#define GER_POUT_HINT_TIME_SYNC "Schalten, wenn Zeit synchron" |
Definition at line 828 of file pcpslstr.h.
#define GER_POUT_HINT_TIMECODE "Unmodulierter Zeitcode des IRIG-Ausgangs" |
Definition at line 830 of file pcpslstr.h.
#define GER_POUT_HINT_TIMER "Schalten zu den angegebenen Zeiten" |
Definition at line 820 of file pcpslstr.h.
#define GER_POUT_HINT_TIMESTR "Zeittelegramm der seriellen Schnittstelle der Karte duplizieren" |
Definition at line 831 of file pcpslstr.h.
#define GER_POUT_NAME_10MHZ "Festfrequenz 10 MHz" |
Definition at line 783 of file pcpslstr.h.
#define GER_POUT_NAME_ALL_SYNC "Alles synchron" |
Definition at line 780 of file pcpslstr.h.
#define GER_POUT_NAME_CYCLIC_PULSE "Zyklischer Impuls" |
Definition at line 773 of file pcpslstr.h.
#define GER_POUT_NAME_DCF77 "DCF77-Zeitmarken" |
Definition at line 777 of file pcpslstr.h.
#define GER_POUT_NAME_DCF77_M59 "DCF77-Zeitmarken mit 59. Impuls" |
Definition at line 784 of file pcpslstr.h.
#define GER_POUT_NAME_GPIO "GPIO-Signal" |
Definition at line 787 of file pcpslstr.h.
#define GER_POUT_NAME_IDLE "Nicht verwendet" |
Definition at line 770 of file pcpslstr.h.
#define GER_POUT_NAME_PER_HOUR "St" LCUE "ndlicher Impuls" |
Definition at line 776 of file pcpslstr.h.
#define GER_POUT_NAME_PER_MIN "Min" LCUE "tlicher Impuls" |
Definition at line 775 of file pcpslstr.h.
#define GER_POUT_NAME_PER_SEC "Sek" LCUE "ndlicher Impuls" |
Definition at line 774 of file pcpslstr.h.
#define GER_POUT_NAME_POS_OK "Position OK" |
Definition at line 778 of file pcpslstr.h.
#define GER_POUT_NAME_SINGLE_SHOT "Einzelimpuls" |
Definition at line 772 of file pcpslstr.h.
#define GER_POUT_NAME_SYNTH "Synthesizer-Frequenz" |
Definition at line 785 of file pcpslstr.h.
#define GER_POUT_NAME_TIME_SLOTS "Zeitschlitze pro Minute" |
Definition at line 786 of file pcpslstr.h.
#define GER_POUT_NAME_TIME_SYNC "Zeit synchron" |
Definition at line 779 of file pcpslstr.h.
#define GER_POUT_NAME_TIMECODE "DCLS-Zeitcode" |
Definition at line 781 of file pcpslstr.h.
#define GER_POUT_NAME_TIMER "Zeitschaltung" |
Definition at line 771 of file pcpslstr.h.
#define GER_POUT_NAME_TIMESTR "Serielles Zeittelegramm" |
Definition at line 782 of file pcpslstr.h.
#define GER_POUT_PTTI_PPS "PTTI 1 PPS" |
Definition at line 788 of file pcpslstr.h.
#define N_PCPS_STATUS_STR 3 |
Definition at line 197 of file pcpslstr.h.
Referenced by show_time_and_status().
#define TZ_NAME_BST "BST" |
Definition at line 428 of file pcpslstr.h.
#define TZ_NAME_CEST "CEST" |
Definition at line 418 of file pcpslstr.h.
#define TZ_NAME_CET "CET" |
Definition at line 417 of file pcpslstr.h.
#define TZ_NAME_EEST "EEST" |
Definition at line 423 of file pcpslstr.h.
#define TZ_NAME_EET "EET" |
Definition at line 422 of file pcpslstr.h.
#define TZ_NAME_GMT "GMT" |
Definition at line 427 of file pcpslstr.h.
#define TZ_NAME_MESZ "MESZ" |
Definition at line 416 of file pcpslstr.h.
#define TZ_NAME_MEZ "MEZ" |
Definition at line 415 of file pcpslstr.h.
#define TZ_NAME_OESZ "OESZ" |
Definition at line 421 of file pcpslstr.h.
#define TZ_NAME_OEZ "OEZ" |
Definition at line 420 of file pcpslstr.h.
#define TZ_NAME_UTC "UTC" |
Definition at line 413 of file pcpslstr.h.
#define TZ_NAME_WESZ "WESZ" |
Definition at line 426 of file pcpslstr.h.
#define TZ_NAME_WEZ "WEZ" |
Definition at line 425 of file pcpslstr.h.
enum PCPS_TZ_NAME_BITS |
Flag bits used to define PCPS_TZ_NAME_FLAGS.
Enumerator | |
---|---|
PCPS_TZ_NAME_BIT_FORCE_UTC_OFFS | always print "UTC+offs" |
PCPS_TZ_NAME_BIT_APP_DST | append DST status |
N_PCPS_TZ_NAME_FLAG |
Definition at line 170 of file pcpslstr.h.
enum PCPS_TZ_NAME_FLAGS |
Flag bits used to control the string generated by pcps_tz_name.
The flags defined below can be passed to pcps_tz_name to control the formatting of the generated time zone names
Enumerator | |
---|---|
PCPS_TZ_NAME_FORCE_UTC_OFFS | |
PCPS_TZ_NAME_APP_DST |
Definition at line 187 of file pcpslstr.h.
const char* inv_str | ( | void | ) |
Return a language dependend string for "invalid".
Definition at line 131 of file pcpslstr.c.
Referenced by pcps_tzcode_str().
char* pcps_date_time_str | ( | char * | s, |
size_t | max_len, | ||
const PCPS_TIME * | t, | ||
int | year_limit, | ||
const char * | tz_str | ||
) |
Definition at line 344 of file pcpslstr.c.
References _pcps_snprint_date, _pcps_snprint_time_long, _pcps_snprint_wday, _pcps_time_is_read, language, pcps_date_time_dist, pcps_time_tz_dist, pcps_wday_date_dist, sn_cpy_char_safe(), sn_cpy_str_safe(), str_not_avail, and strncpy_safe().
Referenced by pcps_str_tm_gps_date_time(), and print_pcps_time().
char* pcps_date_time_wstr | ( | char * | ws, |
size_t | count, | ||
const PCPS_TIME * | t, | ||
ushort | year_limit, | ||
const char * | tz_str | ||
) |
Referenced by pcps_str_tm_gps_date_time().
char* pcps_port_str | ( | char * | s, |
size_t | max_len, | ||
const PCPS_DEV * | pdev | ||
) |
Definition at line 522 of file pcpslstr.c.
References _pcps_short_port_base, and snprintf_safe().
char* pcps_serial_str | ( | char * | s, |
size_t | max_len, | ||
int | i, | ||
const RECEIVER_PORT_CFG * | p, | ||
const RECEIVER_INFO * | p_ri, | ||
int | short_strs | ||
) |
Definition at line 552 of file pcpslstr.c.
References _lstr, COM_PARM::baud_rate, COM_PARM::framing, STR_TYPE_INFO::long_name, PORT_SETTINGS::mode, mode_name, RECEIVER_INFO::n_str_type, PORT_SETTINGS::parm, RECEIVER_PORT_CFG::pii, short_mode_name, snprintf_safe(), RECEIVER_PORT_CFG::stii, and PORT_SETTINGS::str_type.
void pcps_status_strs | ( | ushort | status, |
int | status_is_read, | ||
int | is_gps, | ||
PCPS_STATUS_STRS * | pstrs | ||
) |
Definition at line 454 of file pcpslstr.c.
References _lstr, PCPS_STATUS_STR::cp, DEFAULT_STR_ANN_DST, DEFAULT_STR_ANN_LS, DEFAULT_STR_DCF_FREE_RUNNING, DEFAULT_STR_DCF_HAS_NOT_SYNCD, DEFAULT_STR_DCF_HAS_SYNCD, DEFAULT_STR_DCF_NOT_FREE_RUNNING, DEFAULT_STR_GPS_NOT_SYNCD, DEFAULT_STR_GPS_POS_NOT_OK, DEFAULT_STR_GPS_POS_OK, DEFAULT_STR_GPS_SYNCD, DEFAULT_STR_SET_MANUALLY, DEFAULT_STR_TIME_INVAL, PCPS_STATUS_STR::is_err, PCPS_DL_ANN, PCPS_FREER, PCPS_IFTM, PCPS_INVT, PCPS_LS_ANN, pcps_setup_status_str(), PCPS_SYNCD, PCPS_STATUS_STRS::s, and str_not_avail.
Referenced by show_time_and_status().
int pcps_str_tm_gps_date_time | ( | char * | s, |
size_t | max_len, | ||
const TM_GPS * | t | ||
) |
Definition at line 387 of file pcpslstr.c.
References _int_from_size_t, TM_GPS::frac, TM_GPS::hour, language, TM_GPS::mday, TM_GPS::min, TM_GPS::month, pcps_date_time_str(), pcps_date_time_wstr(), pcps_wday_date_dist, TM_GPS::sec, sn_cpy_char_safe(), sn_cpy_str_safe(), snprint_ctry_wday(), snprintf_safe(), TM_GPS::wday, TM_GPS::year, and year_limit.
Referenced by show_time_and_status().
Return a static time zone string depending on the UTC offset from a PCPS_TIME structure.
[in] | t | A PCPS_TIME structure read from a clock device |
[in] | flags | A combination of PCPS_TZ_NAME_FLAGS contolling the output string format |
[in] | is_msf | A Flag used to indicate if the clock is an MSF receiver |
Definition at line 245 of file pcpslstr.c.
References get_tz_name(), PCPS_TIME::offs_utc, SECS_PER_HOUR, and PCPS_TIME::status.
Referenced by print_pcps_time().
const char* pcps_tz_name_from_hr_time | ( | const PCPS_HR_TIME * | hrt, |
ushort | flags, | ||
int | is_msf | ||
) |
Return a static time zone string depending on the UTC offset from a PCPS_HR_TIME structure.
[in] | hrt | A PCPS_HR_TIME structure read from a clock device |
[in] | flags | A combination of PCPS_TZ_NAME_FLAGS contolling the output string format |
[in] | is_msf | A Flag used to indicate if the clock is an MSF receiver |
Definition at line 269 of file pcpslstr.c.
References get_tz_name(), PCPS_HR_TIME::status, and PCPS_HR_TIME::utc_offs.
Referenced by pcps_tz_name_hr_status().
const char* pcps_tz_name_from_status | ( | PCPS_TIME_STATUS_X | status | ) |
Return a static time zone string depending on the UTC offset from a PCPS_HR_TIME structure.
This function can be used to build a name for the time zone if only the UTC/DST status is known, but the UTC offset is not. This is the case, for example, if the Meinberg standard time string is decoded.
[in] | status | Clock status in PCPS_TIME_STATUS_X format |
Definition at line 332 of file pcpslstr.c.
References _lstr, PCPS_DL_ENB, PCPS_UTC, str_dst, and tz_name_utc.
const char* pcps_tz_name_hr_status | ( | const PCPS_HR_TIME * | t, |
ushort | flags, | ||
int | is_msf | ||
) |
Return a static time zone string depending on the UTC offset from a PCPS_HR_TIME structure.
This function can be used to build a name for the time zone if the timescale, the UTC/DST status and the UTC offset are known, e.g. from plug-in clock devices.
[in] | t | A PCPS_HR_TIME structure read from a clock device |
[in] | flags | A combination of PCPS_TZ_NAME_FLAGS contolling the output string format |
[in] | is_msf | A Flag used to indicate if the clock is an MSF receiver |
Definition at line 296 of file pcpslstr.c.
References PCPS_SCALE_GPS, PCPS_SCALE_TAI, pcps_tz_name_from_hr_time(), PCPS_HR_TIME::status, and strncpy_safe().
const char* pcps_tzcode_str | ( | PCPS_TZCODE | tzcode | ) |
Definition at line 540 of file pcpslstr.c.
References inv_str(), language, N_LNG, N_PCPS_TZCODE, and tzcode_name.
CLSTR lstr_bst |
Referenced by get_tz_name().
CLSTR lstr_cest |
Referenced by get_tz_name().
CLSTR lstr_cet |
Referenced by get_tz_name().
CLSTR lstr_gmt |
Referenced by get_tz_name().
const char* mode_name[N_STR_MODE][N_LNG] |
Referenced by pcps_serial_str().
int pcps_date_time_dist |
Referenced by main(), and pcps_date_time_str().
int pcps_time_tz_dist |
Referenced by get_tz_name(), and pcps_date_time_str().
int pcps_wday_date_dist |
Referenced by pcps_date_time_str(), and pcps_str_tm_gps_date_time().
const char* short_mode_name[N_STR_MODE] |
Referenced by pcps_serial_str().
CLSTR tzcode_name[N_PCPS_TZCODE] |
Referenced by pcps_tzcode_str().