620 #if defined( HAVE_CONFIG_H ) 627 #if !defined( CLOCK_MEINBERG ) 637 #if defined( _USE_PACK ) 638 #pragma pack( 1 ) // set byte alignment 639 #define _USING_BYTE_ALIGNMENT 645 #define MEINBERG_MAGIC 0x6AAC 669 #define MIN_SVNO MIN_SVNO_GPS 670 #define MAX_SVNO MAX_SVNO_GPS 671 #define N_SVNO N_SVNO_GPS 675 #define GPS_ID_STR_LEN 16 676 #define GPS_ID_STR_SIZE ( GPS_ID_STR_LEN + 1 ) 678 #define GPS_EPLD_STR_LEN 8 679 #define GPS_EPLD_STR_SIZE ( GPS_EPLD_STR_LEN + 1 ) 682 #define DEFAULT_GPS_TICKS_PER_SEC 10000000L 684 #if !defined( GPS_TICKS_PER_SEC ) 691 #define GPS_TICKS_PER_SEC DEFAULT_GPS_TICKS_PER_SEC 704 #ifndef _CSUM_DEFINED 706 #define _CSUM_DEFINED 709 #define _mbg_swab_csum( _p ) _mbg_swab16( _p ) 721 #define _mbg_swab_gps_cmd( _p ) _mbg_swab16( _p ) 740 #define _mbg_swab_sw_rev( _p ) \ 743 _mbg_swab16( &(_p)->code ); \ 772 #define _mbg_swab_bvar_stat( _p ) _mbg_swab16( (_p) ) 818 #define BVAR_MASK ( ( 1UL << N_BVAR_BIT ) - 1 ) 828 #define BVAR_FLAG_NAMES \ 830 "Sat. config and health", \ 833 "Ionospheric correction", \ 834 "Receiver position" \ 853 #define _mbg_swab_fixed_freq_info( _p ) \ 856 _mbg_swab16( &(_p)->khz_val ); \ 857 _mbg_swab16( &(_p)->range ); \ 894 #define _mbg_swab_receiver_info( _p ) \ 897 _mbg_swab16( &(_p)->model_code ); \ 898 _mbg_swab_sw_rev( &(_p)->sw_rev ); \ 899 _mbg_swab16( &(_p)->ticks_per_sec ); \ 900 _mbg_swab32( &(_p)->features ); \ 901 _mbg_swab_fixed_freq_info( &(_p)->fixed_freq ); \ 902 _mbg_swab16( &(_p)->flags ); \ 1040 #define GPS_MODEL_NAME_UNKNOWN "Unknown" 1041 #define GPS_MODEL_NAME_GPS166 "GPS166" 1042 #define GPS_MODEL_NAME_GPS167 "GPS167" 1043 #define GPS_MODEL_NAME_GPS167SV "GPS167SV" 1044 #define GPS_MODEL_NAME_GPS167PC "GPS167PC" 1045 #define GPS_MODEL_NAME_GPS167PCI "GPS167PCI" 1046 #define GPS_MODEL_NAME_GPS163 "GPS163" 1047 #define GPS_MODEL_NAME_GPS168PCI "GPS168PCI" 1048 #define GPS_MODEL_NAME_GPS161 "GPS161" 1049 #define GPS_MODEL_NAME_GPS169PCI "GPS169PCI" 1050 #define GPS_MODEL_NAME_TCR167PCI "TCR167PCI" 1051 #define GPS_MODEL_NAME_GPS164 "GPS164" 1052 #define GPS_MODEL_NAME_GPS170PCI "GPS170PCI" 1053 #define GPS_MODEL_NAME_PZF511 "PZF511" 1054 #define GPS_MODEL_NAME_GPS170 "GPS170" 1055 #define GPS_MODEL_NAME_TCR511 "TCR511" 1056 #define GPS_MODEL_NAME_AM511 "AM511" 1057 #define GPS_MODEL_NAME_MSF511 "MSF511" 1058 #define GPS_MODEL_NAME_GRC170 "GRC170" 1059 #define GPS_MODEL_NAME_GPS170PEX "GPS170PEX" 1060 #define GPS_MODEL_NAME_GPS162 "GPS162" 1061 #define GPS_MODEL_NAME_PTP270PEX "PTP270PEX" 1062 #define GPS_MODEL_NAME_FRC511PEX "FRC511PEX" 1063 #define GPS_MODEL_NAME_GEN170 "GEN170" 1064 #define GPS_MODEL_NAME_TCR170PEX "TCR170PEX" 1065 #define GPS_MODEL_NAME_WWVB511 "WWVB511" 1066 #define GPS_MODEL_NAME_MGR170 "MGR170" 1067 #define GPS_MODEL_NAME_JJY511 "JJY511" 1068 #define GPS_MODEL_NAME_PZF600 "PZF600" 1069 #define GPS_MODEL_NAME_TCR600 "TCR600" 1070 #define GPS_MODEL_NAME_GPS180 "GPS180" 1071 #define GPS_MODEL_NAME_GLN170 "GLN170" 1072 #define GPS_MODEL_NAME_GPS180PEX "GPS180PEX" 1073 #define GPS_MODEL_NAME_TCR180PEX "TCR180PEX" 1074 #define GPS_MODEL_NAME_PZF180PEX "PZF180PEX" 1075 #define GPS_MODEL_NAME_MGR180 "MGR180" 1076 #define GPS_MODEL_NAME_MSF600 "MSF600" 1077 #define GPS_MODEL_NAME_WWVB600 "WWVB600" 1078 #define GPS_MODEL_NAME_JJY600 "JJY600" 1079 #define GPS_MODEL_NAME_GPS180HS "GPS180HS" 1080 #define GPS_MODEL_NAME_GPS180AMC "GPS180AMC" 1081 #define GPS_MODEL_NAME_ESI180 "ESI180" 1082 #define GPS_MODEL_NAME_CPE180 "CPE180" 1083 #define GPS_MODEL_NAME_LNO180 "LNO180" 1084 #define GPS_MODEL_NAME_GRC180 "GRC180" 1085 #define GPS_MODEL_NAME_LIU "LIU" 1086 #define GPS_MODEL_NAME_DCF600HS "DCF600HS" 1087 #define GPS_MODEL_NAME_DCF600RS "DCF600RS" 1088 #define GPS_MODEL_NAME_MRI "MRI" 1089 #define GPS_MODEL_NAME_BPE "BPE" 1090 #define GPS_MODEL_NAME_GLN180PEX "GLN180PEX" 1091 #define GPS_MODEL_NAME_N2X "N2X" 1092 #define GPS_MODEL_NAME_RSC180 "RSC180" 1093 #define GPS_MODEL_NAME_LNE_GB "LNE_GB" 1094 #define GPS_MODEL_NAME_PPG180 "PPG180" 1095 #define GPS_MODEL_NAME_SCG "SCG" 1096 #define GPS_MODEL_NAME_MDU300 "MDU300" 1097 #define GPS_MODEL_NAME_SDI "SDI" 1098 #define GPS_MODEL_NAME_FDM180 "FDM180" 1099 #define GPS_MODEL_NAME_SPT "SPT" 1100 #define GPS_MODEL_NAME_PZF180 "PZF180" 1101 #define GPS_MODEL_NAME_REL1000 "REL1000" 1102 #define GPS_MODEL_NAME_HPS100 "HPS100" 1103 #define GPS_MODEL_NAME_VSG180 "VSG180" 1104 #define GPS_MODEL_NAME_MSF180 "MSF180" 1105 #define GPS_MODEL_NAME_WWVB180 "WWVB180" 1106 #define GPS_MODEL_NAME_CPC180 "CPC180" 1107 #define GPS_MODEL_NAME_CTC100 "CTC100" 1108 #define GPS_MODEL_NAME_TCR180 "TCR180" 1109 #define GPS_MODEL_NAME_LUE180 "LUE180" 1110 #define GPS_MODEL_NAME_CPC_01 "CPC_01" 1111 #define GPS_MODEL_NAME_TSU_01 "TSU_01" 1112 #define GPS_MODEL_NAME_CMC_01 "CMC_01" 1113 #define GPS_MODEL_NAME_SCU_01 "SCU_01" 1114 #define GPS_MODEL_NAME_FCU_01 "FCU_01" 1115 #define GPS_MODEL_NAME_CSM100 "CSM100" 1116 #define GPS_MODEL_NAME_LNE180SFP "LNE180SFP" 1117 #define GPS_MODEL_NAME_GTS180 "GTS180" 1118 #define GPS_MODEL_NAME_GPS180CSM "GPS180CSM" 1119 #define GPS_MODEL_NAME_GRC181 "GRC181" 1120 #define GPS_MODEL_NAME_N2X180 "N2X180" 1121 #define GPS_MODEL_NAME_GNS181PEX "GNS181PEX" 1122 #define GPS_MODEL_NAME_MDU180 "MDU180" 1123 #define GPS_MODEL_NAME_MDU312 "MDU312" 1124 #define GPS_MODEL_NAME_GPS165 "GPS165" 1125 #define GPS_MODEL_NAME_GNS181_UC "GNS181_UC" 1126 #define GPS_MODEL_NAME_PSX_4GE "PSX_4GE" 1127 #define GPS_MODEL_NAME_RSC180RDU "RSC180RDU" 1128 #define GPS_MODEL_NAME_USYNCPWR "MICROSYNC-PWR" 1129 #define GPS_MODEL_NAME_FDM180M "FDM180M" 1130 #define GPS_MODEL_NAME_LSG180 "LSG180" 1131 #define GPS_MODEL_NAME_GPS190 "GPS190" 1132 #define GPS_MODEL_NAME_GNS181 "GNS181" 1133 #define GPS_MODEL_NAME_PIO180 "PIO180" 1134 #define GPS_MODEL_NAME_FCM180 "FCM180" 1135 #define GPS_MODEL_NAME_TCR180USB "TCR180USB" 1136 #define GPS_MODEL_NAME_SSP100 "SSP100" 1137 #define GPS_MODEL_NAME_GNS165 "GNS165" 1138 #define GPS_MODEL_NAME_RSC180RDMP "RSC180RDMP" 1139 #define GPS_MODEL_NAME_GPS16X "GPS16x" 1140 #define GPS_MODEL_NAME_MSHPS100 "MSHPS100" 1163 #define DEFAULT_GPS_MODEL_NAMES \ 1165 GPS_MODEL_NAME_UNKNOWN, \ 1166 GPS_MODEL_NAME_GPS166, \ 1167 GPS_MODEL_NAME_GPS167, \ 1168 GPS_MODEL_NAME_GPS167SV, \ 1169 GPS_MODEL_NAME_GPS167PC, \ 1170 GPS_MODEL_NAME_GPS167PCI, \ 1171 GPS_MODEL_NAME_GPS163, \ 1172 GPS_MODEL_NAME_GPS168PCI, \ 1173 GPS_MODEL_NAME_GPS161, \ 1174 GPS_MODEL_NAME_GPS169PCI, \ 1175 GPS_MODEL_NAME_TCR167PCI, \ 1176 GPS_MODEL_NAME_GPS164, \ 1177 GPS_MODEL_NAME_GPS170PCI, \ 1178 GPS_MODEL_NAME_PZF511, \ 1179 GPS_MODEL_NAME_GPS170, \ 1180 GPS_MODEL_NAME_TCR511, \ 1181 GPS_MODEL_NAME_AM511, \ 1182 GPS_MODEL_NAME_MSF511, \ 1183 GPS_MODEL_NAME_GRC170, \ 1184 GPS_MODEL_NAME_GPS170PEX, \ 1185 GPS_MODEL_NAME_GPS162, \ 1186 GPS_MODEL_NAME_PTP270PEX, \ 1187 GPS_MODEL_NAME_FRC511PEX, \ 1188 GPS_MODEL_NAME_GEN170, \ 1189 GPS_MODEL_NAME_TCR170PEX, \ 1190 GPS_MODEL_NAME_WWVB511, \ 1191 GPS_MODEL_NAME_MGR170, \ 1192 GPS_MODEL_NAME_JJY511, \ 1193 GPS_MODEL_NAME_PZF600, \ 1194 GPS_MODEL_NAME_TCR600, \ 1195 GPS_MODEL_NAME_GPS180, \ 1196 GPS_MODEL_NAME_GLN170, \ 1197 GPS_MODEL_NAME_GPS180PEX, \ 1198 GPS_MODEL_NAME_TCR180PEX, \ 1199 GPS_MODEL_NAME_PZF180PEX, \ 1200 GPS_MODEL_NAME_MGR180, \ 1201 GPS_MODEL_NAME_MSF600, \ 1202 GPS_MODEL_NAME_WWVB600, \ 1203 GPS_MODEL_NAME_JJY600, \ 1204 GPS_MODEL_NAME_GPS180HS, \ 1205 GPS_MODEL_NAME_GPS180AMC, \ 1206 GPS_MODEL_NAME_ESI180, \ 1207 GPS_MODEL_NAME_CPE180, \ 1208 GPS_MODEL_NAME_LNO180, \ 1209 GPS_MODEL_NAME_GRC180, \ 1210 GPS_MODEL_NAME_LIU, \ 1211 GPS_MODEL_NAME_DCF600HS, \ 1212 GPS_MODEL_NAME_DCF600RS, \ 1213 GPS_MODEL_NAME_MRI, \ 1214 GPS_MODEL_NAME_BPE, \ 1215 GPS_MODEL_NAME_GLN180PEX, \ 1216 GPS_MODEL_NAME_N2X, \ 1217 GPS_MODEL_NAME_RSC180, \ 1218 GPS_MODEL_NAME_LNE_GB, \ 1219 GPS_MODEL_NAME_PPG180, \ 1220 GPS_MODEL_NAME_SCG, \ 1221 GPS_MODEL_NAME_MDU300, \ 1222 GPS_MODEL_NAME_SDI, \ 1223 GPS_MODEL_NAME_FDM180, \ 1224 GPS_MODEL_NAME_SPT, \ 1225 GPS_MODEL_NAME_PZF180, \ 1226 GPS_MODEL_NAME_REL1000, \ 1227 GPS_MODEL_NAME_HPS100, \ 1228 GPS_MODEL_NAME_VSG180, \ 1229 GPS_MODEL_NAME_MSF180, \ 1230 GPS_MODEL_NAME_WWVB180, \ 1231 GPS_MODEL_NAME_CPC180, \ 1232 GPS_MODEL_NAME_CTC100, \ 1233 GPS_MODEL_NAME_TCR180, \ 1234 GPS_MODEL_NAME_LUE180, \ 1235 GPS_MODEL_NAME_CPC_01, \ 1236 GPS_MODEL_NAME_TSU_01, \ 1237 GPS_MODEL_NAME_CMC_01, \ 1238 GPS_MODEL_NAME_SCU_01, \ 1239 GPS_MODEL_NAME_FCU_01, \ 1240 GPS_MODEL_NAME_CSM100, \ 1241 GPS_MODEL_NAME_LNE180SFP, \ 1242 GPS_MODEL_NAME_GTS180, \ 1243 GPS_MODEL_NAME_GPS180CSM, \ 1244 GPS_MODEL_NAME_GRC181, \ 1245 GPS_MODEL_NAME_N2X180, \ 1246 GPS_MODEL_NAME_GNS181PEX, \ 1247 GPS_MODEL_NAME_MDU180, \ 1248 GPS_MODEL_NAME_MDU312, \ 1249 GPS_MODEL_NAME_GPS165, \ 1250 GPS_MODEL_NAME_GNS181_UC, \ 1251 GPS_MODEL_NAME_PSX_4GE, \ 1252 GPS_MODEL_NAME_RSC180RDU, \ 1253 GPS_MODEL_NAME_USYNCPWR, \ 1254 GPS_MODEL_NAME_FDM180M, \ 1255 GPS_MODEL_NAME_LSG180, \ 1256 GPS_MODEL_NAME_GPS190, \ 1257 GPS_MODEL_NAME_GNS181, \ 1258 GPS_MODEL_NAME_PIO180, \ 1259 GPS_MODEL_NAME_FCM180, \ 1260 GPS_MODEL_NAME_TCR180USB, \ 1261 GPS_MODEL_NAME_SSP100, \ 1262 GPS_MODEL_NAME_GNS165, \ 1263 GPS_MODEL_NAME_RSC180RDMP, \ 1264 GPS_MODEL_NAME_GPS16X, \ 1265 GPS_MODEL_NAME_MSHPS100 \ 1325 #if 0 //### TODO This has to be discussed 1326 GPS_BIT_MODEL_IS_LNO,
1327 GPS_BIT_MODEL_IS_SCU,
1343 #define GPS_MODEL_IS_GPS ( 1UL << GPS_BIT_MODEL_IS_GPS ) 1344 #define GPS_MODEL_IS_GNSS ( 1UL << GPS_BIT_MODEL_IS_GNSS ) 1345 #define GPS_MODEL_IS_TCR ( 1UL << GPS_BIT_MODEL_IS_TCR ) 1346 #define GPS_MODEL_IS_DCF_AM ( 1UL << GPS_BIT_MODEL_IS_DCF_AM ) 1347 #define GPS_MODEL_IS_DCF_PZF ( 1UL << GPS_BIT_MODEL_IS_DCF_PZF ) 1348 #define GPS_MODEL_IS_MSF ( 1UL << GPS_BIT_MODEL_IS_MSF ) 1349 #define GPS_MODEL_IS_JJY ( 1UL << GPS_BIT_MODEL_IS_JJY ) 1350 #define GPS_MODEL_IS_WWVB ( 1UL << GPS_BIT_MODEL_IS_WWVB ) 1352 #define GPS_MODEL_IS_BUS_LVL_DEV ( 1UL << GPS_BIT_MODEL_IS_BUS_LVL_DEV ) 1353 #define GPS_MODEL_HAS_BVAR_STAT ( 1UL << GPS_BIT_MODEL_HAS_BVAR_STAT ) 1354 #define GPS_MODEL_HAS_POS_XYZ ( 1UL << GPS_BIT_MODEL_HAS_POS_XYZ ) 1355 #define GPS_MODEL_HAS_POS_LLA ( 1UL << GPS_BIT_MODEL_HAS_POS_LLA ) 1356 #define GPS_MODEL_HAS_TIME_TTM ( 1UL << GPS_BIT_MODEL_HAS_TIME_TTM ) 1357 #define GPS_MODEL_HAS_TZDL ( 1UL << GPS_BIT_MODEL_HAS_TZDL ) 1358 #define GPS_MODEL_HAS_TZCODE ( 1UL << GPS_BIT_MODEL_HAS_TZCODE ) 1359 #define GPS_MODEL_HAS_ANT_INFO ( 1UL << GPS_BIT_MODEL_HAS_ANT_INFO ) 1361 #define GPS_MODEL_HAS_ENABLE_FLAGS ( 1UL << GPS_BIT_MODEL_HAS_ENABLE_FLAGS ) 1362 #define GPS_MODEL_HAS_STAT_INFO ( 1UL << GPS_BIT_MODEL_HAS_STAT_INFO ) 1363 #define GPS_MODEL_HAS_ANT_CABLE_LEN ( 1UL << GPS_BIT_MODEL_HAS_ANT_CABLE_LEN ) 1364 #define GPS_MODEL_HAS_SCU_STAT ( 1UL << GPS_BIT_MODEL_HAS_SCU_STAT ) 1365 #define GPS_MODEL_HAS_SV_INFO ( 1UL << GPS_BIT_MODEL_HAS_SV_INFO ) 1366 #define GPS_MODEL_HAS_UP_CONV ( 1UL << GPS_BIT_MODEL_HAS_UP_CONV ) 1367 #define GPS_MODEL_HAS_MBG_OS ( 1UL << GPS_BIT_MODEL_HAS_MBG_OS ) 1369 #if 0 // ### TODO This has to be discussed 1370 #define GPS_MODEL_IS_LNO ( 1UL << GPS_BIT_MODEL_IS_LNO ) 1371 #define GPS_MODEL_IS_SCU ( 1UL << GPS_BIT_MODEL_IS_SCU ) 1378 #define GPS_MODEL_HAS_POS ( GPS_MODEL_HAS_POS_XYZ | GPS_MODEL_HAS_POS_LLA ) 1383 #if 0 //##++ more potential builtin features and classifiers 1385 GPS_MODEL_HAS_CFGH | \
1386 GPS_MODEL_HAS_ALM | \
1387 GPS_MODEL_HAS_EPH | \
1388 GPS_MODEL_HAS_UTC | \
1389 GPS_MODEL_HAS_IONO \
1391 #define GPS_MODEL_HAS_AUTO_ON // -- 1392 #define GPS_MODEL_HAS_AUTO_OFF // -- 1393 #define GPS_MODEL_HAS_SW_REV // deprecated, use only if ri not supported 1394 #define GPS_MODEL_HAS_BVAR_STAT // req 1395 #define GPS_MODEL_HAS_POS_XYZ // GPS_MODEL_IS_GPS, GPS_MODEL_HAS_POS, GPS_MODEL_HAS_POS_XYZ ? 1396 #define GPS_MODEL_HAS_POS_LLA // GPS_MODEL_IS_GPS, GPS_MODEL_HAS_POS, GPS_MODEL_HAS_POS_LLA ? 1397 #define GPS_MODEL_HAS_TZDL // req 1398 #define GPS_MODEL_HAS_PORT_PARM // deprecated, use only if ri not supported 1399 #define GPS_MODEL_HAS_SYNTH // ri GPS_HAS_SYNTH 1400 #define GPS_MODEL_HAS_ANT_INFO // GPS_MODEL_IS_GPS, also GNSS, or req? 1401 #define GPS_MODEL_HAS_UCAP // ri n_ucap 1402 #define GPS_MODEL_HAS_ENABLE_FLAGS // req 1403 #define GPS_MODEL_HAS_STAT_INFO // req 1404 #define GPS_MODEL_HAS_SWITCH_PARMS // deprecated, use ... 1405 #define GPS_MODEL_HAS_STRING_PARMS // deprecated, use ... 1406 #define GPS_MODEL_HAS_ANT_CABLE_LEN // GPS_MODEL_IS_GPS, also GNSS, or req? 1407 #define GPS_MODEL_HAS_SYNC_OUTAGE_DELAY // custom 1408 #define GPS_MODEL_HAS_PULSE_INFO // custom 1409 #define GPS_MODEL_HAS_OPT_FEATURES // deprecated, use ri 1410 #define GPS_MODEL_HAS_IRIG_TX_SETTINGS // ri GPS_HAS_IRIG_TX 1411 #define GPS_MODEL_HAS_RECEIVER_INFO // -- 1412 #define GPS_MODEL_HAS_STR_TYPE_INFO_IDX // ri n_str_type 1413 #define GPS_MODEL_HAS_PORT_INFO_IDX // ri n_com 1414 #define GPS_MODEL_HAS_PORT_SETTINGS_IDX // ri n_com 1415 #define GPS_MODEL_HAS_POUT_INFO_IDX // ri n_pout 1416 #define GPS_MODEL_HAS_POUT_SETTINGS_IDX // ri n_pout 1417 #define GPS_MODEL_HAS_IRIG_TX_INFO // ri GPS_HAS_IRIG_TX 1418 #define GPS_MODEL_HAS_MULTI_REF_SETTINGS // ri GPS_HAS_MULTI_REF 1419 #define GPS_MODEL_HAS_MULTI_REF_INFO // ri GPS_HAS_MULTI_REF 1420 #define GPS_MODEL_HAS_ROM_CSUM // ? 1421 #define GPS_MODEL_HAS_MULTI_REF_STATUS // ri ... 1422 #define GPS_MODEL_HAS_RCV_TIMEOUT // ri ... 1423 #define GPS_MODEL_HAS_IRIG_RX_SETTINGS // ri ... 1424 #define GPS_MODEL_HAS_IRIG_RX_INFO // ri ... 1425 #define GPS_MODEL_HAS_REF_OFFS // ri ... 1426 #define GPS_MODEL_HAS_DEBUG_STATUS // 1427 #define GPS_MODEL_HAS_XMR_SETTINGS_IDX // 1428 #define GPS_MODEL_HAS_XMR_INFO_IDX // 1429 #define GPS_MODEL_HAS_XMR_STATUS_IDX // 1430 #define GPS_MODEL_HAS_OPT_SETTINGS // 1431 #define GPS_MODEL_HAS_OPT_INFO // 1432 #define GPS_MODEL_HAS_CLR_UCAP_BUFF // 1433 #define GPS_MODEL_HAS_TIME_SCALE // 1434 #define GPS_MODEL_HAS_NAV_ENG_SETTINGS // 1435 #define GPS_MODEL_HAS_RAW_IRIG_DATA // 1436 #define GPS_MODEL_HAS_GPIO_CFG_LIMITS // 1437 #define GPS_MODEL_HAS_GPIO_INFO_IDX // 1438 #define GPS_MODEL_HAS_GPIO_SETTINGS_IDX // 1439 #define GPS_MODEL_HAS_XMR_INSTANCES // 1440 #define GPS_MODEL_HAS_CLR_EVT_LOG // 1441 #define GPS_MODEL_HAS_NUM_EVT_LOG_ENTRIES // 1442 #define GPS_MODEL_HAS_FIRST_EVT_LOG_ENTRY // 1443 #define GPS_MODEL_HAS_NEXT_EVT_LOG_ENTRY // 1444 #define GPS_MODEL_HAS_LNO_STATUS // 1445 #define GPS_MODEL_HAS_IMS_STATE // 1446 #define GPS_MODEL_HAS_IMS_SENSOR_STATE_IDX // 1447 #define GPS_MODEL_HAS_XMR_HOLDOVER_INTV // 1448 #define GPS_MODEL_HAS_HAVEQUICK_RX_SETTINGS // 1449 #define GPS_MODEL_HAS_HAVEQUICK_RX_INFO // 1450 #define GPS_MODEL_HAS_HAVEQUICK_TX_SETTINGS // 1451 #define GPS_MODEL_HAS_HAVEQUICK_TX_INFO // 1452 #define GPS_MODEL_HAS_PTP_CFG // 1453 #define GPS_MODEL_HAS_PTP_STATE // 1454 #define GPS_MODEL_HAS_PTP_UC_MASTER_CFG_LIMITS // 1455 #define GPS_MODEL_HAS_PTP_UC_MASTER_CFG // 1456 #define GPS_MODEL_HAS_NTP_GLB_CFG // 1457 #define GPS_MODEL_HAS_NTP_CLNT_MODE_CFG // 1458 #define GPS_MODEL_HAS_NTP_SRV_MODE_CFG // 1459 #define GPS_MODEL_HAS_NTP_PEER_SETTINGS_IDX // 1460 #define GPS_MODEL_HAS_NTP_SYS_STATE // 1461 #define GPS_MODEL_HAS_NTP_PEER_STATE_IDX // 1462 #define GPS_MODEL_HAS_SHS // 1463 #define GPS_MODEL_HAS_SHS_STATUS // 1464 #define GPS_MODEL_HAS_NET_GLB_CFG // 1465 #define GPS_MODEL_HAS_NET_DNS_SRVR // 1466 #define GPS_MODEL_HAS_NET_DNS_SRCH_DOM // 1467 #define GPS_MODEL_HAS_NET_STAT_DNS_SRVR // 1468 #define GPS_MODEL_HAS_NET_STAT_DNS_SRCH_DOM // 1469 #define GPS_MODEL_HAS_GNSS_SAT_INFO_IDX // 1471 #define GPS_MODEL_HAS_CFGH // 1472 #define GPS_MODEL_HAS_ALM // 1473 #define GPS_MODEL_HAS_EPH // 1474 #define GPS_MODEL_HAS_UTC // 1475 #define GPS_MODEL_HAS_IONO // 1476 #define GPS_MODEL_HAS_ASCII_MSG // 1478 #define GPS_MODEL_HAS_GLNS_ALM // 1479 #define GPS_MODEL_HAS_GNSS_SAT_INFO // 1482 #define GPS_MODEL_HAS_IP4_SETTINGS // 1483 #define GPS_MODEL_HAS_LAN_IF_INFO // 1484 #define GPS_MODEL_HAS_IP4_STATE // 1486 #define GPS_MODEL_HAS_CRYPTED_PACKET // 1487 #define GPS_MODEL_HAS_CRYPTED_RAW_PACKET // 1489 #define GPS_MODEL_HAS_SECU_INFO // 1490 #define GPS_MODEL_HAS_SECU_SETTINGS // 1491 #define GPS_MODEL_HAS_SECU_PUBLIC_KEY // 1493 #endif //##++ more potential builtin features and classifiers 1503 #define BUILTIN_FEAT_GPS \ 1505 GPS_MODEL_IS_GPS | \ 1506 GPS_MODEL_HAS_BVAR_STAT | \ 1507 GPS_MODEL_HAS_POS_XYZ | \ 1508 GPS_MODEL_HAS_POS_LLA | \ 1509 GPS_MODEL_HAS_TIME_TTM | \ 1510 GPS_MODEL_HAS_TZDL | \ 1511 GPS_MODEL_HAS_ANT_INFO | \ 1512 GPS_MODEL_HAS_ENABLE_FLAGS | \ 1513 GPS_MODEL_HAS_STAT_INFO | \ 1514 GPS_MODEL_HAS_ANT_CABLE_LEN | \ 1515 GPS_MODEL_HAS_SV_INFO \ 1528 #define BUILTIN_FEAT_GNSS \ 1530 BUILTIN_FEAT_GPS | \ 1539 #define BUILTIN_FEAT_TCR_1 \ 1548 #define BUILTIN_FEAT_TCR_2 \ 1550 GPS_MODEL_IS_TCR | \ 1551 GPS_MODEL_HAS_TIME_TTM | \ 1552 GPS_MODEL_HAS_TZDL | \ 1553 GPS_MODEL_HAS_ANT_INFO | \ 1554 GPS_MODEL_HAS_ENABLE_FLAGS \ 1562 #define BUILTIN_FEAT_DCF_1 \ 1564 GPS_MODEL_IS_DCF_AM | \ 1565 GPS_MODEL_HAS_TZCODE \ 1572 #define BUILTIN_FEAT_DCF_2 \ 1574 GPS_MODEL_IS_DCF_AM | \ 1575 GPS_MODEL_HAS_TIME_TTM | \ 1576 GPS_MODEL_HAS_TZDL | \ 1577 GPS_MODEL_HAS_ANT_INFO | \ 1578 GPS_MODEL_HAS_ENABLE_FLAGS \ 1585 #define BUILTIN_FEAT_DCF_PZF_1 \ 1587 GPS_MODEL_IS_DCF_PZF | \ 1588 GPS_MODEL_HAS_TZCODE \ 1595 #define BUILTIN_FEAT_DCF_PZF_2 \ 1597 GPS_MODEL_IS_DCF_AM | \ 1598 GPS_MODEL_IS_DCF_PZF | \ 1599 GPS_MODEL_HAS_TIME_TTM | \ 1600 GPS_MODEL_HAS_TZDL | \ 1601 GPS_MODEL_HAS_ANT_INFO | \ 1602 GPS_MODEL_HAS_ENABLE_FLAGS \ 1610 #define BUILTIN_FEAT_MSF_1 \ 1612 GPS_MODEL_IS_MSF | \ 1613 GPS_MODEL_HAS_TZCODE \ 1620 #define BUILTIN_FEAT_MSF_2 \ 1622 GPS_MODEL_IS_MSF | \ 1623 GPS_MODEL_HAS_TIME_TTM | \ 1624 GPS_MODEL_HAS_TZDL | \ 1625 GPS_MODEL_HAS_ANT_INFO | \ 1626 GPS_MODEL_HAS_ENABLE_FLAGS \ 1634 #define BUILTIN_FEAT_WVB_1 \ 1636 GPS_MODEL_IS_WWVB | \ 1637 GPS_MODEL_HAS_TZCODE \ 1644 #define BUILTIN_FEAT_WVB_2 \ 1646 GPS_MODEL_IS_WWVB | \ 1647 GPS_MODEL_HAS_TZDL \ 1655 #define BUILTIN_FEAT_JJY_1 \ 1657 GPS_MODEL_IS_JJY | \ 1658 GPS_MODEL_HAS_TZCODE \ 1666 #define BUILTIN_FEAT_COMM_N2X \ 1668 GPS_MODEL_HAS_TIME_TTM | \ 1669 GPS_MODEL_HAS_TZDL | \ 1670 GPS_MODEL_HAS_ENABLE_FLAGS \ 1678 #define BUILTIN_FEAT_GPS_BUS_LVL ( BUILTIN_FEAT_GPS | GPS_MODEL_IS_BUS_LVL_DEV ) 1684 #define BUILTIN_FEAT_GNSS_BUS_LVL ( BUILTIN_FEAT_GNSS | GPS_MODEL_IS_BUS_LVL_DEV ) 1690 #define BUILTIN_FEAT_TCR_1_BUS_LVL ( BUILTIN_FEAT_TCR_1 | GPS_MODEL_IS_BUS_LVL_DEV ) 1695 #define BUILTIN_FEAT_TCR_2_BUS_LVL ( BUILTIN_FEAT_TCR_2 | GPS_MODEL_IS_BUS_LVL_DEV ) 1701 #define BUILTIN_FEAT_DCF_1_BUS_LVL ( BUILTIN_FEAT_DCF_1 | GPS_MODEL_IS_BUS_LVL_DEV ) 1706 #define BUILTIN_FEAT_DCF_2_BUS_LVL ( BUILTIN_FEAT_DCF_2 | GPS_MODEL_IS_BUS_LVL_DEV ) 1711 #define BUILTIN_FEAT_DCF_PZF_2_BUS_LVL ( BUILTIN_FEAT_DCF_PZF_2 | GPS_MODEL_IS_BUS_LVL_DEV ) 1723 #define BUILTIN_FEAT_GPS166 ( BUILTIN_FEAT_GPS ) 1724 #define BUILTIN_FEAT_GPS167 ( BUILTIN_FEAT_GPS ) 1725 #define BUILTIN_FEAT_GPS167SV ( BUILTIN_FEAT_GPS ) 1726 #define BUILTIN_FEAT_GPS167PC ( BUILTIN_FEAT_GPS_BUS_LVL ) 1727 #define BUILTIN_FEAT_GPS167PCI ( BUILTIN_FEAT_GPS_BUS_LVL ) 1728 #define BUILTIN_FEAT_GPS163 ( BUILTIN_FEAT_GPS ) 1729 #define BUILTIN_FEAT_GPS168PCI ( BUILTIN_FEAT_GPS_BUS_LVL ) 1730 #define BUILTIN_FEAT_GPS161 ( BUILTIN_FEAT_GPS ) 1731 #define BUILTIN_FEAT_GPS169PCI ( BUILTIN_FEAT_GPS_BUS_LVL ) 1732 #define BUILTIN_FEAT_TCR167PCI ( BUILTIN_FEAT_TCR_2_BUS_LVL ) 1733 #define BUILTIN_FEAT_GPS164 ( BUILTIN_FEAT_GPS ) 1734 #define BUILTIN_FEAT_GPS170PCI ( BUILTIN_FEAT_GPS_BUS_LVL ) 1735 #define BUILTIN_FEAT_PZF511 ( BUILTIN_FEAT_DCF_PZF_1 ) 1736 #define BUILTIN_FEAT_GPS170 ( BUILTIN_FEAT_GPS ) 1737 #define BUILTIN_FEAT_TCR511 ( BUILTIN_FEAT_TCR_1_BUS_LVL | GPS_MODEL_HAS_TIME_TTM ) //### TODO Or full TCR_2? 1738 #define BUILTIN_FEAT_AM511 ( BUILTIN_FEAT_DCF_1 ) 1739 #define BUILTIN_FEAT_MSF511 ( BUILTIN_FEAT_MSF_1 ) 1740 #define BUILTIN_FEAT_GRC170 ( BUILTIN_FEAT_GNSS ) 1741 #define BUILTIN_FEAT_GPS170PEX ( BUILTIN_FEAT_GPS_BUS_LVL ) 1742 #define BUILTIN_FEAT_GPS162 ( BUILTIN_FEAT_GPS ) 1743 #define BUILTIN_FEAT_PTP270PEX ( GPS_MODEL_IS_BUS_LVL_DEV ) 1744 #define BUILTIN_FEAT_FRC511PEX ( GPS_MODEL_IS_BUS_LVL_DEV ) 1745 #define BUILTIN_FEAT_GEN170 ( 0 ) 1746 #define BUILTIN_FEAT_TCR170PEX ( BUILTIN_FEAT_TCR_2_BUS_LVL ) 1747 #define BUILTIN_FEAT_WWVB511 ( BUILTIN_FEAT_WVB_1 ) 1748 #define BUILTIN_FEAT_MGR170 ( 0 ) 1749 #define BUILTIN_FEAT_JJY511 ( BUILTIN_FEAT_JJY_1 ) 1750 #define BUILTIN_FEAT_PZF600 ( BUILTIN_FEAT_DCF_PZF_1 ) //### TODO Or full PZF_2? 1751 #define BUILTIN_FEAT_TCR600 ( BUILTIN_FEAT_TCR_1 | GPS_MODEL_HAS_TIME_TTM ) //### TODO Or full TCR_2? 1752 #define BUILTIN_FEAT_GPS180 ( BUILTIN_FEAT_GPS ) 1753 #define BUILTIN_FEAT_GLN170 ( BUILTIN_FEAT_GNSS) 1754 #define BUILTIN_FEAT_GPS180PEX ( BUILTIN_FEAT_GPS_BUS_LVL ) 1755 #define BUILTIN_FEAT_TCR180PEX ( BUILTIN_FEAT_TCR_2_BUS_LVL ) 1756 #define BUILTIN_FEAT_PZF180PEX ( BUILTIN_FEAT_DCF_PZF_2_BUS_LVL ) 1757 #define BUILTIN_FEAT_MGR180 ( 0 ) 1758 #define BUILTIN_FEAT_MSF600 ( BUILTIN_FEAT_MSF_1 ) //### TODO Or full MSF_2? 1759 #define BUILTIN_FEAT_WWVB600 ( BUILTIN_FEAT_WVB_1 ) //### TODO Or full WVB_2? 1760 #define BUILTIN_FEAT_JJY600 ( BUILTIN_FEAT_JJY_1 ) //### TODO Or full JJY_2? 1761 #define BUILTIN_FEAT_GPS180HS ( BUILTIN_FEAT_GPS ) 1762 #define BUILTIN_FEAT_GPS180AMC ( BUILTIN_FEAT_GPS_BUS_LVL ) 1763 #define BUILTIN_FEAT_ESI180 ( 0 ) 1764 #define BUILTIN_FEAT_CPE180 ( 0 ) 1765 #define BUILTIN_FEAT_LNO180 ( 0 ) 1766 #define BUILTIN_FEAT_GRC180 ( BUILTIN_FEAT_GNSS ) 1767 #define BUILTIN_FEAT_LIU ( 0 ) 1768 #define BUILTIN_FEAT_DCF600HS ( BUILTIN_FEAT_DCF_2 ) //### TODO 1769 #define BUILTIN_FEAT_DCF600RS ( BUILTIN_FEAT_DCF_2 ) //### TODO 1770 #define BUILTIN_FEAT_MRI ( 0 ) 1771 #define BUILTIN_FEAT_BPE ( 0 ) 1772 #define BUILTIN_FEAT_GLN180PEX ( BUILTIN_FEAT_GNSS_BUS_LVL ) 1773 #define BUILTIN_FEAT_N2X ( BUILTIN_FEAT_COMM_N2X ) 1774 #define BUILTIN_FEAT_RSC180 ( GPS_MODEL_HAS_SCU_STAT ) 1775 #define BUILTIN_FEAT_LNE_GB ( 0 ) 1776 #define BUILTIN_FEAT_PPG180 ( 0 ) 1777 #define BUILTIN_FEAT_SCG ( 0 ) 1778 #define BUILTIN_FEAT_MDU300 ( 0 ) 1779 #define BUILTIN_FEAT_SDI ( 0 ) 1780 #define BUILTIN_FEAT_FDM180 ( GPS_MODEL_HAS_TZDL | GPS_MODEL_HAS_ENABLE_FLAGS ) 1781 #define BUILTIN_FEAT_SPT ( 0 ) 1782 #define BUILTIN_FEAT_PZF180 ( BUILTIN_FEAT_DCF_PZF_2 ) 1783 #define BUILTIN_FEAT_REL1000 ( 0 ) 1784 #define BUILTIN_FEAT_HPS100 ( 0 ) 1785 #define BUILTIN_FEAT_VSG180 ( GPS_MODEL_HAS_TZDL ) 1786 #define BUILTIN_FEAT_MSF180 ( BUILTIN_FEAT_MSF_2 ) 1787 #define BUILTIN_FEAT_WWVB180 ( BUILTIN_FEAT_WVB_2 ) 1788 #define BUILTIN_FEAT_CPC180 ( 0 ) 1789 #define BUILTIN_FEAT_CTC100 ( GPS_MODEL_HAS_MBG_OS ) 1790 #define BUILTIN_FEAT_TCR180 ( BUILTIN_FEAT_TCR_2 ) 1791 #define BUILTIN_FEAT_LUE180 ( 0 ) 1792 #define BUILTIN_FEAT_CPC_01 ( 0 ) 1793 #define BUILTIN_FEAT_TSU_01 ( 0 ) 1794 #define BUILTIN_FEAT_CMC_01 ( 0 ) 1795 #define BUILTIN_FEAT_SCU_01 ( 0 ) 1796 #define BUILTIN_FEAT_FCU_01 ( 0 ) 1797 #define BUILTIN_FEAT_CSM100 ( GPS_MODEL_HAS_MBG_OS ) 1798 #define BUILTIN_FEAT_LNE180SFP ( 0 ) 1799 #define BUILTIN_FEAT_GTS180 ( 0 ) 1800 #define BUILTIN_FEAT_GPS180CSM ( BUILTIN_FEAT_GPS ) 1801 #define BUILTIN_FEAT_GRC181 ( BUILTIN_FEAT_GNSS ) 1802 #define BUILTIN_FEAT_N2X180 ( BUILTIN_FEAT_COMM_N2X ) 1803 #define BUILTIN_FEAT_GNS181PEX ( BUILTIN_FEAT_GNSS_BUS_LVL ) 1804 #define BUILTIN_FEAT_MDU180 ( GPS_MODEL_HAS_SCU_STAT ) 1805 #define BUILTIN_FEAT_MDU312 ( 0 ) 1806 #define BUILTIN_FEAT_GPS165 ( BUILTIN_FEAT_GPS ) 1807 #define BUILTIN_FEAT_GNS181_UC ( BUILTIN_FEAT_GNSS | GPS_MODEL_HAS_UP_CONV ) 1808 #define BUILTIN_FEAT_PSX_4GE ( GPS_MODEL_HAS_MBG_OS ) 1809 #define BUILTIN_FEAT_RSC180RDU ( GPS_MODEL_HAS_SCU_STAT ) 1810 #define BUILTIN_FEAT_USYNCPWR ( 0 ) 1811 #define BUILTIN_FEAT_FDM180M ( GPS_MODEL_HAS_TZDL | GPS_MODEL_HAS_ENABLE_FLAGS ) 1812 #define BUILTIN_FEAT_LSG180 ( 0 ) 1813 #define BUILTIN_FEAT_GPS190 ( BUILTIN_FEAT_GPS ) 1814 #define BUILTIN_FEAT_GNS181 ( BUILTIN_FEAT_GNSS ) 1815 #define BUILTIN_FEAT_PIO180 ( 0 ) 1816 #define BUILTIN_FEAT_FCM180 ( 0 ) 1817 #define BUILTIN_FEAT_TCR180USB ( 0 ) 1818 #define BUILTIN_FEAT_SSP100 ( GPS_MODEL_HAS_MBG_OS ) 1819 #define BUILTIN_FEAT_GNS165 ( BUILTIN_FEAT_GNSS ) 1820 #define BUILTIN_FEAT_RSC180RDMP ( GPS_MODEL_HAS_SCU_STAT ) 1821 #define BUILTIN_FEAT_GPS16X ( BUILTIN_FEAT_GPS ) 1822 #define BUILTIN_FEAT_MSHPS100 ( GPS_MODEL_HAS_MBG_OS ) 1832 #define BUILTIN_FEAT_UNDEFINED ( 0 ) 1838 #if !defined( MBG_TGT_DOS ) 1848 #define GPS_MODEL_BUILTIN_FEATURES \ 1850 { GPS_MODEL_GPS166, BUILTIN_FEAT_GPS166 }, \ 1851 { GPS_MODEL_GPS167, BUILTIN_FEAT_GPS167 }, \ 1852 { GPS_MODEL_GPS167SV, BUILTIN_FEAT_GPS167SV }, \ 1853 { GPS_MODEL_GPS167PC, BUILTIN_FEAT_GPS167PC }, \ 1854 { GPS_MODEL_GPS167PCI, BUILTIN_FEAT_GPS167PCI }, \ 1855 { GPS_MODEL_GPS163, BUILTIN_FEAT_GPS163 }, \ 1856 { GPS_MODEL_GPS168PCI, BUILTIN_FEAT_GPS168PCI }, \ 1857 { GPS_MODEL_GPS161, BUILTIN_FEAT_GPS161 }, \ 1858 { GPS_MODEL_GPS169PCI, BUILTIN_FEAT_GPS169PCI }, \ 1859 { GPS_MODEL_TCR167PCI, BUILTIN_FEAT_TCR167PCI }, \ 1860 { GPS_MODEL_GPS164, BUILTIN_FEAT_GPS164 }, \ 1861 { GPS_MODEL_GPS170PCI, BUILTIN_FEAT_GPS170PCI }, \ 1862 { GPS_MODEL_PZF511, BUILTIN_FEAT_PZF511 }, \ 1863 { GPS_MODEL_GPS170, BUILTIN_FEAT_GPS170 }, \ 1864 { GPS_MODEL_TCR511, BUILTIN_FEAT_TCR511 }, \ 1865 { GPS_MODEL_AM511, BUILTIN_FEAT_AM511 }, \ 1866 { GPS_MODEL_MSF511, BUILTIN_FEAT_MSF511 }, \ 1867 { GPS_MODEL_GRC170, BUILTIN_FEAT_GRC170 }, \ 1868 { GPS_MODEL_GPS170PEX, BUILTIN_FEAT_GPS170PEX }, \ 1869 { GPS_MODEL_GPS162, BUILTIN_FEAT_GPS162 }, \ 1870 { GPS_MODEL_PTP270PEX, BUILTIN_FEAT_PTP270PEX }, \ 1871 { GPS_MODEL_FRC511PEX, BUILTIN_FEAT_FRC511PEX }, \ 1872 { GPS_MODEL_GEN170, BUILTIN_FEAT_GEN170 }, \ 1873 { GPS_MODEL_TCR170PEX, BUILTIN_FEAT_TCR170PEX }, \ 1874 { GPS_MODEL_WWVB511, BUILTIN_FEAT_WWVB511 }, \ 1875 { GPS_MODEL_MGR170, BUILTIN_FEAT_MGR170 }, \ 1876 { GPS_MODEL_JJY511, BUILTIN_FEAT_JJY511 }, \ 1877 { GPS_MODEL_PZF600, BUILTIN_FEAT_PZF600 }, \ 1878 { GPS_MODEL_TCR600, BUILTIN_FEAT_TCR600 }, \ 1879 { GPS_MODEL_GPS180, BUILTIN_FEAT_GPS180 }, \ 1880 { GPS_MODEL_GLN170, BUILTIN_FEAT_GLN170 }, \ 1881 { GPS_MODEL_GPS180PEX, BUILTIN_FEAT_GPS180PEX }, \ 1882 { GPS_MODEL_TCR180PEX, BUILTIN_FEAT_TCR180PEX }, \ 1883 { GPS_MODEL_PZF180PEX, BUILTIN_FEAT_PZF180PEX }, \ 1884 { GPS_MODEL_MGR180, BUILTIN_FEAT_MGR180 }, \ 1885 { GPS_MODEL_MSF600, BUILTIN_FEAT_MSF600 }, \ 1886 { GPS_MODEL_WWVB600, BUILTIN_FEAT_WWVB600 }, \ 1887 { GPS_MODEL_JJY600, BUILTIN_FEAT_JJY600 }, \ 1888 { GPS_MODEL_GPS180HS, BUILTIN_FEAT_GPS180HS }, \ 1889 { GPS_MODEL_GPS180AMC, BUILTIN_FEAT_GPS180AMC }, \ 1890 { GPS_MODEL_ESI180, BUILTIN_FEAT_ESI180 }, \ 1891 { GPS_MODEL_CPE180, BUILTIN_FEAT_CPE180 }, \ 1892 { GPS_MODEL_LNO180, BUILTIN_FEAT_LNO180 }, \ 1893 { GPS_MODEL_GRC180, BUILTIN_FEAT_GRC180 }, \ 1894 { GPS_MODEL_LIU, BUILTIN_FEAT_LIU }, \ 1895 { GPS_MODEL_DCF600HS, BUILTIN_FEAT_DCF600HS }, \ 1896 { GPS_MODEL_DCF600RS, BUILTIN_FEAT_DCF600RS }, \ 1897 { GPS_MODEL_MRI, BUILTIN_FEAT_MRI }, \ 1898 { GPS_MODEL_BPE, BUILTIN_FEAT_BPE }, \ 1899 { GPS_MODEL_GLN180PEX, BUILTIN_FEAT_GLN180PEX }, \ 1900 { GPS_MODEL_N2X, BUILTIN_FEAT_N2X }, \ 1901 { GPS_MODEL_RSC180, BUILTIN_FEAT_RSC180 }, \ 1902 { GPS_MODEL_LNE_GB, BUILTIN_FEAT_LNE_GB }, \ 1903 { GPS_MODEL_PPG180, BUILTIN_FEAT_PPG180 }, \ 1904 { GPS_MODEL_SCG, BUILTIN_FEAT_SCG }, \ 1905 { GPS_MODEL_MDU300, BUILTIN_FEAT_MDU300 }, \ 1906 { GPS_MODEL_SDI, BUILTIN_FEAT_SDI }, \ 1907 { GPS_MODEL_FDM180, BUILTIN_FEAT_FDM180 }, \ 1908 { GPS_MODEL_SPT, BUILTIN_FEAT_SPT }, \ 1909 { GPS_MODEL_PZF180, BUILTIN_FEAT_PZF180 }, \ 1910 { GPS_MODEL_REL1000, BUILTIN_FEAT_REL1000 }, \ 1911 { GPS_MODEL_HPS100, BUILTIN_FEAT_HPS100 }, \ 1912 { GPS_MODEL_VSG180, BUILTIN_FEAT_VSG180 }, \ 1913 { GPS_MODEL_MSF180, BUILTIN_FEAT_MSF180 }, \ 1914 { GPS_MODEL_WWVB180, BUILTIN_FEAT_WWVB180 }, \ 1915 { GPS_MODEL_CPC180, BUILTIN_FEAT_CPC180 }, \ 1916 { GPS_MODEL_CTC100, BUILTIN_FEAT_CTC100 }, \ 1917 { GPS_MODEL_TCR180, BUILTIN_FEAT_TCR180 }, \ 1918 { GPS_MODEL_LUE180, BUILTIN_FEAT_LUE180 }, \ 1919 { GPS_MODEL_CPC_01, BUILTIN_FEAT_CPC_01 }, \ 1920 { GPS_MODEL_TSU_01, BUILTIN_FEAT_TSU_01 }, \ 1921 { GPS_MODEL_CMC_01, BUILTIN_FEAT_CMC_01 }, \ 1922 { GPS_MODEL_SCU_01, BUILTIN_FEAT_SCU_01 }, \ 1923 { GPS_MODEL_FCU_01, BUILTIN_FEAT_FCU_01 }, \ 1924 { GPS_MODEL_CSM100, BUILTIN_FEAT_CSM100 }, \ 1925 { GPS_MODEL_LNE180SFP, BUILTIN_FEAT_LNE180SFP }, \ 1926 { GPS_MODEL_GTS180, BUILTIN_FEAT_GTS180 }, \ 1927 { GPS_MODEL_GPS180CSM, BUILTIN_FEAT_GPS180CSM }, \ 1928 { GPS_MODEL_GRC181, BUILTIN_FEAT_GRC181 }, \ 1929 { GPS_MODEL_N2X180, BUILTIN_FEAT_N2X180 }, \ 1930 { GPS_MODEL_GNS181PEX, BUILTIN_FEAT_GNS181PEX }, \ 1931 { GPS_MODEL_MDU180, BUILTIN_FEAT_MDU180 }, \ 1932 { GPS_MODEL_MDU312, BUILTIN_FEAT_MDU312 }, \ 1933 { GPS_MODEL_GPS165, BUILTIN_FEAT_GPS165 }, \ 1934 { GPS_MODEL_GNS181_UC, BUILTIN_FEAT_GNS181_UC }, \ 1935 { GPS_MODEL_PSX_4GE, BUILTIN_FEAT_PSX_4GE }, \ 1936 { GPS_MODEL_RSC180RDU, BUILTIN_FEAT_RSC180RDU }, \ 1937 { GPS_MODEL_USYNCPWR, BUILTIN_FEAT_USYNCPWR }, \ 1938 { GPS_MODEL_FDM180M, BUILTIN_FEAT_FDM180M }, \ 1939 { GPS_MODEL_LSG180, BUILTIN_FEAT_LSG180 }, \ 1940 { GPS_MODEL_GPS190, BUILTIN_FEAT_GPS190 }, \ 1941 { GPS_MODEL_GNS181, BUILTIN_FEAT_GNS181 }, \ 1942 { GPS_MODEL_PIO180, BUILTIN_FEAT_PIO180 }, \ 1943 { GPS_MODEL_FCM180, BUILTIN_FEAT_FCM180 }, \ 1944 { GPS_MODEL_TCR180USB, BUILTIN_FEAT_TCR180USB }, \ 1945 { GPS_MODEL_SSP100, BUILTIN_FEAT_SSP100 }, \ 1946 { GPS_MODEL_GNS165, BUILTIN_FEAT_GNS165 }, \ 1947 { GPS_MODEL_RSC180RDMP, BUILTIN_FEAT_RSC180RDMP }, \ 1948 { GPS_MODEL_GPS16X, BUILTIN_FEAT_GPS16X }, \ 1949 { GPS_MODEL_MSHPS100, BUILTIN_FEAT_MSHPS100 }, \ 1953 #endif // !defined( MBG_TGT_DOS ) 1971 #define _setup_default_receiver_info_dcf( _p, _pdev ) \ 1974 memset( (_p), 0, sizeof( *(_p) ) ); \ 1976 (_p)->ticks_per_sec = DEFAULT_GPS_TICKS_PER_SEC; \ 1977 (_p)->n_ucaps = 0; \ 1978 (_p)->n_com_ports = _pcps_has_serial( _pdev ) ? 1 : 0; \ 1979 (_p)->n_str_type = ( (_p)->n_com_ports != 0 ) ? \ 1980 DEFAULT_N_STR_TYPE_DCF : 0; \ 1996 #define _setup_default_receiver_info_gps( _p ) \ 1999 memset( (_p), 0, sizeof( *(_p) ) ); \ 2001 (_p)->ticks_per_sec = DEFAULT_GPS_TICKS_PER_SEC; \ 2002 (_p)->n_ucaps = 2; \ 2003 (_p)->n_com_ports = DEFAULT_N_COM; \ 2004 (_p)->n_str_type = DEFAULT_N_STR_TYPE_GPS; \ 2015 #define _mbg_rcvr_is_plug_in( _p_ri ) \ 2016 ( strstr( (_p_ri)->model_name, "PC" ) || \ 2017 strstr( (_p_ri)->model_name, "PEX" ) ) 2019 #define _mbg_rcvr_is_gps( _p_ri ) \ 2020 ( strstr( (_p_ri)->model_name, "GPS" ) || \ 2021 strstr( (_p_ri)->model_name, "MGR" ) ) 2023 #define _mbg_rcvr_is_mobile_gps( _p_ri ) \ 2024 ( strstr( (_p_ri)->model_name, "MGR" ) ) 2026 #define _mbg_rcvr_is_gps_plug_in( _p_ri ) \ 2027 ( _mbg_rcvr_is_gps( _p_ri ) && \ 2028 _mbg_rcvr_is_plug_in( _p_ri ) ) 2030 #define _mbg_rcvr_is_irig( _p_ri ) \ 2031 ( strstr( (_p_ri)->model_name, "TCR" ) ) 2033 #define _mbg_rcvr_is_irig_plug_in( _p_ri ) \ 2034 ( _mbg_rcvr_is_irig( _p_ri ) && \ 2035 _mbg_rcvr_is_plug_in( _p_ri ) ) 2037 #define _mbg_rcvr_is_dcf77_am( _p_ri ) \ 2038 ( strstr( (_p_ri)->model_name, "AM" ) ) 2040 #define _mbg_rcvr_is_dcf77_am_plug_in( _p_ri ) \ 2041 ( _mbg_rcvr_is_dcf77_am( _p_ri ) && \ 2042 _mbg_rcvr_is_plug_in( _p_ri ) ) 2044 #define _mbg_rcvr_is_dcf77_pzf( _p_ri ) \ 2045 ( strstr( (_p_ri)->model_name, "PZF" ) ) 2047 #define _mbg_rcvr_is_dcf77_pzf_plug_in( _p_ri ) \ 2048 ( _mbg_rcvr_is_dcf77_pzf( _p_ri ) && \ 2049 _mbg_rcvr_is_plug_in( _p_ri ) ) 2051 #define _mbg_rcvr_is_any_dcf77( _p_ri ) \ 2052 ( _mbg_rcvr_is_dcf77_am( _p_ri ) || \ 2053 _mbg_rcvr_is_dcf77_pzf( _p_ri ) ) 2055 #define _mbg_rcvr_is_any_dcf77_plug_in( _p_ri ) \ 2056 ( _mbg_rcvr_is_any_dcf77( _p_ri ) && \ 2057 _mbg_rcvr_is_plug_in( _p_ri ) ) 2059 #define _mbg_rcvr_is_msf( _p_ri ) \ 2060 ( strstr( (_p_ri)->model_name, "MSF" ) ) 2062 #define _mbg_rcvr_is_jjy( _p_ri ) \ 2063 ( strstr( (_p_ri)->model_name, "JJY" ) ) 2065 #define _mbg_rcvr_is_msf_plug_in( _p_ri ) \ 2066 ( _mbg_rcvr_is_msf( _p_ri ) && \ 2067 _mbg_rcvr_is_plug_in( _p_ri ) ) 2069 #define _mbg_rcvr_is_glonass( _p_ri ) \ 2070 ( strstr( (_p_ri)->model_name, "GRC" ) || \ 2071 strstr( (_p_ri)->model_name, "GLN" ) ) 2073 #define _mbg_rcvr_is_glonass_plug_in( _p_ri ) \ 2074 ( _mbg_rcvr_is_glonass( _p_ri ) && \ 2075 _mbg_rcvr_is_plug_in( _p_ri ) ) 2077 #define _mbg_rcvr_is_wwvb( _p_ri ) \ 2078 ( strstr( (_p_ri)->model_name, "WWVB" ) ) 2080 #define _mbg_rcvr_is_wwvb_plug_in( _p_ri ) \ 2081 ( _mbg_rcvr_is_wwvb( _p_ri ) && \ 2082 _mbg_rcvr_is_plug_in( _p_ri ) ) 2121 #define DEFAULT_GPS_OSC_NAMES \ 2148 #define DEFAULT_GPS_OSC_QUALITY_IDX \ 2230 #define DEFAULT_GPS_FEATURE_NAMES \ 2232 "Pulse Per Second", \ 2233 "Pulse Per Minute", \ 2234 "Programmable Synth.", \ 2235 "DCF77 Time Marks", \ 2238 "IPv4 LAN Interface", \ 2239 "Multiple Ref. Sources", \ 2240 "Receive Timeout", \ 2243 "Ext. Multiple Ref. Src. Cfg.", \ 2244 "Optional Settings", \ 2245 "Configurable Time Scale", \ 2246 "IRIG Control Bits", \ 2248 "Nav. Engine Settings", \ 2251 "PTP/IEEE1588 Unicast", \ 2252 "General Purpose I/O", \ 2253 "Multiple XMRS Instances", \ 2254 "10 MHz Output Disabled", \ 2259 "Ext. Network Config", \ 2260 "Versatile Storage", \ 2262 "Extended Binary Protocol", \ 2263 "Extended Features" \ 2274 #define GPS_HAS_PPS ( 1UL << GPS_FEAT_PPS ) 2275 #define GPS_HAS_PPM ( 1UL << GPS_FEAT_PPM ) 2276 #define GPS_HAS_SYNTH ( 1UL << GPS_FEAT_SYNTH ) 2277 #define GPS_HAS_DCFMARKS ( 1UL << GPS_FEAT_DCFMARKS ) 2278 #define GPS_HAS_IRIG_TX ( 1UL << GPS_FEAT_IRIG_TX ) 2279 #define GPS_HAS_IRIG_RX ( 1UL << GPS_FEAT_IRIG_RX ) 2280 #define GPS_HAS_LAN_IP4 ( 1UL << GPS_FEAT_LAN_IP4 ) 2281 #define GPS_HAS_MULTI_REF ( 1UL << GPS_FEAT_MULTI_REF ) 2283 #define GPS_HAS_RCV_TIMEOUT ( 1UL << GPS_FEAT_RCV_TIMEOUT ) 2284 #define GPS_HAS_IGNORE_LOCK ( 1UL << GPS_FEAT_IGNORE_LOCK ) 2285 #define GPS_HAS_5_MHZ ( 1UL << GPS_FEAT_5_MHZ ) 2286 #define GPS_HAS_XMULTI_REF ( 1UL << GPS_FEAT_XMULTI_REF ) 2287 #define GPS_HAS_OPT_SETTINGS ( 1UL << GPS_FEAT_OPT_SETTINGS ) 2288 #define GPS_HAS_TIME_SCALE ( 1UL << GPS_FEAT_TIME_SCALE ) 2289 #define GPS_HAS_IRIG_CTRL_BITS ( 1UL << GPS_FEAT_IRIG_CTRL_BITS ) 2290 #define GPS_HAS_PTP ( 1UL << GPS_FEAT_PTP ) 2292 #define GPS_HAS_NAV_ENGINE_SETTINGS ( 1UL << GPS_FEAT_NAV_ENGINE_SETTINGS ) 2293 #define GPS_HAS_RAW_IRIG_DATA ( 1UL << GPS_FEAT_RAW_IRIG_DATA ) 2294 #define GPS_HAS_RAW_IRIG_TIME ( 1UL << GPS_FEAT_RAW_IRIG_TIME ) 2295 #define GPS_HAS_PTP_UNICAST ( 1UL << GPS_FEAT_PTP_UNICAST ) 2296 #define GPS_HAS_GPIO ( 1UL << GPS_FEAT_GPIO ) 2297 #define GPS_HAS_XMRS_MULT_INSTC ( 1UL << GPS_FEAT_XMRS_MULT_INSTC ) 2298 #define GPS_HAS_10MHZ_DISBD ( 1UL << GPS_FEAT_10MHZ_DISBD ) 2299 #define GPS_HAS_EVT_LOG ( 1UL << GPS_FEAT_EVT_LOG ) 2301 #define GPS_HAS_IMS ( 1UL << GPS_FEAT_IMS ) 2302 #define GPS_HAS_HAVEQUICK ( 1UL << GPS_FEAT_HAVEQUICK ) 2303 #define GPS_HAS_NTP ( 1UL << GPS_FEAT_NTP ) 2304 #define GPS_HAS_NET_CFG ( 1UL << GPS_FEAT_NET_CFG ) 2305 #define GPS_HAS_VST ( 1UL << GPS_FEAT_VST ) 2306 #define GPS_HAS_SHS ( 1UL << GPS_FEAT_SHS ) 2307 #define GPS_HAS_XBP ( 1UL << GPS_FEAT_XBP ) 2308 #define GPS_HAS_XFEATURE ( 1UL << GPS_FEAT_XFEATURE ) 2311 #define GPS_HAS_REF_OFFS GPS_HAS_IRIG_RX 2312 #define GPS_HAS_DEBUG_STATUS GPS_HAS_IRIG_RX 2333 #define MAX_XFEATURE_BITS 1024 2385 #define MBG_XFEATURE_NAMES \ 2387 "Generic TLV API", \ 2388 "Save Config On Card", \ 2389 "Programmable LED API", \ 2391 "Power Control API", \ 2392 "Extended Revision Info", \ 2393 "Transaction commands", \ 2395 "Clock Resolution Info", \ 2396 "Extended User Captures", \ 2403 "User Authentication", \ 2404 "User Management", \ 2405 "Service Management", \ 2406 "Antenna Converter", \ 2407 "Firmware Management", \ 2408 "DAC control via bus", \ 2421 #define MAX_XFEATURE_BYTES ( MAX_XFEATURE_BITS / 8 ) 2455 #define _set_xfeature_bit( _xf_bit, _xf_buffp ) \ 2456 _set_array_bit( _xf_bit, (_xf_buffp)->b, MAX_XFEATURE_BYTES ) 2467 #define DEFAULT_GPS_FEATURES_C166 \ 2504 #define FPGA_NAME_LEN 31 // max name length 2505 #define FPGA_NAME_SIZE ( FPGA_NAME_LEN + 1 ) // size including trailing 0 2507 #define FPGA_INFO_SIZE 128 2536 #define DEFAULT_FPGA_START_SEG 0x60 2538 #define DEFAULT_FPGA_START_INFO \ 2540 0x1234 + DEFAULT_FPGA_START_SEG, \ 2541 DEFAULT_FPGA_START_SEG \ 2571 #define _mbg_swab_t_gps( _p ) \ 2574 _mbg_swab16( &(_p)->wn ); \ 2575 _mbg_swab32( &(_p)->sec ); \ 2576 _mbg_swab32( &(_p)->tick ); \ 2609 #define _mbg_swab_tm_gps( _p ) \ 2612 _mbg_swab16( &(_p)->year ); \ 2613 _mbg_swab16( &(_p)->yday ); \ 2614 _mbg_swab32( &(_p)->frac ); \ 2615 _mbg_swab32( &(_p)->offs_from_utc ); \ 2616 _mbg_swab16( &(_p)->status ); \ 2699 #define TM_SCALE_GPS ( 1UL << TM_BIT_SCALE_GPS ) 2700 #define TM_SCALE_TAI ( 1UL << TM_BIT_SCALE_TAI ) 2702 #define TM_MSK_TIME_VALID ( TM_UTC | TM_SCALE_GPS | TM_SCALE_TAI ) 2721 #define _mbg_swab_ttm( _p ) \ 2724 _mbg_swab16( &(_p)->channel ); \ 2725 _mbg_swab_t_gps( &(_p)->t ); \ 2726 _mbg_swab_tm_gps( &(_p)->tm ); \ 2731 #ifndef _XYZ_DEFINED 2744 #define _XYZ_DEFINED 2747 #define _mbg_swab_xyz( _p ) _mbg_swab_doubles( _p, N_XYZ ) 2750 #ifndef _LLA_DEFINED 2766 #define _LLA_DEFINED 2769 #define _mbg_swab_lla( _p ) _mbg_swab_doubles( _p, N_LLA ) 2803 #define N_SYNTH_FREQ_DIGIT 4 2804 #define MAX_SYNTH_FREQ 1000 2806 #define MIN_SYNTH_RANGE 0 2807 #define MAX_SYNTH_RANGE 5 2808 #define N_SYNTH_RANGE ( MAX_SYNTH_RANGE - MIN_SYNTH_RANGE + 1 ) 2810 #define N_SYNTH_PHASE_DIGIT 4 2811 #define MAX_SYNTH_PHASE 3600 2814 #define MAX_SYNTH_FREQ_EDIT 9999 2820 #define MAX_SYNTH_FREQ_VAL 10000000UL 2826 #define SYNTH_PHASE_SYNC_LIMIT 10000UL 2832 #define _synth_dp_pos_from_range( _r ) \ 2833 ( ( ( N_SYNTH_RANGE - (_r) ) % ( N_SYNTH_FREQ_DIGIT - 1 ) ) + 1 ) 2841 #define DEFAULT_FREQ_RANGES \ 2864 #define _mbg_swab_synth( _p ) \ 2867 _mbg_swab16( &(_p)->freq ); \ 2868 _mbg_swab16( &(_p)->range ); \ 2869 _mbg_swab16( &(_p)->phase ); \ 2897 #define _mbg_swab_synth_state( _p ) _nop_macro_fnc() 2899 #define SYNTH_FLAG_PHASE_IGNORED 0x01 2950 #define _mbg_swab_tzdl( _p ) \ 2953 _mbg_swab32( &(_p)->offs ); \ 2954 _mbg_swab32( &(_p)->offs_dl ); \ 2955 _mbg_swab_tm_gps( &(_p)->tm_on ); \ 2956 _mbg_swab_tm_gps( &(_p)->tm_off ); \ 2966 #define DL_AUTO_FLAG 0x8000 2972 #define DEFAULT_TZDL_AUTO_YEAR ( (int16_t) ( 2007L | DL_AUTO_FLAG ) ) 2974 #define DEFAULt_TZDL_OFFS_DL 3600L 2981 #define DEFAULT_TZDL_TM_ON_OFF_NO_DST \ 2982 { DEFAULT_TZDL_AUTO_YEAR, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 } 2987 #define TZ_INFO_UTC "UTC (Universal Time, Coordinated)" 2989 #define DEFAULT_TZDL_NAMES_UTC { "UTC ", "UTC " } 2991 #define DEFAULT_TZDL_UTC \ 2995 DEFAULT_TZDL_TM_ON_OFF_NO_DST, \ 2996 DEFAULT_TZDL_TM_ON_OFF_NO_DST, \ 2997 DEFAULT_TZDL_NAMES_UTC \ 3004 #define DEFAULT_TZDL_TM_ON_CET_CEST \ 3005 { DEFAULT_TZDL_AUTO_YEAR, 3, 25, 0, 0, 2, 0, 0, 0L, 0L, 0 } 3010 #define DEFAULT_TZDL_TM_OFF_CET_CEST \ 3011 { DEFAULT_TZDL_AUTO_YEAR, 10, 25, 0, 0, 3, 0, 0, 0L, 0L, 0 } 3016 #define TZ_INFO_CET_CEST_EN "CET/CEST (Central Europe)" 3017 #define TZ_INFO_CET_CEST_DE "MEZ/MESZ (Mitteleuropa)" 3019 #define DEFAULT_TZDL_NAMES_CET_CEST_EN { "CET ", "CEST " } 3020 #define DEFAULT_TZDL_NAMES_CET_CEST_DE { "MEZ ", "MESZ " } 3022 #define DEFAULT_TZDL_OFFS_CET 3600L 3024 #define DEFAULT_TZDL_CET_CEST_EN \ 3026 DEFAULT_TZDL_OFFS_CET, \ 3027 DEFAULt_TZDL_OFFS_DL, \ 3028 DEFAULT_TZDL_TM_ON_CET_CEST, \ 3029 DEFAULT_TZDL_TM_OFF_CET_CEST, \ 3030 DEFAULT_TZDL_NAMES_CET_CEST_EN \ 3033 #define DEFAULT_TZDL_CET_CEST_DE \ 3035 DEFAULT_TZDL_OFFS_CET, \ 3036 DEFAULt_TZDL_OFFS_DL, \ 3037 DEFAULT_TZDL_TM_ON_CET_CEST, \ 3038 DEFAULT_TZDL_TM_OFF_CET_CEST, \ 3039 DEFAULT_TZDL_NAMES_CET_CEST_DE \ 3046 #define DEFAULT_TZDL_TM_ON_EET_EEST \ 3047 { DEFAULT_TZDL_AUTO_YEAR, 3, 25, 0, 0, 3, 0, 0, 0L, 0L, 0 } 3049 #define DEFAULT_TZDL_TM_OFF_EET_EEST \ 3050 { DEFAULT_TZDL_AUTO_YEAR, 10, 25, 0, 0, 4, 0, 0, 0L, 0L, 0 } 3055 #define TZ_INFO_EET_EEST_EN "EET/EEST (East Europe)" 3056 #define TZ_INFO_EET_EEST_DE "OEZ/OEST (Osteuropa)" 3058 #define DEFAULT_TZDL_NAMES_EET_EEST_EN { "EET ", "EEST " } 3059 #define DEFAULT_TZDL_NAMES_EET_EEST_DE { "OEZ ", "OESZ " } 3061 #define DEFAULT_TZDL_OFFS_EET 7200L 3063 #define DEFAULT_TZDL_EET_EEST_EN \ 3065 DEFAULT_TZDL_OFFS_EET, \ 3066 DEFAULt_TZDL_OFFS_DL, \ 3067 DEFAULT_TZDL_TM_ON_EET_EEST, \ 3068 DEFAULT_TZDL_TM_OFF_EET_EEST, \ 3069 DEFAULT_TZDL_NAMES_EET_EEST_EN \ 3072 #define DEFAULT_TZDL_EET_EEST_DE \ 3074 DEFAULT_TZDL_OFFS_EET, \ 3075 DEFAULt_TZDL_OFFS_DL, \ 3076 DEFAULT_TZDL_TM_ON_EET_EEST, \ 3077 DEFAULT_TZDL_TM_OFF_EET_EEST, \ 3078 DEFAULT_TZDL_NAMES_EET_EEST_DE \ 3109 #define _mbg_swab_ant_info( _p ) \ 3112 _mbg_swab16( &(_p)->status ); \ 3113 _mbg_swab_tm_gps( &(_p)->tm_disconn ); \ 3114 _mbg_swab_tm_gps( &(_p)->tm_reconn ); \ 3115 _mbg_swab32( &(_p)->delta_t ); \ 3151 #define _mbg_swab_enable_flags( _p ) \ 3154 _mbg_swab16( &(_p)->serial ); \ 3155 _mbg_swab16( &(_p)->pulses ); \ 3156 _mbg_swab16( &(_p)->freq ); \ 3157 _mbg_swab16( &(_p)->synth ); \ 3176 #ifndef _COM_HS_DEFINED 3181 #define _COM_HS_DEFINED 3184 #ifndef _COM_PARM_DEFINED 3210 #define _COM_PARM_DEFINED 3213 #define _mbg_swab_baud_rate( _p ) _mbg_swab32( _p ) 3215 #define _mbg_swab_com_parm( _p ) \ 3218 _mbg_swab_baud_rate( &(_p)->baud_rate ); \ 3219 _mbg_swab16( &(_p)->handshake ); \ 3259 #define MBG_BAUD_RATES \ 3283 #define MBG_BAUD_STRS \ 3361 #define MBG_FRAMING_STRS \ 3411 #define MBG_DEFAULT_FRAMING "8N1" 3419 #define MBG_DEFAULT_BAUDRATE 19200L 3427 #define MBG_DEFAULT_BAUDRATE_HS 115200L 3439 #define MBG_FORCE_CONN_CMD_STR "\nDFC\n" 3440 #define MBG_FORCE_CONN_HS_CMD_STR "\nDFCHS\n" 3453 #define DEFAULT_GPS_BAUD_RATES_C166 \ 3455 MBG_PORT_HAS_300 | \ 3456 MBG_PORT_HAS_600 | \ 3457 MBG_PORT_HAS_1200 | \ 3458 MBG_PORT_HAS_2400 | \ 3459 MBG_PORT_HAS_4800 | \ 3460 MBG_PORT_HAS_9600 | \ 3461 MBG_PORT_HAS_19200 \ 3464 #define DEFAULT_GPS_FRAMINGS_C166 \ 3466 MBG_PORT_HAS_7N2 | \ 3467 MBG_PORT_HAS_7E1 | \ 3468 MBG_PORT_HAS_7E2 | \ 3469 MBG_PORT_HAS_8N1 | \ 3470 MBG_PORT_HAS_8N2 | \ 3480 #define DEFAULT_GPS_BAUD_RATES_GP2021 \ 3482 MBG_PORT_HAS_300 | \ 3483 MBG_PORT_HAS_600 | \ 3484 MBG_PORT_HAS_1200 | \ 3485 MBG_PORT_HAS_2400 | \ 3486 MBG_PORT_HAS_4800 | \ 3487 MBG_PORT_HAS_9600 | \ 3488 MBG_PORT_HAS_19200 \ 3491 #define DEFAULT_GPS_FRAMINGS_GP2021 \ 3493 MBG_PORT_HAS_7N2 | \ 3494 MBG_PORT_HAS_7E2 | \ 3495 MBG_PORT_HAS_8N1 | \ 3496 MBG_PORT_HAS_8E1 | \ 3516 #define _mbg_swab_port_settings( _p ) \ 3519 _mbg_swab_com_parm( &(_p)->parm ); \ 3520 _mbg_swab32( &(_p)->flags ); \ 3561 #define MBG_PS_MSK_BAUD_RATE_OVR_SW ( 1UL << MBG_PS_BIT_BAUD_RATE_OVR_SW ) 3562 #define MBG_PS_MSK_BAUD_RATE_OVR_DEV ( 1UL << MBG_PS_BIT_BAUD_RATE_OVR_DEV ) 3563 #define MBG_PS_MSK_BAUD_RATE ( 1UL << MBG_PS_BIT_BAUD_RATE ) 3564 #define MBG_PS_MSK_FRAMING_OVR_SW ( 1UL << MBG_PS_BIT_FRAMING_OVR_SW ) 3565 #define MBG_PS_MSK_FRAMING_OVR_DEV ( 1UL << MBG_PS_BIT_FRAMING_OVR_DEV ) 3566 #define MBG_PS_MSK_FRAMING ( 1UL << MBG_PS_BIT_FRAMING ) 3567 #define MBG_PS_MSK_HS_OVR_SW ( 1UL << MBG_PS_BIT_HS_OVR_SW ) 3568 #define MBG_PS_MSK_HS ( 1UL << MBG_PS_BIT_HS ) 3569 #define MBG_PS_MSK_STR_TYPE_OVR_SW ( 1UL << MBG_PS_BIT_STR_TYPE_OVR_SW ) 3570 #define MBG_PS_MSK_STR_TYPE_OVR_DEV ( 1UL << MBG_PS_BIT_STR_TYPE_OVR_DEV ) 3571 #define MBG_PS_MSK_STR_TYPE ( 1UL << MBG_PS_BIT_STR_TYPE ) 3572 #define MBG_PS_MSK_STR_MODE_OVR_SW ( 1UL << MBG_PS_BIT_STR_MODE_OVR_SW ) 3573 #define MBG_PS_MSK_STR_MODE_OVR_DEV ( 1UL << MBG_PS_BIT_STR_MODE_OVR_DEV ) 3574 #define MBG_PS_MSK_STR_MODE ( 1UL << MBG_PS_BIT_STR_MODE ) 3575 #define MBG_PS_MSK_FLAGS_OVR_SW ( 1UL << MBG_PS_BIT_FLAGS_OVR_SW ) 3576 #define MBG_PS_MSK_FLAGS ( 1UL << MBG_PS_BIT_FLAGS ) 3601 #define _mbg_swab_port_settings_idx( _p ) \ 3604 _mbg_swab16( &(_p)->idx ); \ 3605 _mbg_swab_port_settings( &(_p)->port_settings ); \ 3629 #define _mbg_swab_port_info( _p ) \ 3632 _mbg_swab_port_settings( &(_p)->port_settings ); \ 3633 _mbg_swab32( &(_p)->supp_baud_rates ); \ 3634 _mbg_swab32( &(_p)->supp_framings ); \ 3635 _mbg_swab32( &(_p)->supp_str_types ); \ 3636 _mbg_swab32( &(_p)->reserved ); \ 3637 _mbg_swab32( &(_p)->flags ); \ 3684 #define _mbg_swab_port_info_idx( _p ) \ 3687 _mbg_swab16( &(_p)->idx ); \ 3688 _mbg_swab_port_info( &(_p)->port_info ); \ 3708 char short_name[11];
3713 #define _mbg_swab_str_type_info( _p ) \ 3716 _mbg_swab32( &(_p)->supp_modes ); \ 3717 _mbg_swab16( &(_p)->flags ); \ 3740 #define _mbg_swab_str_type_info_idx( _p ) \ 3743 _mbg_swab16( &(_p)->idx ); \ 3744 _mbg_swab_str_type_info( &(_p)->str_type_info ); \ 3793 #define DEFAULT_SHORT_MODE_NAMES \ 3811 #define ENG_MODE_NAME_STR_ON_REQ "on request '?' only" 3812 #define ENG_MODE_NAME_STR_PER_SEC "per second" 3813 #define ENG_MODE_NAME_STR_PER_MIN "per minute" 3814 #define ENG_MODE_NAME_STR_AUTO "automatically" 3815 #define ENG_MODE_NAME_STR_ON_REQ_SEC "sec after request" 3816 #define ENG_MODE_NAME_STR_CR_ON_SEC "per second, <CR> on second change" 3826 #define DEFAULT_ENG_MODE_NAMES \ 3828 ENG_MODE_NAME_STR_ON_REQ, \ 3829 ENG_MODE_NAME_STR_PER_SEC, \ 3830 ENG_MODE_NAME_STR_PER_MIN, \ 3831 ENG_MODE_NAME_STR_AUTO, \ 3832 ENG_MODE_NAME_STR_ON_REQ_SEC, \ 3833 ENG_MODE_NAME_STR_CR_ON_SEC \ 3840 #define DEFAULT_STR_MODES \ 3851 #define DEFAULT_STR_MODES_UCAP \ 3867 #define DEFAULT_N_STR_TYPE_DCF 1 3877 #define DEFAULT_SUPP_STR_TYPES_DCF \ 3878 ( ( 1UL << DEFAULT_N_STR_TYPE_DCF ) - 1 ) 3890 #define DEFAULT_N_STR_TYPE_GPS 2 3900 #define DEFAULT_SUPP_STR_TYPES_GPS \ 3901 ( ( 1UL << DEFAULT_N_STR_TYPE_GPS ) - 1 ) 3911 #define DEFAULT_N_COM 2 3918 #define N_COM DEFAULT_N_COM 3936 #define _mbg_swab_port_parm( _p ) \ 3940 for ( i = 0; i < DEFAULT_N_COM; i++ ) \ 3942 _mbg_swab_com_parm( &(_p)->com[i] ); \ 3968 #if _IS_MBG_FIRMWARE // Old symbols for source code compatibility ... 3969 #define STR_UCAP LGCY_STR_UCAP // Same numeric value as ::STR_AUTO 3970 #define STR_UCAP_REQ LGCY_STR_UCAP_REQ // Same numeric value as ::STR_ON_REQ_SEC, but different function 3972 #define N_STR_MODE_0 ( LGCY_STR_PER_MIN + 1 ) // Number of modes supp. for COM0 3973 #define N_STR_MODE_1 N_LGCY_STR_MODES // Number of modes supp. for COM1 4137 #define DEFAULT_ICODE_TX_NAMES \ 4143 "AFNOR NF S87-500", \ 4145 "B220(1344) DCLS", \ 4167 #define DEFAULT_ICODE_TX_NAMES_SHORT \ 4196 #define DEFAULT_ICODE_TX_DESCRIPTIONS_ENG \ 4198 "100 bps, DCLS or 1 kHz carrier", \ 4199 "100 bps, DCLS or 1 kHz carrier, SBS", \ 4200 "1000 bps, DCLS or 10 kHz carrier", \ 4201 "1000 bps, DCLS or 10 kHz carrier, SBS", \ 4202 "100 bps, DCLS or 1 kHz carrier, complete date, SBS", \ 4203 "100 bps, DCLS or 1 kHz carrier, 2 digit year number, SBS, UTC offset, DST and Leap sec status", \ 4204 "100 bps, Manchester enc., DCLS only, 2 digit year number, SBS, UTC offset, DST and Leap sec status", \ 4205 "100 bps, Manchester enc., DCLS only", \ 4206 "100 bps, Manchester enc., DCLS only, SBS", \ 4207 "100 bps, DCLS or 1 kHz carrier, 2 digit year number", \ 4208 "100 bps, DCLS or 1 kHz carrier, 2 digit year number, SBS", \ 4209 "10 kbps, DCLS or 100 kHz carrier", \ 4210 "10 kbps, DCLS or 100 kHz carrier, 2 digit year number", \ 4211 "100 bps, DCLS or 1 kHz carrier, 2 digit year number, SBS, UTC offs. reverse to 1344, DST/Leap sec status", \ 4212 "code from TV time sync device TXC-101 DTR-6", \ 4213 "10 bps, DCLS or 100 Hz carrier", \ 4214 "100 bps, DCLS or 1 kHz carrier", \ 4215 "1000 bps, DCLS or 10 kHz carrier, 2 digit year number", \ 4216 "1000 bps, DCLS or 10 kHz carrier, 2 digit year number, SBS" \ 4231 #define MSK_ICODE_TX_B002_B122 ( 1UL << ICODE_TX_B002_B122 ) 4232 #define MSK_ICODE_TX_B003_B123 ( 1UL << ICODE_TX_B003_B123 ) 4233 #define MSK_ICODE_TX_A002_A132 ( 1UL << ICODE_TX_A002_A132 ) 4234 #define MSK_ICODE_TX_A003_A133 ( 1UL << ICODE_TX_A003_A133 ) 4235 #define MSK_ICODE_TX_AFNOR ( 1UL << ICODE_TX_AFNOR ) 4236 #define MSK_ICODE_TX_IEEE1344 ( 1UL << ICODE_TX_IEEE1344 ) 4237 #define MSK_ICODE_TX_B2201344 ( 1UL << ICODE_TX_B2201344 ) 4238 #define MSK_ICODE_TX_B222 ( 1UL << ICODE_TX_B222 ) 4239 #define MSK_ICODE_TX_B223 ( 1UL << ICODE_TX_B223 ) 4240 #define MSK_ICODE_TX_B006_B126 ( 1UL << ICODE_TX_B006_B126 ) 4241 #define MSK_ICODE_TX_B007_B127 ( 1UL << ICODE_TX_B007_B127 ) 4242 #define MSK_ICODE_TX_G002_G142 ( 1UL << ICODE_TX_G002_G142 ) 4243 #define MSK_ICODE_TX_G006_G146 ( 1UL << ICODE_TX_G006_G146 ) 4244 #define MSK_ICODE_TX_C37118 ( 1UL << ICODE_TX_C37118 ) 4245 #define MSK_ICODE_TX_TXC101 ( 1UL << ICODE_TX_TXC101 ) 4246 #define MSK_ICODE_TX_E002_E112 ( 1UL << ICODE_TX_E002_E112 ) 4247 #define MSK_ICODE_TX_NASA36 ( 1UL << ICODE_TX_NASA36 ) 4248 #define MSK_ICODE_TX_A006_A136 ( 1UL << ICODE_TX_A006_A136 ) 4249 #define MSK_ICODE_TX_A007_A137 ( 1UL << ICODE_TX_A007_A137 ) 4257 #define MSK_ICODE_TX_DC_MANCH \ 4259 MSK_ICODE_TX_B2201344 | \ 4260 MSK_ICODE_TX_B222 | \ 4267 #define MSK_ICODE_TX_100HZ \ 4269 MSK_ICODE_TX_E002_E112 \ 4275 #define MSK_ICODE_TX_1KHZ \ 4277 MSK_ICODE_TX_B002_B122 | \ 4278 MSK_ICODE_TX_B003_B123 | \ 4279 MSK_ICODE_TX_AFNOR | \ 4280 MSK_ICODE_TX_IEEE1344 | \ 4281 MSK_ICODE_TX_B2201344 | \ 4282 MSK_ICODE_TX_B222 | \ 4283 MSK_ICODE_TX_B223 | \ 4284 MSK_ICODE_TX_B006_B126 | \ 4285 MSK_ICODE_TX_B007_B127 | \ 4286 MSK_ICODE_TX_C37118 | \ 4287 MSK_ICODE_TX_NASA36 \ 4293 #define MSK_ICODE_TX_10KHZ \ 4295 MSK_ICODE_TX_A002_A132 | \ 4296 MSK_ICODE_TX_A003_A133 | \ 4297 MSK_ICODE_TX_A006_A136 | \ 4298 MSK_ICODE_TX_A007_A137 \ 4304 #define MSK_ICODE_TX_100KHZ \ 4306 MSK_ICODE_TX_G002_G142 | \ 4307 MSK_ICODE_TX_G006_G146 \ 4313 #define MSK_ICODE_TX_10BPS \ 4315 MSK_ICODE_TX_E002_E112 \ 4321 #define MSK_ICODE_TX_100BPS \ 4323 MSK_ICODE_TX_B002_B122 | \ 4324 MSK_ICODE_TX_B003_B123 | \ 4325 MSK_ICODE_TX_AFNOR | \ 4326 MSK_ICODE_TX_IEEE1344 | \ 4327 MSK_ICODE_TX_B006_B126 | \ 4328 MSK_ICODE_TX_B007_B127 | \ 4329 MSK_ICODE_TX_C37118 \ 4335 #define MSK_ICODE_TX_1000BPS \ 4337 MSK_ICODE_TX_A002_A132 | \ 4338 MSK_ICODE_TX_A003_A133 | \ 4339 MSK_ICODE_TX_A006_A136 | \ 4340 MSK_ICODE_TX_A007_A137 \ 4346 #define MSK_ICODE_TX_10000BPS \ 4348 MSK_ICODE_TX_G002_G142 | \ 4349 MSK_ICODE_TX_G006_G146 \ 4355 #define MSK_ICODE_TX_HAS_SEC10THS \ 4357 MSK_ICODE_TX_A002_A132 | \ 4358 MSK_ICODE_TX_A003_A133 | \ 4359 MSK_ICODE_TX_G002_G142 | \ 4360 MSK_ICODE_TX_G006_G146 | \ 4361 MSK_ICODE_TX_A006_A136 | \ 4362 MSK_ICODE_TX_A007_A137 \ 4368 #define MSK_ICODE_TX_HAS_SEC100THS \ 4370 MSK_ICODE_TX_G002_G142 | \ 4371 MSK_ICODE_TX_G006_G146 \ 4385 #define MSK_ICODE_TX_HAS_SHORT_YEAR_AFTER_P5 \ 4387 MSK_ICODE_TX_AFNOR | \ 4388 MSK_ICODE_TX_IEEE1344 | \ 4389 MSK_ICODE_TX_B2201344 | \ 4390 MSK_ICODE_TX_B006_B126 | \ 4391 MSK_ICODE_TX_B007_B127 | \ 4392 MSK_ICODE_TX_C37118 | \ 4393 MSK_ICODE_TX_A006_A136 | \ 4394 MSK_ICODE_TX_A007_A137 \ 4407 #define MSK_ICODE_TX_HAS_SHORT_YEAR_AFTER_P6 \ 4409 MSK_ICODE_TX_G006_G146 \ 4421 #define MSK_ICODE_TX_HAS_ANY_SHORT_YEAR \ 4423 MSK_ICODE_TX_HAS_SHORT_YEAR_AFTER_P5 | \ 4424 MSK_ICODE_TX_HAS_SHORT_YEAR_AFTER_P6 \ 4430 #define MSK_ICODE_TX_HAS_TFOM \ 4432 MSK_ICODE_TX_IEEE1344 | \ 4433 MSK_ICODE_TX_C37118 \ 4441 #define MSK_ICODE_TX_HAS_CTQ \ 4443 MSK_ICODE_TX_IEEE1344 | \ 4444 MSK_ICODE_TX_C37118 \ 4450 #define MSK_ICODE_TX_HAS_TZI \ 4452 MSK_ICODE_TX_IEEE1344 | \ 4453 MSK_ICODE_TX_C37118 \ 4463 #define MSK_ICODE_TX_UTC_OFFS_SUB \ 4465 MSK_ICODE_TX_IEEE1344 \ 4475 #define MSK_ICODE_TX_UTC_OFFS_ADD \ 4477 MSK_ICODE_TX_C37118 \ 4483 #define MSK_ICODE_TX_HAS_AFNOR_WDAY \ 4485 MSK_ICODE_TX_AFNOR | \ 4486 MSK_ICODE_TX_AFNOR_DC \ 4492 #define MSK_ICODE_TX_HAS_AFNOR_DATE \ 4494 MSK_ICODE_TX_AFNOR | \ 4495 MSK_ICODE_TX_AFNOR_DC \ 4505 #if !defined( SUPP_MSK_ICODE_TX ) 4506 #define SUPP_MSK_ICODE_TX \ 4508 MSK_ICODE_TX_B002_B122 | \ 4509 MSK_ICODE_TX_B003_B123 | \ 4510 MSK_ICODE_TX_A002_A132 | \ 4511 MSK_ICODE_TX_A003_A133 | \ 4512 MSK_ICODE_TX_AFNOR \ 4564 #define DEFAULT_ICODE_RX_NAMES \ 4568 "B002/B003 (DCLS)", \ 4569 "A002/A003 (DCLS)", \ 4570 "AFNOR NF S87-500", \ 4571 "AFNOR NF S87-500 (DCLS)", \ 4573 "IEEE1344 (DCLS)", \ 4575 "B006/B007 (DCLS)", \ 4581 "TXC-101 DTR-6 (DCLS)", \ 4587 "A006/A007 (DCLS)", \ 4599 #define DEFAULT_ICODE_RX_NAMES_SHORT \ 4633 #define DEFAULT_ICODE_RX_DESCRIPTIONS_ENG \ 4635 "100 bps, 1 kHz carrier, SBS optionally", \ 4636 "1000 bps, 10 kHz carrier, SBS optionally", \ 4637 "100 bps, DCLS, SBS optionally", \ 4638 "1000 bps, DCLS, SBS optionally", \ 4639 "100 bps, 1 kHz carrier, complete date, SBS", \ 4640 "100 bps, DCLS, complete date, SBS", \ 4641 "100 bps, 1 kHz carrier, SBS, time zone info", \ 4642 "100 bps, DCLS, SBS, time zone info", \ 4643 "100 bps, 1 kHz carrier, 2 digit year number, SBS optionally", \ 4644 "100 bps, DCLS, 2 digit year number, SBS optionally", \ 4645 "10 kbps, 100 kHz carrier", \ 4647 "like IEEE1344, but UTC offset with reversed sign", \ 4648 "like IEEE1344 DC, but UTC offset with reversed sign", \ 4649 "code from TV time sync device TXC-101 DTR-6", \ 4650 "DC code from TV time sync device TXC-101 DTR-6", \ 4651 "10 bps, 100 Hz carrier", \ 4653 "100 bps, 1 kHz carrier", \ 4655 "1000 bps, 10 kHz carrier, 2 digit year number, SBS optionally", \ 4656 "1000 bps, DCLS, 2 digit year number, SBS optionally", \ 4657 "10 kbps, 100 kHz carrier, 2 digit year number", \ 4658 "10 kbps, DCLS, 2 digit year number" \ 4672 #define MSK_ICODE_RX_B122_B123 ( 1UL << ICODE_RX_B122_B123 ) 4673 #define MSK_ICODE_RX_A132_A133 ( 1UL << ICODE_RX_A132_A133 ) 4674 #define MSK_ICODE_RX_B002_B003 ( 1UL << ICODE_RX_B002_B003 ) 4675 #define MSK_ICODE_RX_A002_A003 ( 1UL << ICODE_RX_A002_A003 ) 4676 #define MSK_ICODE_RX_AFNOR ( 1UL << ICODE_RX_AFNOR ) 4677 #define MSK_ICODE_RX_AFNOR_DC ( 1UL << ICODE_RX_AFNOR_DC ) 4678 #define MSK_ICODE_RX_IEEE1344 ( 1UL << ICODE_RX_IEEE1344 ) 4679 #define MSK_ICODE_RX_IEEE1344_DC ( 1UL << ICODE_RX_IEEE1344_DC ) 4680 #define MSK_ICODE_RX_B126_B127 ( 1UL << ICODE_RX_B126_B127 ) 4681 #define MSK_ICODE_RX_B006_B007 ( 1UL << ICODE_RX_B006_B007 ) 4682 #define MSK_ICODE_RX_G142 ( 1UL << ICODE_RX_G142 ) 4683 #define MSK_ICODE_RX_G002 ( 1UL << ICODE_RX_G002 ) 4684 #define MSK_ICODE_RX_C37118 ( 1UL << ICODE_RX_C37118 ) 4685 #define MSK_ICODE_RX_C37118_DC ( 1UL << ICODE_RX_C37118_DC ) 4686 #define MSK_ICODE_RX_TXC101 ( 1UL << ICODE_RX_TXC101 ) 4687 #define MSK_ICODE_RX_TXC101_DC ( 1UL << ICODE_RX_TXC101_DC ) 4688 #define MSK_ICODE_RX_E112 ( 1UL << ICODE_RX_E112 ) 4689 #define MSK_ICODE_RX_E002 ( 1UL << ICODE_RX_E002 ) 4690 #define MSK_ICODE_RX_NASA36 ( 1UL << ICODE_RX_NASA36 ) 4691 #define MSK_ICODE_RX_NASA36_DC ( 1UL << ICODE_RX_NASA36_DC ) 4692 #define MSK_ICODE_RX_A136_A137 ( 1UL << ICODE_RX_A136_A137 ) 4693 #define MSK_ICODE_RX_A006_A007 ( 1UL << ICODE_RX_A006_A007 ) 4694 #define MSK_ICODE_RX_G146 ( 1UL << ICODE_RX_G146 ) 4695 #define MSK_ICODE_RX_G006 ( 1UL << ICODE_RX_G006 ) 4703 #define MSK_ICODE_RX_DC \ 4705 MSK_ICODE_RX_B002_B003 | \ 4706 MSK_ICODE_RX_A002_A003 | \ 4707 MSK_ICODE_RX_AFNOR_DC | \ 4708 MSK_ICODE_RX_IEEE1344_DC | \ 4709 MSK_ICODE_RX_B006_B007 | \ 4710 MSK_ICODE_RX_G002 | \ 4711 MSK_ICODE_RX_C37118_DC | \ 4712 MSK_ICODE_RX_TXC101_DC | \ 4713 MSK_ICODE_RX_E002 | \ 4714 MSK_ICODE_RX_NASA36_DC | \ 4715 MSK_ICODE_RX_A006_A007 | \ 4722 #define MSK_ICODE_RX_100HZ \ 4730 #define MSK_ICODE_RX_1KHZ \ 4732 MSK_ICODE_RX_B122_B123 | \ 4733 MSK_ICODE_RX_AFNOR | \ 4734 MSK_ICODE_RX_IEEE1344 | \ 4735 MSK_ICODE_RX_B126_B127 | \ 4736 MSK_ICODE_RX_C37118 | \ 4737 MSK_ICODE_RX_TXC101 | \ 4738 MSK_ICODE_RX_NASA36 \ 4744 #define MSK_ICODE_RX_10KHZ \ 4746 MSK_ICODE_RX_A132_A133 | \ 4747 MSK_ICODE_RX_A136_A137 \ 4753 #define MSK_ICODE_RX_100KHZ \ 4755 MSK_ICODE_RX_G142 | \ 4762 #define MSK_ICODE_RX_10BPS \ 4764 MSK_ICODE_RX_E002_E112 | \ 4765 MSK_ICODE_RX_E002_E002 \ 4771 #define MSK_ICODE_RX_100BPS \ 4773 MSK_ICODE_RX_B122_B123 | \ 4774 MSK_ICODE_RX_B002_B003 | \ 4775 MSK_ICODE_RX_AFNOR | \ 4776 MSK_ICODE_RX_AFNOR_DC | \ 4777 MSK_ICODE_RX_IEEE1344 | \ 4778 MSK_ICODE_RX_IEEE1344_DC | \ 4779 MSK_ICODE_RX_B126_B127 | \ 4780 MSK_ICODE_RX_B006_B007 | \ 4781 MSK_ICODE_RX_C37118 | \ 4782 MSK_ICODE_RX_C37118_DC | \ 4783 MSK_ICODE_RX_TXC101 | \ 4784 MSK_ICODE_RX_TXC101_DC | \ 4785 MSK_ICODE_RX_NASA36 | \ 4786 MSK_ICODE_RX_NASA36_DC \ 4792 #define MSK_ICODE_RX_1000BPS \ 4794 MSK_ICODE_RX_A132_A133 | \ 4795 MSK_ICODE_RX_A002_A003 | \ 4796 MSK_ICODE_RX_A136_A137 | \ 4797 MSK_ICODE_RX_A006_A007 \ 4803 #define MSK_ICODE_RX_10000BPS \ 4805 MSK_ICODE_RX_G142 | \ 4806 MSK_ICODE_RX_G002 | \ 4807 MSK_ICODE_RX_G146 | \ 4814 #define MSK_ICODE_RX_HAS_SEC10THS \ 4816 MSK_ICODE_RX_A132_A133 | \ 4817 MSK_ICODE_RX_A002_A003 | \ 4818 MSK_ICODE_RX_G142 | \ 4819 MSK_ICODE_RX_G002 | \ 4820 MSK_ICODE_RX_A136_A137 | \ 4821 MSK_ICODE_RX_A006_A007 | \ 4822 MSK_ICODE_RX_G146 | \ 4829 #define MSK_ICODE_RX_HAS_SEC100THS \ 4831 MSK_ICODE_RX_G142 | \ 4832 MSK_ICODE_RX_G002 | \ 4833 MSK_ICODE_RX_G146 | \ 4846 #define MSK_ICODE_RX_HAS_SHORT_YEAR_AFTER_P5 \ 4848 MSK_ICODE_RX_AFNOR | \ 4849 MSK_ICODE_RX_AFNOR_DC | \ 4850 MSK_ICODE_RX_IEEE1344 | \ 4851 MSK_ICODE_RX_IEEE1344_DC | \ 4852 MSK_ICODE_RX_B126_B127 | \ 4853 MSK_ICODE_RX_B006_B007 | \ 4854 MSK_ICODE_RX_C37118 | \ 4855 MSK_ICODE_RX_C37118_DC | \ 4856 MSK_ICODE_RX_A136_A137 | \ 4857 MSK_ICODE_RX_A006_A007 \ 4869 #define MSK_ICODE_RX_HAS_SHORT_YEAR_AFTER_P6 \ 4871 MSK_ICODE_RX_G146 | \ 4884 #define MSK_ICODE_RX_HAS_ANY_SHORT_YEAR \ 4886 MSK_ICODE_RX_HAS_SHORT_YEAR_AFTER_P5 | \ 4887 MSK_ICODE_RX_HAS_SHORT_YEAR_AFTER_P6 \ 4895 #define MSK_ICODE_RX_HAS_TFOM \ 4897 MSK_ICODE_RX_IEEE1344 | \ 4898 MSK_ICODE_RX_IEEE1344_DC | \ 4899 MSK_ICODE_RX_C37118 | \ 4900 MSK_ICODE_RX_C37118_DC \ 4908 #define MSK_ICODE_RX_HAS_CTQ \ 4910 MSK_ICODE_RX_IEEE1344 | \ 4911 MSK_ICODE_RX_IEEE1344_DC | \ 4912 MSK_ICODE_RX_C37118 | \ 4913 MSK_ICODE_RX_C37118_DC \ 4919 #define MSK_ICODE_RX_HAS_TZI \ 4921 MSK_ICODE_RX_IEEE1344 | \ 4922 MSK_ICODE_RX_IEEE1344_DC | \ 4923 MSK_ICODE_RX_C37118 | \ 4924 MSK_ICODE_RX_C37118_DC \ 4934 #define MSK_ICODE_RX_UTC_OFFS_SUB \ 4936 MSK_ICODE_RX_IEEE1344 | \ 4937 MSK_ICODE_RX_IEEE1344_DC \ 4947 #define MSK_ICODE_RX_UTC_OFFS_ADD \ 4949 MSK_ICODE_RX_C37118 | \ 4950 MSK_ICODE_RX_C37118_DC \ 4956 #define MSK_ICODE_RX_HAS_AFNOR_WDAY \ 4958 MSK_ICODE_RX_AFNOR | \ 4959 MSK_ICODE_RX_AFNOR_DC \ 4965 #define MSK_ICODE_RX_HAS_AFNOR_DATE \ 4967 MSK_ICODE_RX_AFNOR | \ 4968 MSK_ICODE_RX_AFNOR_DC \ 4978 #if !defined( SUPP_MSK_ICODE_RX ) 4979 #define SUPP_MSK_ICODE_RX \ 4981 MSK_ICODE_RX_B122_B123 | \ 4982 MSK_ICODE_RX_A132_A133 | \ 4983 MSK_ICODE_RX_B002_B003 | \ 4984 MSK_ICODE_RX_A002_A003 | \ 4985 MSK_ICODE_RX_AFNOR | \ 4986 MSK_ICODE_RX_AFNOR_DC \ 5006 #define _mbg_swab_irig_settings( _p ) \ 5009 _mbg_swab16( &(_p)->icode ); \ 5010 _mbg_swab16( &(_p)->flags ); \ 5061 #define _mbg_swab_irig_info( _p ) \ 5064 _mbg_swab_irig_settings( &(_p)->settings ); \ 5065 _mbg_swab32( &(_p)->supp_codes ); \ 5084 #define N_IRIG_RX_COMP_VAL 4 5101 #define _mbg_swab_irig_rx_comp( _p ) \ 5105 for ( i = 0; i < N_IRIG_RX_COMP_VAL; i++ ) \ 5106 _mbg_swab16( &(_p)->c[i] ); \ 5111 #define IRIG_RX_COMP_MAX 999 // [100 ns units], i.e. valid range is +/-99.9 us 5125 #define _mbg_swab_cal_rec_hdr( _p ) \ 5128 _mbg_swab16( &(_p)->type ); \ 5129 _mbg_swab16( &(_p)->idx ); \ 5164 #define DEFAULT_IRIG_RX_COMP_NAMES \ 5166 "B1xx/AFNOR/IEEE1344", \ 5168 "B0xx/AFNOR DC/IEEE1344 DC", \ 5186 #define _mbg_swab_cal_rec_irig_rx_comp( _p ) \ 5189 _mbg_swab_cal_rec_hdr( &(_p)->hdr ); \ 5190 _mbg_swab_irig_rx_comp( &(_p)->comp_data ); \ 5206 #define _mbg_swab_debug_status( _p ) \ 5240 #define MBG_DEBUG_STATUS_STRS \ 5242 "Osc has warmed up", \ 5243 "PPS output is active", \ 5244 "Config set to default", \ 5245 "IRIG msg decoded", \ 5246 "IRIG msg not consistent", \ 5247 "Decoder control loop locked", \ 5248 "Phase jitter too large", \ 5249 "Invalid ref offset", \ 5251 "Internal time not valid", \ 5252 "On board time set via API", \ 5253 "On board RTC invalid", \ 5254 "CPU PLL failure, needs restart" \ 5265 #define MBG_IRIG_MSK_WARMED_UP ( 1UL << MBG_IRIG_BIT_WARMED_UP ) 5266 #define MBG_IRIG_MSK_PPS_ACTIVE ( 1UL << MBG_IRIG_BIT_PPS_ACTIVE ) 5267 #define MBG_IRIG_MSK_INV_CONFIG ( 1UL << MBG_IRIG_BIT_INV_CONFIG ) 5268 #define MBG_IRIG_MSK_MSG_DECODED ( 1UL << MBG_IRIG_BIT_MSG_DECODED ) 5269 #define MBG_IRIG_MSK_MSG_INCONSISTENT ( 1UL << MBG_IRIG_BIT_MSG_INCONSISTENT ) 5270 #define MBG_IRIG_MSK_LOOP_LOCKED ( 1UL << MBG_IRIG_BIT_LOOP_LOCKED ) 5271 #define MBG_IRIG_MSK_JITTER_TOO_LARGE ( 1UL << MBG_IRIG_BIT_JITTER_TOO_LARGE ) 5272 #define MBG_IRIG_MSK_INV_REF_OFFS ( 1UL << MBG_IRIG_BIT_INV_REF_OFFS ) 5274 #define MBG_SYS_MSK_INV_TIME ( 1UL << MBG_SYS_BIT_INV_TIME ) 5275 #define MBG_SYS_MSK_TIME_SET_VIA_API ( 1UL << MBG_SYS_BIT_TIME_SET_VIA_API ) 5276 #define MBG_SYS_MSK_INV_RTC ( 1UL << MBG_SYS_BIT_INV_RTC ) 5277 #define MBG_SYS_MSK_CPU_PLL_FAILED ( 1UL << MBG_SYS_BIT_CPU_PLL_FAILED ) 5299 #define _mbg_swab_mbg_ref_offs( _p ) _mbg_swab16( (_p) ) 5305 #define MBG_REF_OFFS_MAX ( ( 12L * 60 ) + 30 ) // [minutes] 5314 #define MBG_REF_OFFS_NOT_CFGD ( (MBG_REF_OFFS) 0x8000 ) 5329 #define _mbg_swab_mbg_opt_settings( _p ) \ 5332 _mbg_swab32( &(_p)->flags ); \ 5349 #define _mbg_swab_mbg_opt_info( _p ) \ 5352 _mbg_swab_mbg_opt_settings( &(_p)->settings ); \ 5353 _mbg_swab32( &(_p)->supp_flags ); \ 5394 #define _mbg_swab_irig_ctrl_bits( _p ) _mbg_swab32( _p ) 5406 #define _pcps_tfom_from_irig_ctrl_bits( _p ) \ 5407 ( ( ( *(_p) ) >> 24 ) & 0x0F ) 5411 #define RAW_IRIG_SIZE 16 5429 #define _mbg_swab_mbg_raw_irig_data( _p ) _nop_macro_fnc() 5440 #define _pcps_tfom_from_raw_irig_data( _p ) \ 5441 ( ( ( (_p)->data_bytes[9] >> 2 ) & 0x08 ) \ 5442 | ( ( (_p)->data_bytes[9] >> 4 ) & 0x04 ) \ 5443 | ( ( (_p)->data_bytes[9] >> 6 ) & 0x02 ) \ 5444 | ( ( (_p)->data_bytes[8] & 0x01 ) ) ) 5487 #define MBG_TIME_SCALE_STRS \ 5499 #define GPS_TAI_OFFSET 19 5512 #define _mbg_swab_mbg_time_scale_settings( _p ) \ 5527 #define _mbg_swab_mbg_time_scale_info( _p ) \ 5530 _mbg_swab_mbg_time_scale_settings( &(_p)->settings ); \ 5531 _mbg_swab_mbg_time_scale_settings( &(_p)->max_settings ); \ 5532 _mbg_swab32( &(_p)->supp_scales ); \ 5561 #define _mbg_swab_mbg_date( _p ) \ 5564 _mbg_swab16( &(_p)->year ); \ 5580 #define _mbg_swab_mbg_time( _p ) \ 5581 _nop_macro_fnc() // nothing to swap 5596 #define _mbg_swab_mbg_date_time( _p ) \ 5599 _mbg_swab_mbg_date( &(_p)->d ); \ 5600 _mbg_swab_mbg_time( &(_p)->t ); \ 5618 #define _mbg_swab_pout_time( _p ) \ 5621 _mbg_swab_mbg_date_time( &(_p)->on ); \ 5622 _mbg_swab_mbg_date_time( &(_p)->off ); \ 5632 #define N_POUT_TIMES 3 5655 #define DEFAULT_POUT_PULSE_SHIFT_MIN -500000000L 5656 #define DEFAULT_POUT_PULSE_SHIFT_MAX 499000000L 5664 #define _mbg_swab_pout_data( _p, _mode ) \ 5667 uint32_t mode_mask = 1UL << _mode; \ 5669 if ( mode_mask & POUT_MODES_DATA_TM ) \ 5673 for ( i = 0; i < N_POUT_TIMES; i++ ) \ 5674 _mbg_swab_pout_time( &(_p)->tm[i] ); \ 5678 if ( mode_mask & POUT_MODES_DATA_TM_0 ) \ 5679 _mbg_swab_pout_time( &(_p)->tm[0] ); \ 5681 if ( mode_mask & POUT_MODES_DATA_PULSE_SHIFT ) \ 5682 _mbg_swab32( &(_p)->pulse_shift ); \ 5713 #define _mbg_swab_pout_settings_on_get( _p ) \ 5716 _mbg_swab16( &(_p)->mode ); \ 5717 _mbg_swab16( &(_p)->mode_param ); \ 5718 _mbg_swab16( &(_p)->timeout ); \ 5719 _mbg_swab16( &(_p)->flags ); \ 5720 _mbg_swab_pout_data( &(_p)->pout_data, (_p)->mode ); \ 5726 #define _mbg_swab_pout_settings_on_set( _p ) \ 5729 _mbg_swab_pout_data( &(_p)->pout_data, (_p)->mode ); \ 5730 _mbg_swab16( &(_p)->mode ); \ 5731 _mbg_swab16( &(_p)->mode_param ); \ 5732 _mbg_swab16( &(_p)->timeout ); \ 5733 _mbg_swab16( &(_p)->flags ); \ 5749 #define MIN_TIME_SLOTS_PER_MINUTE 1 5750 #define MAX_TIME_SLOTS_PER_MINUTE 60 5751 #define TIME_SLOT_REGISTER_IN_SEC 60 5753 #define TIMEOUT_DIVIDED_BY 10 5754 #define TIME_SLOT_SWITCH_OFF_BUFFER_MIN 50 / TIMEOUT_DIVIDED_BY 5755 #define TIME_SLOT_SWITCH_OFF_BUFFER_MAX 500 / TIMEOUT_DIVIDED_BY 5756 #define TIME_SLOT_SWITCH_OFF_BUFFER_STD 500 / TIMEOUT_DIVIDED_BY 5757 #define TIME_SLOT_SWITCH_OFF_BUFFER_STEP_SIZE 50 / TIMEOUT_DIVIDED_BY 5759 #define _valid_time_slots_per_minute( _n ) \ 5760 ( ( (_n) >= MIN_TIME_SLOTS_PER_MINUTE ) && \ 5761 ( (_n) <= MAX_TIME_SLOTS_PER_MINUTE ) && \ 5762 ( ( 60 % (_n) ) == 0 ) \ 5769 #define MAX_POUT_PULSE_LEN 1000 5770 #define MAX_POUT_DCF_TIMOUT ( 48 * 60 ) 5893 #define MSK_POUT_IDLE ( 1UL << POUT_IDLE ) 5894 #define MSK_POUT_TIMER ( 1UL << POUT_TIMER ) 5895 #define MSK_POUT_SINGLE_SHOT ( 1UL << POUT_SINGLE_SHOT ) 5896 #define MSK_POUT_CYCLIC_PULSE ( 1UL << POUT_CYCLIC_PULSE ) 5897 #define MSK_POUT_PER_SEC ( 1UL << POUT_PER_SEC ) 5898 #define MSK_POUT_PER_MIN ( 1UL << POUT_PER_MIN ) 5899 #define MSK_POUT_PER_HOUR ( 1UL << POUT_PER_HOUR ) 5900 #define MSK_POUT_DCF77 ( 1UL << POUT_DCF77 ) 5901 #define MSK_POUT_POS_OK ( 1UL << POUT_POS_OK ) 5902 #define MSK_POUT_TIME_SYNC ( 1UL << POUT_TIME_SYNC ) 5903 #define MSK_POUT_ALL_SYNC ( 1UL << POUT_ALL_SYNC ) 5904 #define MSK_POUT_TIMECODE ( 1UL << POUT_TIMECODE ) 5905 #define MSK_POUT_TIMESTR ( 1UL << POUT_TIMESTR ) 5906 #define MSK_POUT_10MHZ ( 1UL << POUT_10MHZ ) 5907 #define MSK_POUT_DCF77_M59 ( 1UL << POUT_DCF77_M59 ) 5908 #define MSK_POUT_SYNTH ( 1UL << POUT_SYNTH ) 5909 #define MSK_POUT_TIME_SLOTS ( 1UL << POUT_TIME_SLOTS ) 5910 #define MSK_POUT_GPIO ( 1UL << POUT_GPIO ) 5911 #define MSK_POUT_PTTI_PPS ( 1UL << POUT_PTTI_PPS ) 5912 #define MSK_POUT_HAVEQUICK ( 1UL << POUT_HAVEQUICK ) 5930 #define POUT_MODES_DATA_TM \ 5939 #define POUT_MODES_DATA_TM_0 \ 5941 MSK_POUT_SINGLE_SHOT | \ 5942 MSK_POUT_CYCLIC_PULSE \ 5951 #define POUT_MODES_MODE_PARAM_AS_PULSE_LEN \ 5953 MSK_POUT_SINGLE_SHOT | \ 5954 MSK_POUT_CYCLIC_PULSE | \ 5955 MSK_POUT_PER_SEC | \ 5956 MSK_POUT_PER_MIN | \ 5964 #define POUT_MODES_MODE_PARAM_AS_COM_IDX \ 5975 #define POUT_MODES_MODE_PARAM_AS_SLOTS_PER_MIN \ 5977 MSK_POUT_TIME_SLOTS \ 5984 #define POUT_MODES_MODE_PARAM_AS_GPIO_IDX \ 5993 #define POUT_MODES_TIMEOUT \ 5996 MSK_POUT_DCF77_M59 \ 6003 #define POUT_MODES_SUPP_TIMEBASE_UTC \ 6006 MSK_POUT_DCF77_M59 \ 6015 #define POUT_MODES_DATA_PULSE_SHIFT \ 6017 MSK_POUT_PER_SEC | \ 6018 MSK_POUT_PER_MIN | \ 6036 #define POUT_MODES_SUPP_IF_SYNC_ONLY \ 6040 MSK_POUT_SINGLE_SHOT | \ 6041 MSK_POUT_CYCLIC_PULSE | \ 6042 MSK_POUT_PER_SEC | \ 6043 MSK_POUT_PER_MIN | \ 6044 MSK_POUT_PER_HOUR | \ 6046 MSK_POUT_TIMECODE | \ 6047 MSK_POUT_TIMESTR | \ 6049 MSK_POUT_DCF77_M59 | \ 6051 MSK_POUT_TIME_SLOTS | \ 6053 MSK_POUT_PTTI_PPS | \ 6054 MSK_POUT_HAVEQUICK \ 6072 #define ENG_POUT_NAME_IDLE "Idle" 6073 #define ENG_POUT_NAME_TIMER "Timer" 6074 #define ENG_POUT_NAME_SINGLE_SHOT "Single Shot" 6075 #define ENG_POUT_NAME_CYCLIC_PULSE "Cyclic Pulse" 6076 #define ENG_POUT_NAME_PER_SEC "Pulse Per Second" 6077 #define ENG_POUT_NAME_PER_MIN "Pulse Per Min" 6078 #define ENG_POUT_NAME_PER_HOUR "Pulse Per Hour" 6079 #define ENG_POUT_NAME_DCF77 "DCF77 Marks" 6080 #define ENG_POUT_NAME_POS_OK "Position OK" 6081 #define ENG_POUT_NAME_TIME_SYNC "Time Sync" 6082 #define ENG_POUT_NAME_ALL_SYNC "All Sync" 6083 #define ENG_POUT_NAME_TIMECODE "DCLS Time Code" 6084 #define ENG_POUT_NAME_TIMESTR "Serial Time String" 6085 #define ENG_POUT_NAME_10MHZ "10 MHz Frequency" 6086 #define ENG_POUT_NAME_DCF77_M59 "DCF77-like M59" 6087 #define ENG_POUT_NAME_SYNTH "Synthesizer Frequency" 6088 #define ENG_POUT_NAME_TIME_SLOTS "Time Slots per Minute" 6089 #define ENG_POUT_NAME_GPIO "GPIO Signal" 6090 #define ENG_POUT_PTTI_PPS "PTTI 1 PPS" 6091 #define ENG_POUT_HAVEQUICK "HaveQuick" 6102 #define DEFAULT_ENG_POUT_NAMES \ 6104 ENG_POUT_NAME_IDLE, \ 6105 ENG_POUT_NAME_TIMER, \ 6106 ENG_POUT_NAME_SINGLE_SHOT, \ 6107 ENG_POUT_NAME_CYCLIC_PULSE, \ 6108 ENG_POUT_NAME_PER_SEC, \ 6109 ENG_POUT_NAME_PER_MIN, \ 6110 ENG_POUT_NAME_PER_HOUR, \ 6111 ENG_POUT_NAME_DCF77, \ 6112 ENG_POUT_NAME_POS_OK, \ 6113 ENG_POUT_NAME_TIME_SYNC, \ 6114 ENG_POUT_NAME_ALL_SYNC, \ 6115 ENG_POUT_NAME_TIMECODE, \ 6116 ENG_POUT_NAME_TIMESTR, \ 6117 ENG_POUT_NAME_10MHZ, \ 6118 ENG_POUT_NAME_DCF77_M59, \ 6119 ENG_POUT_NAME_SYNTH, \ 6120 ENG_POUT_NAME_TIME_SLOTS, \ 6121 ENG_POUT_NAME_GPIO, \ 6122 ENG_POUT_PTTI_PPS, \ 6123 ENG_POUT_HAVEQUICK \ 6138 #define ENG_POUT_HINT_IDLE "Constant output level" 6139 #define ENG_POUT_HINT_TIMER "Switch based on configured on/off times" 6140 #define ENG_POUT_HINT_SINGLE_SHOT "Generate a single pulse of determined length" 6141 #define ENG_POUT_HINT_CYCLIC_PULSE "Generate cyclic pulses of determined length" 6142 #define ENG_POUT_HINT_PER_SEC "Generate pulse at beginning of new second" 6143 #define ENG_POUT_HINT_PER_MIN "Generate pulse at beginning of new minute" 6144 #define ENG_POUT_HINT_PER_HOUR "Generate pulse at beginning of new hour" 6145 #define ENG_POUT_HINT_DCF77 "DCF77 compatible time marks" 6146 #define ENG_POUT_HINT_POS_OK "Switch if receiver position has been verified" 6147 #define ENG_POUT_HINT_TIME_SYNC "Switch if time is synchronized" 6148 #define ENG_POUT_HINT_ALL_SYNC "Switch if full sync" 6149 #define ENG_POUT_HINT_TIMECODE "Duplicate IRIG time code signal" 6150 #define ENG_POUT_HINT_TIMESTR "Duplicate serial time string of specified port" 6151 #define ENG_POUT_HINT_10MHZ "10 MHz fixed output frequency" 6152 #define ENG_POUT_HINT_DCF77_M59 "DCF77 time marks with 500 ms pulse in 59th second" 6153 #define ENG_POUT_HINT_SYNTH "Frequency generated by programmable synthesizer" 6154 #define ENG_POUT_HINT_TIME_SLOTS "Output enabled during specified time slots per minute" 6155 #define ENG_POUT_HINT_GPIO "Duplicated signal of the specified GPIO input or output" 6156 #define ENG_POUT_HINT_PTTI_PPS "Generate 20us Pulse at beginning of the second" 6157 #define ENG_POUT_HINT_HAVEQUICK "Duplicated HaveQuick Signal" 6167 #define DEFAULT_ENG_POUT_HINTS \ 6169 ENG_POUT_HINT_IDLE, \ 6170 ENG_POUT_HINT_TIMER, \ 6171 ENG_POUT_HINT_SINGLE_SHOT, \ 6172 ENG_POUT_HINT_CYCLIC_PULSE, \ 6173 ENG_POUT_HINT_PER_SEC, \ 6174 ENG_POUT_HINT_PER_MIN, \ 6175 ENG_POUT_HINT_PER_HOUR, \ 6176 ENG_POUT_HINT_DCF77, \ 6177 ENG_POUT_HINT_POS_OK, \ 6178 ENG_POUT_HINT_TIME_SYNC, \ 6179 ENG_POUT_HINT_ALL_SYNC, \ 6180 ENG_POUT_HINT_TIMECODE, \ 6181 ENG_POUT_HINT_TIMESTR, \ 6182 ENG_POUT_HINT_10MHZ, \ 6183 ENG_POUT_HINT_DCF77_M59, \ 6184 ENG_POUT_HINT_SYNTH, \ 6185 ENG_POUT_HINT_TIME_SLOTS, \ 6186 ENG_POUT_HINT_GPIO, \ 6187 ENG_POUT_HINT_PTTI_PPS, \ 6188 ENG_POUT_HINT_HAVEQUICK \ 6256 #define _mbg_swab_pout_settings_idx_on_set( _p ) \ 6259 _mbg_swab16( &(_p)->idx ); \ 6260 _mbg_swab_pout_settings_on_set( &(_p)->pout_settings ); \ 6263 #define _mbg_swab_pout_settings_idx_on_get( _p ) \ 6266 _mbg_swab16( &(_p)->idx ); \ 6267 _mbg_swab_pout_settings_on_get( &(_p)->pout_settings ); \ 6292 #define _mbg_swab_pout_info_on_get( _p ) \ 6295 _mbg_swab_pout_settings_on_get( &(_p)->pout_settings ); \ 6296 _mbg_swab32( &(_p)->supp_modes ); \ 6297 _mbg_swab8( &(_p)->timestr_ports ); \ 6298 _mbg_swab8( &(_p)->pulse_shift_res ); \ 6299 _mbg_swab16( &(_p)->reserved_1 ); \ 6300 _mbg_swab32( &(_p)->flags ); \ 6304 #define MAX_POUT_TIMESTR_PORTS 8 6358 #define _mbg_swab_pout_info_idx_on_get( _p ) \ 6361 _mbg_swab16( &(_p)->idx ); \ 6362 _mbg_swab_pout_info_on_get( &(_p)->pout_info ); \ 6449 #define MAX_N_MULTI_REF_TYPES 32 6457 #define DEFAULT_MULTI_REF_NAMES \ 6462 "10 MHz + PPS in", \ 6468 "PPS plus string", \ 6469 "Var. freq. via GPIO", \ 6471 "DCF77 PZF Receiver", \ 6472 "Long Wave Receiver", \ 6474 "HaveQuick Input", \ 6476 "Synchronous Ethernet" \ 6486 #define DEFAULT_MULTI_REF_NAMES_SHORT \ 6519 #define HAS_MULTI_REF_GPS ( 1UL << MULTI_REF_GPS ) 6520 #define HAS_MULTI_REF_10MHZ ( 1UL << MULTI_REF_10MHZ ) 6521 #define HAS_MULTI_REF_PPS ( 1UL << MULTI_REF_PPS ) 6522 #define HAS_MULTI_REF_10MHZ_PPS ( 1UL << MULTI_REF_10MHZ_PPS ) 6523 #define HAS_MULTI_REF_IRIG ( 1UL << MULTI_REF_IRIG ) 6524 #define HAS_MULTI_REF_NTP ( 1UL << MULTI_REF_NTP ) 6525 #define HAS_MULTI_REF_PTP ( 1UL << MULTI_REF_PTP ) 6526 #define HAS_MULTI_REF_PTP_E1 ( 1UL << MULTI_REF_PTP_E1 ) 6528 #define HAS_MULTI_REF_FREQ ( 1UL << MULTI_REF_FREQ ) 6529 #define HAS_MULTI_REF_PPS_STRING ( 1UL << MULTI_REF_PPS_STRING ) 6530 #define HAS_MULTI_REF_GPIO ( 1UL << MULTI_REF_GPIO ) 6531 #define HAS_MULTI_REF_INTERNAL ( 1UL << MULTI_REF_INTERNAL ) 6532 #define HAS_MULTI_REF_PZF ( 1UL << MULTI_REF_PZF ) 6533 #define HAS_MULTI_REF_LWR ( 1UL << MULTI_REF_LWR ) 6534 #define HAS_MULTI_REF_GRC ( 1UL << MULTI_REF_GRC ) 6535 #define HAS_MULTI_REF_HAVEQUICK ( 1UL << MULTI_REF_HAVEQUICK ) 6537 #define HAS_MULTI_REF_EXT_OSC ( 1UL << MULTI_REF_EXT_OSC ) 6538 #define HAS_MULTI_REF_SYNCE ( 1UL << MULTI_REF_SYNCE ) 6562 #define N_MULTI_REF_PRIO 4 6708 #define _mbg_swab_xmulti_ref_id( _p ) \ 6711 _mbg_swab8( &(_p)->type ); \ 6712 _mbg_swab8( &(_p)->instance ); \ 6730 #define _mbg_swab_xmulti_ref_settings( _p ) \ 6733 _mbg_swab_xmulti_ref_id( &(_p)->id ); \ 6734 _mbg_swab16( &(_p)->flags ); \ 6735 _mbg_swab_nano_time( &(_p)->bias ); \ 6736 _mbg_swab_nano_time( &(_p)->precision ); \ 6737 _mbg_swab32( &(_p)->reserved ); \ 6756 #define _mbg_swab_xmulti_ref_settings_idx( _p ) \ 6759 _mbg_swab16( &(_p)->idx ); \ 6760 _mbg_swab_xmulti_ref_settings( &(_p)->settings ); \ 6824 #define _mbg_swab_xmulti_ref_info( _p ) \ 6827 _mbg_swab_xmulti_ref_settings( &(_p)->settings ); \ 6828 _mbg_swab32( &(_p)->supp_ref ); \ 6829 _mbg_swab8( &(_p)->n_supp_ref ); \ 6830 _mbg_swab8( &(_p)->n_prio ); \ 6831 _mbg_swab16( &(_p)->flags ); \ 6846 #define _mbg_swab_xmulti_ref_info_idx( _p ) \ 6849 _mbg_swab16( &(_p)->idx ); \ 6850 _mbg_swab_xmulti_ref_info( &(_p)->info ); \ 6869 #define _mbg_swab_xmulti_ref_status( _p ) \ 6872 _mbg_swab_xmulti_ref_id( &(_p)->id ); \ 6873 _mbg_swab16( &(_p)->status ); \ 6874 _mbg_swab_nano_time( &(_p)->offset ); \ 6875 _mbg_swab16( &(_p)->flags ); \ 6876 _mbg_swab8( &(_p)->ssm ); \ 6877 _mbg_swab8( &(_p)->soc ); \ 6892 #define _mbg_swab_xmulti_ref_status_idx( _p ) \ 6895 _mbg_swab16( &(_p)->idx ); \ 6896 _mbg_swab_xmulti_ref_status( &(_p)->status ); \ 6923 #define XMR_QL_TDEV_MASK ( 0x03 << 0 ) 6924 #define XMR_QL_MTIE_MASK ( 0x03 << 2 ) 6926 #define _GET_XMR_QL_TDEV( _x ) ( ( ( _x ) & XMR_QL_TDEV_MASK ) >> 0 ) 6927 #define _PUT_XMR_QL_TDEV( _x, _ql ) \ 6929 ( _x ) = ( ( _x ) & ~XMR_QL_TDEV_MASK ) | ( ( ( _ql ) << 0 ) & XMR_QL_TDEV_MASK ); \ 6933 #define _GET_XMR_QL_MTIE( _x ) ( ( ( _x ) & XMR_QL_MTIE_MASK ) >> 2 ) 6934 #define _PUT_XMR_QL_MTIE( _x, _ql ) \ 6936 ( _x ) = ( ( _x ) & ~XMR_QL_MTIE_MASK ) | ( ( ( _ql ) << 2 ) & XMR_QL_MTIE_MASK ); \ 6973 #define XMRS_MSK_NOT_SUPP ( 1UL << XMRS_BIT_NOT_SUPP ) 6974 #define XMRS_MSK_NO_CONN ( 1UL << XMRS_BIT_NO_CONN ) 6975 #define XMRS_MSK_NO_SIGNAL ( 1UL << XMRS_BIT_NO_SIGNAL ) 6976 #define XMRS_MSK_IS_MASTER ( 1UL << XMRS_BIT_IS_MASTER ) 6977 #define XMRS_MSK_IS_LOCKED ( 1UL << XMRS_BIT_IS_LOCKED ) 6978 #define XMRS_MSK_IS_ACCURATE ( 1UL << XMRS_BIT_IS_ACCURATE ) 6979 #define XMRS_MSK_NOT_SETTLED ( 1UL << XMRS_BIT_NOT_SETTLED ) 6980 #define XMRS_MSK_NOT_PHASE_LOCKED ( 1UL << XMRS_BIT_NOT_PHASE_LOCKED ) 6981 #define XMRS_MSK_NUM_SRC_EXC ( 1UL << XMRS_BIT_NUM_SRC_EXC ) 6982 #define XMRS_MSK_IS_EXTERNAL ( 1UL << XMRS_BIT_IS_EXTERNAL ) 6983 #define XMRS_MSK_LOW_JITTER ( 1UL << XMRS_BIT_LOW_JITTER ) 6984 #define XMRS_MSK_ITU_LIMIT_VIOLATED ( 1UL << XMRS_BIT_ITU_LIMIT_VIOLATED ) 6985 #define XMRS_MSK_TRS_LIMIT_VIOLATED ( 1UL << XMRS_BIT_TRS_LIMIT_VIOLATED ) 6996 #define MBG_XMRS_STATUS_STRS \ 6998 "Ref type not supported", \ 7005 "Phase not locked", \ 7006 "Number sources exceeds limit", \ 7009 "ITU Limit violated", \ 7010 "TRS Limit violated" \ 7019 #define XMULTI_REF_STATUS_INVALID \ 7021 { (uint8_t) MULTI_REF_NONE, 0 }, \ 7022 XMRS_MSK_NO_CONN | XMRS_MSK_NO_SIGNAL, \ 7064 #define _mbg_swab_xmulti_ref_instances( _p ) \ 7067 _mbg_swab32( &(_p)->flags ); \ 7068 _mbg_swab16( &(_p)->n_xmr_settings ); \ 7118 #define _mbg_swab_xmr_holdover_intv( _p ) \ 7126 #define XMR_PRIO_LVL_UNSPEC -1 7170 #define _mbg_swab_xmr_holdover_status( _p ) \ 7173 _mbg_swab8( &(_p)->mode ); \ 7174 _mbg_swab8( &(_p)->curr_prio ); \ 7175 _mbg_swab8( &(_p)->nxt_prio ); \ 7176 _mbg_swab8( &(_p)->remote_watchdog ); \ 7177 _mbg_swab32( &(_p)->time_offset_ns ); \ 7178 _mbg_swab_xmr_holdover_intv( &(_p)->elapsed ); \ 7179 _mbg_swab_xmr_holdover_intv( &(_p)->interval ); \ 7180 _mbg_swab32( &(_p)->flags ); \ 7207 #define XMR_HOLDOVER_STATUS_MODE_NAMES \ 7285 #define _mbg_swab_xmr_ext_src_info( _p ) \ 7288 _mbg_swab16( &(_p)->supp_flags ); \ 7289 _mbg_swab16( &(_p)->feat_flags ); \ 7290 _mbg_swab32( &(_p)->reserved_0 ); \ 7302 #define _mbg_swab_xmr_ext_src_info_idx( _p ) \ 7305 _mbg_swab16( &(_p)->idx ); \ 7306 _mbg_swab_xmr_ext_src_info( &(_p)->info ); \ 7337 #define _mbg_swab_xmr_stats( _p ) \ 7340 _mbg_swab32( &(_p)->timestamp ); \ 7341 _mbg_swab_nano_time( &(_p)->last_mue ); \ 7342 _mbg_swab_nano_time( &(_p)->last_sigma ); \ 7343 _mbg_swab_nano_time( &(_p)->last_max ); \ 7344 _mbg_swab_nano_time( &(_p)->last_min ); \ 7345 _mbg_swab_nano_time( &(_p)->reserved_0 ); \ 7346 _mbg_swab_nano_time( &(_p)->step_comp_val ); \ 7347 _mbg_swab_nano_time( &(_p)->auto_bias ); \ 7348 _mbg_swab32( &(_p)->reserved_1 ); \ 7349 _mbg_swab32( &(_p)->reserved_2 ); \ 7350 _mbg_swab32( &(_p)->flags ); \ 7389 #define DEFAULT_XMR_STATS_FLAG_NAMES \ 7392 "Step Compensated", \ 7410 #define _mbg_swab_xmr_stats_idx( _p ) \ 7413 _mbg_swab16( &(_p)->idx ); \ 7414 _mbg_swab_xmr_stats( &(_p)->stats ); \ 7419 #define MAX_XMR_METRICS 20 7435 #define _mbg_swab_xmr_metrics( _p ) \ 7440 _mbg_swab32( &(_p)->timestamp ); \ 7441 _mbg_swab32( &(_p)->flags ); \ 7442 _mbg_swab8( &(_p)->mtie_scale ); \ 7443 _mbg_swab8( &(_p)->tdev_scale ); \ 7444 _mbg_swab16( &(_p)->reserved_0 ); \ 7445 _mbg_swab32( &(_p)->reserved_1 ); \ 7446 _mbg_swab32( &(_p)->reserved_2 ); \ 7448 for ( i = 0; i < MAX_XMR_METRICS; i++ ) \ 7449 _mbg_swab32( &(_p)->mtie[i] ); \ 7451 for ( i = 0; i < MAX_XMR_METRICS; i++ ) \ 7452 _mbg_swab32( &(_p)->tdev[i] ); \ 7459 #define _fpu32_to_double_fac( _x ) ( 1.0 / ( 4294967296.0 * ( _x ) ) ) 7475 #define _mbg_swab_xmr_metrics_idx( _p ) \ 7478 _mbg_swab16( &(_p)->idx ); \ 7479 _mbg_swab_xmr_metrics( &(_p)->metrics ); \ 7531 #define ITU_LIMIT_SHORT_STRS \ 7616 #define _mbg_swab_mbg_gpio_cfg_limits( _p ) \ 7619 _mbg_swab32( &(_p)->num_io ); \ 7620 _mbg_swab32( &(_p)->reserved ); \ 7621 _mbg_swab32( &(_p)->flags ); \ 7679 #define DEFAULT_GPIO_TYPES_SHORT_STRS \ 7688 "Studio Clock Out", \ 7689 "Digital Audio Out" \ 7736 #define DEFAULT_GPIO_SIGNAL_SHAPE_NAMES \ 7738 "(unspec. shape)", \ 7757 #define _mbg_swab_mbg_gpio_freq( _p ) \ 7760 _mbg_swab32( &(_p)->hz ); \ 7761 _mbg_swab32( &(_p)->frac); \ 7784 #define _mbg_swab_mbg_gpio_freq_in_settings( _p ) \ 7787 _mbg_swab_mbg_gpio_freq( &(_p)->freq ); \ 7788 _mbg_swab32( &(_p)->csc_limit ); \ 7789 _mbg_swab32( &(_p)->shape ); \ 7790 _mbg_swab32( &(_p)->reserved ); \ 7791 _mbg_swab32( &(_p)->flags ); \ 7815 #define _mbg_swab_mbg_gpio_freq_in_supp( _p ) \ 7818 _mbg_swab32( &(_p)->freq_min ); \ 7819 _mbg_swab32( &(_p)->freq_max ); \ 7820 _mbg_swab32( &(_p)->csc_limit_max ); \ 7821 _mbg_swab32( &(_p)->supp_shapes ); \ 7822 _mbg_swab32( &(_p)->supp_limits ); \ 7823 _mbg_swab32( &(_p)->flags ); \ 7846 #define _mbg_swab_mbg_gpio_freq_out_settings( _p ) \ 7849 _mbg_swab_mbg_gpio_freq( &(_p)->freq ); \ 7850 _mbg_swab32( &(_p)->milli_phase ); \ 7851 _mbg_swab32( &(_p)->shape ); \ 7852 _mbg_swab32( &(_p)->reserved ); \ 7853 _mbg_swab32( &(_p)->flags ); \ 7878 #define _mbg_swab_mbg_gpio_freq_out_supp( _p ) \ 7881 _mbg_swab32( &(_p)->freq_min ); \ 7882 _mbg_swab32( &(_p)->freq_max ); \ 7883 _mbg_swab32( &(_p)->freq_resolution ); \ 7884 _mbg_swab32( &(_p)->milli_phase_max ); \ 7885 _mbg_swab32( &(_p)->supp_shapes ); \ 7886 _mbg_swab32( &(_p)->reserved ); \ 7887 _mbg_swab32( &(_p)->flags ); \ 7937 #define MBG_GPIO_FIXED_FREQ_STRS \ 7968 #define _mbg_swab_mbg_gpio_fixed_freq_out_settings( _p ) \ 7971 _mbg_swab32( &(_p)->freq_idx ); \ 7972 _mbg_swab32( &(_p)->shape ); \ 7973 _mbg_swab32( &(_p)->reserved ); \ 7974 _mbg_swab32( &(_p)->flags ); \ 7996 #define _mbg_swab_mbg_gpio_fixed_freq_out_supp( _p ) \ 7999 _mbg_swab32( &(_p)->supp_freq ); \ 8000 _mbg_swab32( &(_p)->supp_shapes ); \ 8001 _mbg_swab32( &(_p)->reserved ); \ 8002 _mbg_swab32( &(_p)->supp_flags ); \ 8046 #define MBG_GPIO_BITS_FORMAT_STRS \ 8140 #define _mbg_swab_mbg_gpio_bits_in_settings( _p, _recv ) \ 8143 uint32_t f = (_p)->format; \ 8146 _mbg_swab32( &(_p)->format ); \ 8147 _mbg_swab32( &(_p)->reserved ); \ 8148 _mbg_swab32( &(_p)->csc_limit ); \ 8151 case MBG_GPIO_BITS_E1_FRAMED : \ 8152 case MBG_GPIO_BITS_E1_TIMING : \ 8153 _mbg_swab8( &(_p)->quality.e1.ssm ); \ 8154 _mbg_swab8( &(_p)->quality.e1.sa_bits ); \ 8155 _mbg_swab16( &(_p)->quality.e1.reserved ); \ 8158 case MBG_GPIO_BITS_T1_FRAMED : \ 8159 case MBG_GPIO_BITS_T1_TIMING : \ 8160 _mbg_swab8( &(_p)->quality.t1.min_boc ); \ 8161 _mbg_swab8( &(_p)->quality.t1.reserved_0 ); \ 8162 _mbg_swab16( &(_p)->quality.t1.reserved_1 ); \ 8168 _mbg_swab32( &(_p)->err_msk ); \ 8169 _mbg_swab32( &(_p)->flags ); \ 8215 #define _mbg_swab_mbg_gpio_bits_in_supp( _p ) \ 8218 _mbg_swab32( &(_p)->supp_fmts ); \ 8219 _mbg_swab32( &(_p)->reserved ); \ 8246 #define _mbg_swab_mbg_gpio_bits_out_settings( _p ) \ 8249 _mbg_swab32( &(_p)->format ); \ 8250 _mbg_swab32( &(_p)->flags ); \ 8251 _mbg_swab8( &(_p)->sa_bits ); \ 8252 _mbg_swab8( &(_p)->ssm ); \ 8253 _mbg_swab8( &(_p)->boc ); \ 8254 _mbg_swab8( &(_p)->reserved_0 ); \ 8255 _mbg_swab32( &(_p)->reserved_1 ); \ 8256 _mbg_swab32( &(_p)->reserved_2 ); \ 8257 _mbg_swab32( &(_p)->reserved_3 ); \ 8297 #define MBG_GPIO_BITS_OUT_FLAG_STRS \ 8319 #define _mbg_swab_mbg_gpio_bits_out_supp( _p ) \ 8322 _mbg_swab32( &(_p)->supp_fmts ); \ 8323 _mbg_swab32( &(_p)->supp_flags ); \ 8374 #define MBG_GPIO_VIDEO_SD_FORMATS ( MSK_MBG_GPIO_VIDEO_FORMAT_OFF | MSK_MBG_GPIO_VIDEO_SD_FORMAT_NTSC | MSK_MBG_GPIO_VIDEO_SD_FORMAT_PAL | \ 8375 MSK_MBG_GPIO_VIDEO_SD_FORMAT_PAL_M ) 8381 #define MBG_GPIO_VIDEO_HD_FORMATS ( MSK_MBG_GPIO_VIDEO_FORMAT_OFF | MSK_MBG_GPIO_VIDEO_HD_FORMAT_720_P_50Hz | MSK_MBG_GPIO_VIDEO_HD_FORMAT_1080_I_50Hz | \ 8382 MSK_MBG_GPIO_VIDEO_HD_FORMAT_720_P_59_94Hz | MSK_MBG_GPIO_VIDEO_HD_FORMAT_1080_I_59_94Hz ) 8392 #define MBG_GPIO_VIDEO_OUT_STRS \ 8475 #define MBG_GPIO_VIDEO_EPOCH_STRS \ 8477 "TAI D1970-01-01 T00:00:00", \ 8478 "TAI D1958-01-01 T00:00:00", \ 8479 "UTC D1972-01-01 T00:00:00", \ 8480 "GPS D1980-01-06 T00:00:00" \ 8517 #define MBG_GPIO_VIDEO_TC_MODE_STRS \ 8549 #define _mbg_swab_mbg_gpio_video_out_settings( _p ) \ 8552 _mbg_swab32( &(_p)->format ); \ 8553 _mbg_swab32( &(_p)->flags ); \ 8554 _mbg_swab32( &(_p)->phase_offset ); \ 8555 _mbg_swab8( &(_p)->epoch ); \ 8556 _mbg_swab8( &(_p)->tc_mode ); \ 8557 _mbg_swab8( &(_p)->tc_line0 ); \ 8558 _mbg_swab8( &(_p)->tc_line1 ); \ 8559 _mbg_swab32( &(_p)->reserved0 ); \ 8560 _mbg_swab32( &(_p)->reserved1 ); \ 8588 #define _mbg_swab_mbg_gpio_video_out_supp( _p ) \ 8591 _mbg_swab32( &(_p)->supp_formats ); \ 8592 _mbg_swab32( &(_p)->supp_flags ); \ 8593 _mbg_swab32( &(_p)->supp_epochs ); \ 8594 _mbg_swab8( &(_p)->supp_tc_modes ); \ 8595 _mbg_swab8( &(_p)->reserved0 ); \ 8596 _mbg_swab16( &(_p)->reserved2 ); \ 8597 _mbg_swab16( &(_p)->reserved3 ); \ 8598 _mbg_swab32( &(_p)->reserved1 ); \ 8651 #define MBG_GPIO_VIDEO_SYNC_OUT_STRS \ 8670 #define MBG_GPIO_VIDEO_SYNC_SD_TYPES ( MSK_MBG_GPIO_VIDEO_SYNC_TYPE_OFF | MSK_MBG_GPIO_VIDEO_SYNC_TYPE_SD_HSYNC | MSK_MBG_GPIO_VIDEO_SYNC_TYPE_SD_VSYNC | \ 8671 MSK_MBG_GPIO_VIDEO_SYNC_TYPE_SD_FRAME | MSK_MBG_GPIO_VIDEO_SYNC_TYPE_SD_BLANK ) 8677 #define MBG_GPIO_VIDEO_SYNC_HD_TYPES ( MSK_MBG_GPIO_VIDEO_SYNC_TYPE_OFF | MSK_MBG_GPIO_VIDEO_SYNC_TYPE_HD_HSYNC | MSK_MBG_GPIO_VIDEO_SYNC_TYPE_HD_VSYNC | \ 8678 MSK_MBG_GPIO_VIDEO_SYNC_TYPE_HD_FRAME | MSK_MBG_GPIO_VIDEO_SYNC_TYPE_HD_BLANK ) 8701 #define _mbg_swab_mbg_gpio_video_sync_out_settings( _p ) \ 8704 _mbg_swab32( &(_p)->type ); \ 8705 _mbg_swab32( &(_p)->flags ); \ 8706 _mbg_swab32( &(_p)->reserved0 ); \ 8707 _mbg_swab32( &(_p)->reserved1 ); \ 8708 _mbg_swab32( &(_p)->reserved2 ); \ 8709 _mbg_swab32( &(_p)->reserved3 ); \ 8731 #define _mbg_swab_mbg_gpio_video_sync_out_supp( _p ) \ 8734 _mbg_swab32( &(_p)->supp_types ); \ 8735 _mbg_swab32( &(_p)->supp_flags ); \ 8736 _mbg_swab32( &(_p)->reserved0 ); \ 8737 _mbg_swab32( &(_p)->reserved1 ); \ 8781 #define MBG_GPIO_STUDIO_CLOCK_BASE_FREQ_STRS \ 8854 #define MBG_GPIO_STUDIO_CLOCK_SCALE_STRS \ 8918 #define _mbg_swab_mbg_gpio_studio_clock_out_settings( _p ) \ 8921 _mbg_swab32( &(_p)->base_freq ); \ 8922 _mbg_swab32( &(_p)->scale ); \ 8923 _mbg_swab32( &(_p)->flags ); \ 8924 _mbg_swab32( &(_p)->reserved0 ); \ 8925 _mbg_swab32( &(_p)->reserved1 ); \ 8930 #define MAX_SUPP_BASE_FREQUENCIES 8 8951 #define _mbg_swab_mbg_gpio_studio_clock_out_supp( _p ) \ 8955 _mbg_swab8( &(_p)->supp_base_freqs ); \ 8956 _mbg_swab8( &(_p)->reserved0 ); \ 8957 _mbg_swab16( &(_p)->reserved1 ); \ 8958 for( idx = 0; idx < MAX_SUPP_BASE_FREQUENCIES; idx++ ) \ 8959 _mbg_swab16( &(_p)->supp_scales[idx] ); \ 8960 _mbg_swab32( &(_p)->supp_flags ); \ 8961 _mbg_swab32( &(_p)->reserved2 ); \ 9004 #define MBG_GPIO_DIGITAL_AUDIO_TYPE_STRS \ 9055 #define _mbg_swab_mbg_gpio_digital_audio_out_settings( _p ) \ 9058 _mbg_swab32( &(_p)->type ); \ 9059 _mbg_swab32( &(_p)->flags ); \ 9060 _mbg_swab32( &(_p)->reserved0 ); \ 9061 _mbg_swab32( &(_p)->reserved1 ); \ 9062 _mbg_swab32( &(_p)->reserved2 ); \ 9085 #define _mbg_swab_mbg_gpio_digital_audio_out_supp( _p ) \ 9088 _mbg_swab32( &(_p)->supp_types ); \ 9089 _mbg_swab32( &(_p)->supp_flags ); \ 9090 _mbg_swab32( &(_p)->reserved0 ); \ 9091 _mbg_swab32( &(_p)->reserved1 ); \ 9092 _mbg_swab32( &(_p)->reserved2 ); \ 9153 #define _mbg_swab_mbg_gpio_settings( _p, _recv ) \ 9156 uint32_t t = (_p)->type; \ 9158 _mbg_swab32( &t ); \ 9159 _mbg_swab32( &(_p)->type ); \ 9160 _mbg_swab16( &(_p)->reserved_1 ); \ 9161 _mbg_swab8( &(_p)->reserved_2 ); \ 9162 _mbg_swab8( &(_p)->ass_io_idx ); \ 9163 _mbg_swab32( &(_p)->flags ); \ 9166 case MBG_GPIO_TYPE_FREQ_IN : _mbg_swab_mbg_gpio_freq_in_settings( &(_p)->u.freq_in ); break; \ 9167 case MBG_GPIO_TYPE_FREQ_OUT : _mbg_swab_mbg_gpio_freq_out_settings( &(_p)->u.freq_out ); break; \ 9168 case MBG_GPIO_TYPE_FIXED_FREQ_OUT : _mbg_swab_mbg_gpio_fixed_freq_out_settings( &(_p)->u.ff_out ); break; \ 9169 case MBG_GPIO_TYPE_BITS_IN : _mbg_swab_mbg_gpio_bits_in_settings( &(_p)->u.bits_in, (_recv) ); break; \ 9170 case MBG_GPIO_TYPE_BITS_OUT : _mbg_swab_mbg_gpio_bits_out_settings( &(_p)->u.bits_out ); break; \ 9171 case MBG_GPIO_TYPE_VIDEO_OUT : _mbg_swab_mbg_gpio_video_out_settings( &(_p)->u.video_out ); break; \ 9172 case MBG_GPIO_TYPE_VIDEO_SYNC_OUT : _mbg_swab_mbg_gpio_video_sync_out_settings( &(_p)->u.video_sync_out ); break; \ 9173 case MBG_GPIO_TYPE_STUDIO_CLOCK_OUT : _mbg_swab_mbg_gpio_studio_clock_out_settings( &(_p)->u.studio_clk_out ); break; \ 9174 case MBG_GPIO_TYPE_DIGITAL_AUDIO_OUT : _mbg_swab_mbg_gpio_digital_audio_out_settings( &(_p)->u.digital_audio_out ); break; \ 9191 #define _mbg_swab_mbg_gpio_settings_idx( _p, _recv ) \ 9194 _mbg_swab32( &(_p)->idx ); \ 9195 _mbg_swab_mbg_gpio_settings( &(_p)->settings, (_recv ) ); \ 9225 #define _mbg_swab_mbg_gpio_limits( _p, _recv ) \ 9228 uint32_t t = (_p)->type; \ 9230 _mbg_swab32( &t ); \ 9231 _mbg_swab32( &(_p)->type ); \ 9232 _mbg_swab32( &(_p)->reserved ); \ 9233 _mbg_swab32( &(_p)->supp_flags ); \ 9236 case MBG_GPIO_TYPE_FREQ_IN : _mbg_swab_mbg_gpio_freq_in_supp( &(_p)->u.freq_in ); break; \ 9237 case MBG_GPIO_TYPE_FREQ_OUT : _mbg_swab_mbg_gpio_freq_out_supp( &(_p)->u.freq_out ); break; \ 9238 case MBG_GPIO_TYPE_FIXED_FREQ_OUT : _mbg_swab_mbg_gpio_fixed_freq_out_supp( &(_p)->u.ff_out ); break; \ 9239 case MBG_GPIO_TYPE_BITS_IN : _mbg_swab_mbg_gpio_bits_in_supp( &(_p)->u.bits_in ); break; \ 9240 case MBG_GPIO_TYPE_BITS_OUT : _mbg_swab_mbg_gpio_bits_out_supp( &(_p)->u.bits_out ); break; \ 9241 case MBG_GPIO_TYPE_VIDEO_OUT : _mbg_swab_mbg_gpio_video_out_supp( &(_p)->u.video_out ); break; \ 9242 case MBG_GPIO_TYPE_VIDEO_SYNC_OUT : _mbg_swab_mbg_gpio_video_sync_out_supp( &(_p)->u.video_sync_out ); break; \ 9243 case MBG_GPIO_TYPE_STUDIO_CLOCK_OUT : _mbg_swab_mbg_gpio_studio_clock_out_supp( &(_p)->u.studio_clk_out ); break; \ 9244 case MBG_GPIO_TYPE_DIGITAL_AUDIO_OUT : _mbg_swab_mbg_gpio_digital_audio_out_supp( &(_p)->u.digital_audio_out ); break; \ 9262 #define _mbg_swab_mbg_gpio_info( _p, _recv ) \ 9265 _mbg_swab_mbg_gpio_settings( &(_p)->settings, (_recv) ); \ 9266 _mbg_swab_mbg_gpio_limits( &(_p)->limits, (_recv) ); \ 9280 #define _mbg_swab_mbg_gpio_info_idx( _p, _recv ) \ 9283 _mbg_swab32( &(_p)->idx ); \ 9284 _mbg_swab_mbg_gpio_info( &(_p)->info, (_recv) ); \ 9302 #define _mbg_swab_mbg_gpio_status( _p ) \ 9305 _mbg_swab8( &(_p)->port_state ); \ 9306 _mbg_swab8( &(_p)->reserved_0 ); \ 9307 _mbg_swab16( &(_p)->reserved_1 ); \ 9308 _mbg_swab32( &(_p)->reserved_2 ); \ 9309 _mbg_swab32( &(_p)->reserved_3 ); \ 9324 #define _mbg_swab_mbg_gpio_status_idx( _p ) \ 9327 _mbg_swab16( &(_p)->idx ); \ 9328 _mbg_swab_mbg_gpio_status( &(_p)->status ); \ 9355 #define DEFAULT_GPIO_PORT_STATE_NAMES \ 9359 "input signal available" \ 9413 #define HQ_FMT_NAME_STANAG4246_1 "STANAG4246 1" 9414 #define HQ_FMT_NAME_STANAG4246_2 "STANAG4246 2" 9415 #define HQ_FMT_NAME_STANAG4246_PTTI "STANAG4246 PTTI" 9416 #define HQ_FMT_NAME_STANAG4372_SATURN_1 "STANAG4372 SATURN 1" 9417 #define HQ_FMT_NAME_STANAG4372_SATURN_2 "STANAG4372 SATURN 2" 9418 #define HQ_FMT_NAME_STANAG4430_EXTD "STANAG4430 EXTD" 9420 #define HQ_FMT_SHRT_NAME_STANAG4246_1 "STG4246 1" 9421 #define HQ_FMT_SHRT_NAME_STANAG4246_2 "STG4246 2" 9422 #define HQ_FMT_SHRT_NAME_STANAG4246_PTTI "STG4246 PTTI" 9423 #define HQ_FMT_SHRT_NAME_STANAG4372_SATURN_1 "STG4372 SATURN1" 9424 #define HQ_FMT_SHRT_NAME_STANAG4372_SATURN_2 "STG4372 SATURN2" 9425 #define HQ_FMT_SHRT_NAME_STANAG4430_EXTD "STG4430 EXTD" 9431 #define DEFAULT_HQ_FMT_NAMES \ 9433 HQ_FMT_NAME_STANAG4246_1, \ 9434 HQ_FMT_NAME_STANAG4246_2, \ 9435 HQ_FMT_NAME_STANAG4246_PTTI, \ 9436 HQ_FMT_NAME_STANAG4372_SATURN_1, \ 9437 HQ_FMT_NAME_STANAG4372_SATURN_2, \ 9438 HQ_FMT_NAME_STANAG4430_EXTD \ 9441 #define DEFAULT_HQ_SHRT_FMT_NAMES \ 9443 HQ_FMT_SHRT_NAME_STANAG4246_1, \ 9444 HQ_FMT_SHRT_NAME_STANAG4246_2, \ 9445 HQ_FMT_SHRT_NAME_STANAG4246_PTTI, \ 9446 HQ_FMT_SHRT_NAME_STANAG4372_SATURN_1, \ 9447 HQ_FMT_SHRT_NAME_STANAG4372_SATURN_2, \ 9448 HQ_FMT_SHRT_NAME_STANAG4430_EXTD \ 9466 #define _mbg_swab_havequick_settings( _p ) \ 9469 _mbg_swab16( &(_p)->format ); \ 9470 _mbg_swab16( &(_p)->flags ); \ 9471 _mbg_swab32( &(_p)->offset ); \ 9472 _mbg_swab32( &(_p)->reserved_0 ); \ 9473 _mbg_swab32( &(_p)->reserved_1 ); \ 9488 #define _mbg_swab_havequick_info( _p ) \ 9491 _mbg_swab_havequick_settings( &(_p)->settings ); \ 9492 _mbg_swab32( &(_p)->supp_formats ); \ 9493 _mbg_swab16( &(_p)->supp_flags ); \ 9494 _mbg_swab16( &(_p)->reserved ); \ 9547 #define _mbg_swab_mbg_num_evt_log_entries( _p ) \ 9550 _mbg_swab32( &(_p)->used ); \ 9551 _mbg_swab32( &(_p)->max ); \ 9556 #define _mbg_swab_evt_code( _p ) _mbg_swab16( _p ) 9559 #define _mbg_swab_evt_info( _p ) _mbg_swab16( _p ) 9572 #define _mbg_swab_mbg_evt_log_entry( _p ) \ 9575 _mbg_swab32( &(_p)->time ); \ 9576 _mbg_swab_evt_code( &(_p)->code ); \ 9577 _mbg_swab_evt_info( &(_p)->info ); \ 9585 #define MBG_EVT_ID_BITS 13 9586 #define MBG_EVT_LVL_BITS 3 9588 #define MBG_EVT_ID_MASK ( (MBG_EVT_CODE) ( 1UL << MBG_EVT_ID_BITS ) - 1 ) 9589 #define MBG_EVT_LVL_MASK ( (MBG_EVT_CODE) ( 1UL << MBG_EVT_LVL_BITS ) - 1 ) 9594 #define _mbg_mk_evt_code( _id, _lvl ) \ 9595 ( (MBG_EVT_CODE) ( (MBG_EVT_CODE)(_id) | ( (MBG_EVT_CODE)(_lvl) << MBG_EVT_ID_BITS ) ) ) 9598 #define _mbg_get_evt_id( _code ) \ 9599 ( (_code) & MBG_EVT_ID_MASK ) 9602 #define _mbg_get_evt_lvl( _code ) \ 9603 ( ( (_code) >> MBG_EVT_ID_BITS ) & MBG_EVT_LVL_MASK ) 9646 #define ENG_EVT_ID_NAME_NONE "No event" 9647 #define ENG_EVT_ID_NAME_POW_UP_RES "Power Up Reset" 9648 #define ENG_EVT_ID_NAME_WDOG_RES "Watchdog Reset" 9649 #define ENG_EVT_ID_NAME_COLD_BOOT "Cold Boot" 9650 #define ENG_EVT_ID_NAME_WARM_BOOT "Warm Boot" 9651 #define ENG_EVT_ID_NAME_NORMAL_OP "Normal Operation" 9652 #define ENG_EVT_ID_NAME_ANT_DISCONN "Antenna Disconn." 9653 #define ENG_EVT_ID_NAME_ANT_SHORT "Ant. Short-Circ." 9654 #define ENG_EVT_ID_NAME_ANT_OK "Antenna OK" 9655 #define ENG_EVT_ID_NAME_LOW_SATS "Few Sats Only" 9656 #define ENG_EVT_ID_NAME_FW_INSTALLED "Firmware installed" 9657 #define ENG_EVT_ID_NAME_PTP_PORT_STATE_UNINITIALIZED "PTP state: UNINITIALIZED" 9658 #define ENG_EVT_ID_NAME_PTP_PORT_STATE_INITIALIZING "PTP state: INITIALIZING" 9659 #define ENG_EVT_ID_NAME_PTP_PORT_STATE_FAULTY "PTP state: FAULTY" 9660 #define ENG_EVT_ID_NAME_PTP_PORT_STATE_DISABLED "PTP state: DISABLED" 9661 #define ENG_EVT_ID_NAME_PTP_PORT_STATE_LISTENING "PTP state: LISTENING" 9662 #define ENG_EVT_ID_NAME_PTP_PORT_STATE_PRE_MASTER "PTP state: PRE_MASTER" 9663 #define ENG_EVT_ID_NAME_PTP_PORT_STATE_MASTER "PTP state: MASTER" 9664 #define ENG_EVT_ID_NAME_PTP_PORT_STATE_PASSIVE "PTP state: PASSIVE" 9665 #define ENG_EVT_ID_NAME_PTP_PORT_STATE_UNCALIBRATED "PTP state: UNCALIBRATED" 9666 #define ENG_EVT_ID_NAME_PTP_PORT_STATE_SLAVE "PTP state: SLAVE" 9667 #define ENG_EVT_ID_NAME_FW_ACTIVATED "Firmware activated" 9668 #define ENG_EVT_ID_NAME_FW_DELETED "Firmware deleted" 9669 #define ENG_EVT_ID_NAME_FW_ROLLBACK "Firmware rollback" 9670 #define ENG_EVT_ID_NAME_UFU_FLASHED "UFU flashed" 9671 #define ENG_EVT_ID_NAME_DATABASE_CONNECTED "Database(s) connected" 9674 #define MBG_EVT_ID_NAMES_ENG \ 9676 ENG_EVT_ID_NAME_NONE, \ 9677 ENG_EVT_ID_NAME_POW_UP_RES, \ 9678 ENG_EVT_ID_NAME_WDOG_RES, \ 9679 ENG_EVT_ID_NAME_COLD_BOOT, \ 9680 ENG_EVT_ID_NAME_WARM_BOOT, \ 9681 ENG_EVT_ID_NAME_NORMAL_OP, \ 9682 ENG_EVT_ID_NAME_ANT_DISCONN, \ 9683 ENG_EVT_ID_NAME_ANT_SHORT, \ 9684 ENG_EVT_ID_NAME_ANT_OK, \ 9685 ENG_EVT_ID_NAME_LOW_SATS, \ 9686 ENG_EVT_ID_NAME_FW_INSTALLED, \ 9687 ENG_EVT_ID_NAME_PTP_PORT_STATE_UNINITIALIZED, \ 9688 ENG_EVT_ID_NAME_PTP_PORT_STATE_INITIALIZING, \ 9689 ENG_EVT_ID_NAME_PTP_PORT_STATE_FAULTY, \ 9690 ENG_EVT_ID_NAME_PTP_PORT_STATE_DISABLED, \ 9691 ENG_EVT_ID_NAME_PTP_PORT_STATE_LISTENING, \ 9692 ENG_EVT_ID_NAME_PTP_PORT_STATE_PRE_MASTER, \ 9693 ENG_EVT_ID_NAME_PTP_PORT_STATE_MASTER, \ 9694 ENG_EVT_ID_NAME_PTP_PORT_STATE_PASSIVE, \ 9695 ENG_EVT_ID_NAME_PTP_PORT_STATE_UNCALIBRATED, \ 9696 ENG_EVT_ID_NAME_PTP_PORT_STATE_SLAVE, \ 9697 ENG_EVT_ID_NAME_FW_ACTIVATED, \ 9698 ENG_EVT_ID_NAME_FW_DELETED, \ 9699 ENG_EVT_ID_NAME_FW_ROLLBACK, \ 9700 ENG_EVT_ID_NAME_UFU_FLASHED, \ 9701 ENG_EVT_ID_NAME_DATABASE_CONNECTED \ 9725 #define ENG_EVT_LVL_NAME_NONE "None" 9726 #define ENG_EVT_LVL_NAME_DEBUG "Debug" 9727 #define ENG_EVT_LVL_NAME_INFO "Info" 9728 #define ENG_EVT_LVL_NAME_WARN "Warn" 9729 #define ENG_EVT_LVL_NAME_ERR "Err" 9730 #define ENG_EVT_LVL_NAME_CRIT "Crit." 9733 #define MBG_EVT_LVL_NAMES_ENG \ 9735 ENG_EVT_LVL_NAME_NONE, \ 9736 ENG_EVT_LVL_NAME_DEBUG, \ 9737 ENG_EVT_LVL_NAME_INFO, \ 9738 ENG_EVT_LVL_NAME_WARN, \ 9739 ENG_EVT_LVL_NAME_ERR, \ 9740 ENG_EVT_LVL_NAME_CRIT \ 9752 #define MBG_EVT_NONE _mbg_mk_evt_code( MBG_EVT_ID_NONE, MBG_EVT_LVL_NONE ) 9753 #define MBG_EVT_POW_UP_RES _mbg_mk_evt_code( MBG_EVT_ID_POW_UP_RES, MBG_EVT_LVL_WARN ) 9754 #define MBG_EVT_WDOG_RES _mbg_mk_evt_code( MBG_EVT_ID_WDOG_RES, MBG_EVT_LVL_CRIT ) 9755 #define MBG_EVT_COLD_BOOT _mbg_mk_evt_code( MBG_EVT_ID_COLD_BOOT, MBG_EVT_LVL_ERR ) 9756 #define MBG_EVT_WARM_BOOT _mbg_mk_evt_code( MBG_EVT_ID_WARM_BOOT, MBG_EVT_LVL_ERR ) 9757 #define MBG_EVT_NORMAL_OP _mbg_mk_evt_code( MBG_EVT_ID_NORMAL_OP, MBG_EVT_LVL_INFO ) 9758 #define MBG_EVT_ANT_DISCONN _mbg_mk_evt_code( MBG_EVT_ID_ANT_DISCONN, MBG_EVT_LVL_CRIT ) 9759 #define MBG_EVT_ANT_SHORT _mbg_mk_evt_code( MBG_EVT_ID_ANT_SHORT, MBG_EVT_LVL_CRIT ) 9760 #define MBG_EVT_ANT_OK _mbg_mk_evt_code( MBG_EVT_ID_ANT_OK, MBG_EVT_LVL_INFO ) 9761 #define MBG_EVT_LOW_SATS _mbg_mk_evt_code( MBG_EVT_ID_LOW_SATS, MBG_EVT_LVL_WARN ) 9762 #define MBG_EVT_FW_INSTALLED _mbg_mk_evt_code( MBG_EVT_ID_FW_INSTALLED, MBG_EVT_LVL_INFO ) 9763 #define MBG_EVT_PTP_PORT_STATE_UNINITIALIZED _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_UNINITIALIZED, MBG_EVT_LVL_WARN ) 9764 #define MBG_EVT_PTP_PORT_STATE_INITIALIZING _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_INITIALIZING, MBG_EVT_LVL_INFO ) 9765 #define MBG_EVT_PTP_PORT_STATE_FAULTY _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_FAULTY, MBG_EVT_LVL_ERR ) 9766 #define MBG_EVT_PTP_PORT_STATE_DISABLED _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_DISABLED, MBG_EVT_LVL_INFO ) 9767 #define MBG_EVT_PTP_PORT_STATE_LISTENING _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_LISTENING, MBG_EVT_LVL_INFO ) 9768 #define MBG_EVT_PTP_PORT_STATE_PRE_MASTER _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_PRE_MASTER, MBG_EVT_LVL_INFO ) 9769 #define MBG_EVT_PTP_PORT_STATE_MASTER _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_MASTER, MBG_EVT_LVL_INFO ) 9770 #define MBG_EVT_PTP_PORT_STATE_PASSIVE _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_PASSIVE, MBG_EVT_LVL_INFO ) 9771 #define MBG_EVT_PTP_PORT_STATE_UNCALIBRATED _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_UNCALIBRATED, MBG_EVT_LVL_INFO ) 9772 #define MBG_EVT_PTP_PORT_STATE_SLAVE _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_SLAVE, MBG_EVT_LVL_INFO ) 9800 #define _mbg_swab_mbg_ims_state( _p ) \ 9803 _mbg_swab16( &(_p)->num_sensors ); \ 9804 _mbg_swab32( &(_p)->reserved ); \ 9805 _mbg_swab32( &(_p)->flags ); \ 9848 #define _mbg_swab_mbg_ims_sensor_state( _p ) \ 9851 _mbg_swab16( &(_p)->type ); \ 9852 _mbg_swab16( &(_p)->idx ); \ 9853 _mbg_swab32( &(_p)->val ); \ 9854 _mbg_swab16( &(_p)->exp ); \ 9855 _mbg_swab16( &(_p)->reserved ); \ 9856 _mbg_swab32( &(_p)->flags ); \ 9870 #define _mbg_swab_mbg_ims_sensor_state_idx( _p ) \ 9873 _mbg_swab32( &(_p)->idx ); \ 9874 _mbg_swab_mbg_ims_sensor_state( &(_p)->state ); \ 9942 #define _mbg_swab_mbg_dac_specs( _p ) \ 9945 _mbg_swab32( &(_p)->dac_val_min ); \ 9946 _mbg_swab32( &(_p)->dac_val_max ); \ 9947 _mbg_swab32( &(_p)->u_min ); \ 9948 _mbg_swab32( &(_p)->u_max ); \ 9949 _mbg_swab32( &(_p)->reserved_0 ); \ 9950 _mbg_swab32( &(_p)->reserved_1 ); \ 9972 #define _mbg_swab_mbg_ims_fdm_output_state( _p ) \ 9975 _mbg_swab32( &(_p)->dac_val ); \ 9976 _mbg_swab32( &(_p)->mode ); \ 9977 _mbg_swab_mbg_dac_specs( &(_p)->dac_specs ); \ 9978 _mbg_swab32( &(_p)->reserved_0 ); \ 9979 _mbg_swab32( &(_p)->reserved_1 ); \ 9994 #define _mbg_swab_mbg_ims_fdm_output_state_idx( _p ) \ 9997 _mbg_swab32( &(_p)->idx ); \ 9998 _mbg_swab_mbg_ims_fdm_output_state( &(_p)->state ); \ 10015 #define _mbg_swab_mbg_ims_fdm_output_settings( _p ) \ 10018 _mbg_swab32( &(_p)->mode ); \ 10019 _mbg_swab32( &(_p)->reserved ); \ 10033 #define _mbg_swab_mbg_ims_fdm_output_settings_idx( _p ) \ 10036 _mbg_swab32( &(_p)->idx ); \ 10037 _mbg_swab_mbg_ims_fdm_output_settings( &(_p)->settings ); \ 10053 #define _mbg_swab_mbg_ims_fdm_output_info( _p ) \ 10056 _mbg_swab_mbg_ims_fdm_output_settings( &(_p)->settings ); \ 10057 _mbg_swab32( &(_p)->supp_modes ); \ 10058 _mbg_swab_mbg_dac_specs( &(_p)->dac_specs ); \ 10073 #define _mbg_swab_mbg_ims_fdm_output_info_idx( _p ) \ 10076 _mbg_swab32( &(_p)->idx ); \ 10077 _mbg_swab_mbg_ims_fdm_output_info( &(_p)->info ); \ 10132 #define _mbg_swab_mbg_ims_fdm_limits( _p ) \ 10135 _mbg_swab8( &(_p)->n_outputs ); \ 10136 _mbg_swab8( &(_p)->reserved_0 ); \ 10137 _mbg_swab16( &(_p)->reserved_1 ); \ 10139 _mbg_swab32( &(_p)->fd_neg_limit ); \ 10140 _mbg_swab32( &(_p)->fd_pos_limit ); \ 10141 _mbg_swab32( &(_p)->fd_scale ); \ 10143 _mbg_swab32( &(_p)->td_neg_limit ); \ 10144 _mbg_swab32( &(_p)->td_pos_limit ); \ 10145 _mbg_swab32( &(_p)->td_scale ); \ 10147 _mbg_swab32( &(_p)->reserved_2 ); \ 10172 #define _mbg_swab_mbg_ims_fdm_state( _p ) \ 10175 _mbg_swab_mbg_gpio_freq( &(_p)->freq ); \ 10176 _mbg_swab_nano_time_64( &(_p)->t_ref ); \ 10177 _mbg_swab_nano_time_64( &(_p)->t_plt ); \ 10178 _mbg_swab_nano_time_64( &(_p)->t_sync ); \ 10179 _mbg_swab32( &(_p)->line_freq ); \ 10180 _mbg_swab32( &(_p)->flags ); \ 10181 _mbg_swab32( &(_p)->reserved ); \ 10220 #define MBG_IMS_FDM_LINE_FREQ_STRS \ 10275 #define _mbg_swab_mbg_ims_fdm_settings( _p ) \ 10278 _mbg_swab32( &(_p)->fd_neg_limit ); \ 10279 _mbg_swab32( &(_p)->fd_pos_limit ); \ 10280 _mbg_swab32( &(_p)->td_neg_limit ); \ 10281 _mbg_swab32( &(_p)->td_pos_limit ); \ 10282 _mbg_swab32( &(_p)->line_freq ); \ 10283 _mbg_swab32( &(_p)->reserved ); \ 10325 #define _mbg_swab_mbg_ims_fdm_info( _p ) \ 10328 _mbg_swab_mbg_ims_fdm_settings( &(_p)->settings ); \ 10329 _mbg_swab32( &(_p)->supp_line_freqs ); \ 10330 _mbg_swab32( &(_p)->reserved ); \ 10331 _mbg_swab32( &(_p)->flags ); \ 10353 #define _mbg_swab_gen_io_info_type( _p ) \ 10371 #define _mbg_swab_gen_io_info( _p ) \ 10374 _mbg_swab_gen_io_info_type( &(_p)->type ); \ 10375 _mbg_swab16( &(_p)->num ); \ 10419 #define IGNORE_LOCK_FOR_ALL_PORTS 0x01 10421 #define _ignore_lock_for_all_ports() ( IGNORE_LOCK_FOR_ALL_PORTS ) 10423 #define _ignore_lock_for_port( _n ) ( 0x02 << (_n) ) 10426 #define _is_ignore_lock_all_ports( _il ) ( (_il) & IGNORE_LOCK_FOR_ALL_PORTS ) 10429 #define _is_ignore_lock_for_port( _il, _n ) \ 10430 ( (_il) & ( _ignore_lock_for_port(_n) | IGNORE_LOCK_FOR_ALL_PORTS ) ) 10456 #define _mbg_swab_scu_stat_info( _p ) \ 10459 _mbg_swab32( &(_p)->hw_id ); \ 10460 _mbg_swab32( &(_p)->fw_id ); \ 10461 _mbg_swab16( &(_p)->flags ); \ 10462 _mbg_swab8( &(_p)->clk0_info ); \ 10463 _mbg_swab8( &(_p)->clk1_info ); \ 10464 _mbg_swab16( &(_p)->epld_status ); \ 10465 _mbg_swab16( &(_p)->epld_control ); \ 10478 #define _mbg_swab_scu_stat_settings( _p ) \ 10481 _mbg_swab16( &(_p)->epld_control_mask ); \ 10482 _mbg_swab16( &(_p)->epld_control_value ); \ 10483 _mbg_swab32( &(_p)->flags ); \ 10556 #define REMOTE 0x10 10583 #define _mbg_swab_dac_val( _p ) \ 10601 #define _mbg_swab_stat_info( _p ) \ 10604 _mbg_swab16( &(_p)->mode ); \ 10605 _mbg_swab16( &(_p)->good_svs ); \ 10606 _mbg_swab16( &(_p)->svs_in_view ); \ 10607 _mbg_swab_dac_val( &(_p)->dac_val ); \ 10608 _mbg_swab_dac_val( &(_p)->dac_cal ); \ 10612 #define OSC_DAC_RANGE 4096UL 10613 #define OSC_DAC_BIAS ( OSC_DAC_RANGE / 2 ) 10658 #define GNSS_TYPE_STRS \ 10670 #define N_GNSS_MODE_PRIO 8 10685 #define _mbg_swab_mbg_gnss_mode_settings( _p ) \ 10688 _mbg_swab32( &(_p)->gnss_set ); \ 10689 _mbg_swab32( &(_p)->flags ); \ 10703 #define _mbg_swab_mbg_gnss_mode_info( _p ) \ 10706 _mbg_swab_mbg_gnss_mode_settings( &(_p)->settings ); \ 10707 _mbg_swab32( &(_p)->supp_gnss_types ); \ 10708 _mbg_swab16( &(_p)->flags ); \ 10709 _mbg_swab16( &(_p)->n_sv_status ); \ 10744 #define MAX_USED_SATS 32 10759 #define _mbg_swab_gnss_sat_info( _p ) \ 10762 _mbg_swab16( &(_p)->good_svs ); \ 10763 _mbg_swab16( &(_p)->svs_in_view ); \ 10786 #define _mbg_swab_gnss_sat_info_idx( _p ) \ 10789 _mbg_swab16( &(_p)->idx ); \ 10790 _mbg_swab_gnss_sat_info( &(_p)->gnss_sat_info ); \ 10823 #define _mbg_swab_gnss_sv_status( _p ) \ 10826 _mbg_swab8( &(_p)->gnss_type ); \ 10827 _mbg_swab8( &(_p)->svno ); \ 10828 _mbg_swab8( &(_p)->cn_ratio ); \ 10829 _mbg_swab8( &(_p)->elev ); \ 10830 _mbg_swab16( &(_p)->azim ); \ 10831 _mbg_swab16( &(_p)->pr_residual ); \ 10832 _mbg_swab32( &(_p)->stat_flags ); \ 10844 #define _gnss_sv_stat_quality_ind( __stat_flags ) \ 10846 ( (uint8_t) ( (__stat_flags) & 0x00000007UL ) ) 10849 #define _gnss_sv_stat_sv_used( __stat_flags ) \ 10850 ( ( (__stat_flags) & 0x00000008UL ) != 0 ) 10853 #define _gnss_sv_stat_health_code( __stat_flags ) \ 10854 ( (uint8_t) ( ( (__stat_flags) & 0x00000030UL ) >> 4 ) ) 10857 #define _gnss_sv_stat_diff_corr( __stat_flags ) \ 10858 ( ( (__stat_flags) & 0x00000040UL ) != 0 ) 10861 #define _gnss_sv_stat_smoothed( __stat_flags ) \ 10862 ( ( (__stat_flags) & 0x00000080UL ) != 0 ) 10865 #define _gnss_sv_stat_orbit_src( __stat_flags ) \ 10866 ( (uint8_t) ( ( (__stat_flags) & 0x00000700UL ) >> 8 ) ) 10869 #define _gnss_sv_stat_eph_avail( __stat_flags ) \ 10870 ( ( (__stat_flags) & 0x00000800UL ) != 0 ) 10873 #define _gnss_sv_stat_alm_avail( __stat_flags ) \ 10874 ( ( (__stat_flags) & 0x00001000UL ) != 0 ) 10877 #define _gnss_sv_stat_ano_avail( __stat_flags ) \ 10878 ( ( (__stat_flags) & 0x00002000UL ) != 0 ) 10881 #define _gnss_sv_stat_aop_avail( __stat_flags ) \ 10882 ( ( (__stat_flags) & 0x00004000UL ) != 0 ) 10887 #define _gnss_sv_stat_sbas_corr_used( __stat_flags ) \ 10888 ( ( (__stat_flags) & 0x00010000UL ) != 0 ) 10891 #define _gnss_sv_stat_rtcm_corr_used( __stat_flags ) \ 10892 ( ( (__stat_flags) & 0x00020000UL ) != 0 ) 10897 #define _gnss_sv_stat_pr_corr_used( __stat_flags ) \ 10898 ( ( (__stat_flags) & 0x00100000UL ) != 0 ) 10901 #define _gnss_sv_stat_cr_corr_used( __stat_flags ) \ 10902 ( ( (__stat_flags) & 0x00200000UL ) != 0 ) 10905 #define _gnss_sv_stat_do_corr_used( __stat_flags ) \ 10906 ( ( (__stat_flags) & 0x00400000UL ) != 0 ) 10975 #define _mbg_swab_gnss_sv_status_idx( _p ) \ 10978 _mbg_swab32( &(_p)->idx ); \ 10979 _mbg_swab_gnss_sv_status( &(_p)->gnss_sv_status ); \ 10987 #ifndef _IDENT_DEFINED 10996 #define _IDENT_DEFINED 10999 #define _mbg_swab_ident( _p ) \ 11003 for ( i = 0; i < 4; i++ ) \ 11004 _mbg_swab32( &(_p)->lw[i] ); \ 11014 #define _mbg_swab_ant_cable_len( _p ) _mbg_swab16( _p ) 11037 #define _mbg_swab_mbg_mac_addr( _p ) \ 11047 #define _mbg_swab_ip4_addr( _p ) \ 11053 #define IP6_ADDR_BITS 128 11056 #define IP6_ADDR_BYTES ( IP6_ADDR_BITS / 8 ) // == 16 11067 #define _mbg_swab_ip6_addr( _p ) _nop_macro_fnc() 11085 #define MAX_IP6_ADDR_STR_LEN 43 11088 #define IP6_ADDR_STR_SIZE ( MAX_IP6_ADDR_STR_LEN + 1 ) 11125 #define IPV6_MULTICAST_SCOPE_NAME_TABLE_ENTRIES \ 11127 { IPV6_MULTICAST_SCOPE_INTF_LOCAL, "FF01 - Interface-Local Scope" }, \ 11128 { IPV6_MULTICAST_SCOPE_LINK_LOCAL, "FF02 - Link-Local Scope" }, \ 11129 { IPV6_MULTICAST_SCOPE_REALM_LOCAL, "FF03 - Realm-Local Scope" }, \ 11130 { IPV6_MULTICAST_SCOPE_ADMIN_LOCAL, "FF04 - Admin-Local Scope" }, \ 11131 { IPV6_MULTICAST_SCOPE_SITE_LOCAL, "FF05 - Site-Local Scope" }, \ 11132 { IPV6_MULTICAST_SCOPE_ORGA_LOCAL, "FF08 - Organization-Local Scope" }, \ 11133 { IPV6_MULTICAST_SCOPE_GLOBAL_SCOPE, "FF0E - Global Scope" }, \ 11146 #define MBG_MAX_HOSTNAME_LEN 256 11154 #define _mbg_swab_mbg_host_name( _p ) _nop_macro_fnc() 11168 #define MBG_IFNAMSIZ 16 11195 #define _mbg_swab_mbg_vlan_cfg( _p ) _mbg_swab16( _p ) 11197 #define VLAN_ID_BITS 12 11198 #define N_VLAN_ID ( 1 << VLAN_ID_BITS ) 11199 #define MIN_VLAN_ID 0 11200 #define MAX_VLAN_ID ( N_VLAN_ID - 1 ) 11203 #define VLAN_ID_SHIFT 0 11204 #define VLAN_ID_MSK ( ( 1 << VLAN_ID_BITS ) - 1 ) 11207 #define VLAN_PRIORITY_BITS 3 11208 #define N_VLAN_PRIORITY ( 1 << VLAN_PRIORITY_BITS ) 11209 #define MIN_VLAN_PRIORITY 0 11210 #define MAX_VLAN_PRIORITY ( N_VLAN_PRIORITY - 1 ) 11213 #define VLAN_PRIORITY_SHIFT ( ( 8 * sizeof( MBG_VLAN_CFG ) ) - VLAN_PRIORITY_BITS ) 11214 #define VLAN_PRIORITY_MSK ( ( 1 << VLAN_PRIORITY_BITS ) - 1 ) 11219 #define _decode_vlan_id( _cfg ) ( ( (_cfg) >> VLAN_ID_SHIFT ) & VLAN_ID_MSK ) 11220 #define _decode_vlan_priority( _cfg ) ( ( (_cfg) >> VLAN_PRIORITY_SHIFT ) & VLAN_PRIORITY_MSK ) 11221 #define _encode_vlan_cfg( _id, _prty ) ( ( (_id) << VLAN_ID_SHIFT ) | ( (_prty) << VLAN_PRIORITY_SHIFT ) ) 11250 #define _mbg_swab_ip4_settings( _p ) \ 11253 _mbg_swab_ip4_addr( &(_p)->ip_addr ); \ 11254 _mbg_swab_ip4_addr( &(_p)->netmask ); \ 11255 _mbg_swab_ip4_addr( &(_p)->broad_addr ); \ 11256 _mbg_swab_ip4_addr( &(_p)->gateway ); \ 11257 _mbg_swab16( &(_p)->flags ); \ 11258 _mbg_swab_mbg_vlan_cfg( &(_p)->vlan_cfg ); \ 11287 #define _mbg_swab_lan_if_info( _p ) \ 11290 _mbg_swab16( &(_p)->type ); \ 11291 _mbg_swab16( &(_p)->ver_code ); \ 11292 _mbg_swab32( &(_p)->rsvd_0 ); \ 11293 _mbg_swab16( &(_p)->flags ); \ 11294 _mbg_swab16( &(_p)->rsvd_1 ); \ 11370 #define MBG_IP_ADDR_TYPE_STR_ENG_UNKNOWN "unknown" 11371 #define MBG_IP_ADDR_TYPE_STR_ENG_IP4 "IPv4" 11372 #define MBG_IP_ADDR_TYPE_STR_ENG_IP6 "IPv6" 11374 #define MBG_IP_ADDR_TYPE_NAMES_ENG \ 11376 MBG_IP_ADDR_TYPE_STR_ENG_UNKNOWN, \ 11377 MBG_IP_ADDR_TYPE_STR_ENG_IP4, \ 11378 MBG_IP_ADDR_TYPE_STR_ENG_IP6 \ 11457 #define MBG_NET_INTF_LINK_SPEED_MODE_MASK_UNKNOWN ( 1UL << MBG_NET_INTF_LINK_SPEED_MODE_UNKNOWN ) 11458 #define MBG_NET_INTF_LINK_SPEED_MODE_MASK_10_T_HALF ( 1UL << MBG_NET_INTF_LINK_SPEED_MODE_10_T_HALF ) 11459 #define MBG_NET_INTF_LINK_SPEED_MODE_MASK_10_T_FULL ( 1UL << MBG_NET_INTF_LINK_SPEED_MODE_10_T_FULL ) 11460 #define MBG_NET_INTF_LINK_SPEED_MODE_MASK_100_T_HALF ( 1UL << MBG_NET_INTF_LINK_SPEED_MODE_100_T_HALF ) 11461 #define MBG_NET_INTF_LINK_SPEED_MODE_MASK_100_T_FULL ( 1UL << MBG_NET_INTF_LINK_SPEED_MODE_100_T_FULL ) 11462 #define MBG_NET_INTF_LINK_SPEED_MODE_MASK_1000_T_HALF ( 1UL << MBG_NET_INTF_LINK_SPEED_MODE_1000_T_HALF ) 11463 #define MBG_NET_INTF_LINK_SPEED_MODE_MASK_1000_T_FULL ( 1UL << MBG_NET_INTF_LINK_SPEED_MODE_1000_T_FULL ) 11464 #define MBG_NET_INTF_LINK_SPEED_MODE_MASK_1000_KX_FULL ( 1UL << MBG_NET_INTF_LINK_SPEED_MODE_1000_KX_FULL ) 11466 #define MBG_NET_INTF_LINK_SPEED_MODE_MASK_2500_X_FULL ( 1UL << MBG_NET_INTF_LINK_SPEED_MODE_2500_X_FULL ) 11467 #define MBG_NET_INTF_LINK_SPEED_MODE_MASK_10000_T_FULL ( 1UL << MBG_NET_INTF_LINK_SPEED_MODE_10000_T_FULL ) 11468 #define MBG_NET_INTF_LINK_SPEED_MODE_MASK_10000_KX4_FULL ( 1UL << MBG_NET_INTF_LINK_SPEED_MODE_10000_KX4_FULL ) 11469 #define MBG_NET_INTF_LINK_SPEED_MODE_MASK_10000_KR_FULL ( 1UL << MBG_NET_INTF_LINK_SPEED_MODE_10000_KR_FULL ) 11470 #define MBG_NET_INTF_LINK_SPEED_MODE_MASK_10000_R_FEC ( 1UL << MBG_NET_INTF_LINK_SPEED_MODE_10000_R_FEC ) 11471 #define MBG_NET_INTF_LINK_SPEED_MODE_MASK_20000_MLD2_FULL ( 1UL << MBG_NET_INTF_LINK_SPEED_MODE_20000_MLD2_FULL ) 11472 #define MBG_NET_INTF_LINK_SPEED_MODE_MASK_20000_KR2_FULL ( 1UL << MBG_NET_INTF_LINK_SPEED_MODE_20000_KR2_FULL ) 11473 #define MBG_NET_INTF_LINK_SPEED_MODE_MASK_40000_KR4_FULL ( 1UL << MBG_NET_INTF_LINK_SPEED_MODE_40000_KR4_FULL ) 11475 #define MBG_NET_INTF_LINK_SPEED_MODE_MASK_40000_CR4_FULL ( 1UL << MBG_NET_INTF_LINK_SPEED_MODE_40000_CR4_FULL ) 11476 #define MBG_NET_INTF_LINK_SPEED_MODE_MASK_40000_SR4_FULL ( 1UL << MBG_NET_INTF_LINK_SPEED_MODE_40000_SR4_FULL ) 11477 #define MBG_NET_INTF_LINK_SPEED_MODE_MASK_40000_LR4_FULL ( 1UL << MBG_NET_INTF_LINK_SPEED_MODE_40000_LR4_FULL ) 11478 #define MBG_NET_INTF_LINK_SPEED_MODE_MASK_56000_KR4_FULL ( 1UL << MBG_NET_INTF_LINK_SPEED_MODE_56000_KR4_FULL ) 11479 #define MBG_NET_INTF_LINK_SPEED_MODE_MASK_56000_CR4_FULL ( 1UL << MBG_NET_INTF_LINK_SPEED_MODE_56000_CR4_FULL ) 11480 #define MBG_NET_INTF_LINK_SPEED_MODE_MASK_56000_SR4_FULL ( 1UL << MBG_NET_INTF_LINK_SPEED_MODE_56000_SR4_FULL ) 11481 #define MBG_NET_INTF_LINK_SPEED_MODE_MASK_56000_LR4_FULL ( 1UL << MBG_NET_INTF_LINK_SPEED_MODE_56000_LR4_FULL ) 11549 #define MBG_NET_INTF_LINK_PORT_TYPE_LONG_STRS \ 11555 "Attachment Unit Interface", \ 11556 "Media Independent Interface", \ 11557 "Direct Attach SFP+" \ 11566 #define MBG_NET_INTF_LINK_PORT_TYPE_SHORT_STRS \ 11626 #define MBG_NET_INTF_LINK_STATE_MASK_UP ( 1UL << MBG_NET_INTF_LINK_STATE_BIT_UP ) 11627 #define MBG_NET_INTF_LINK_STATE_MASK_RUNNING ( 1UL << MBG_NET_INTF_LINK_STATE_BIT_RUNNING ) 11628 #define MBG_NET_INTF_LINK_STATE_MASK_LOWER_UP ( 1UL << MBG_NET_INTF_LINK_STATE_BIT_LOWER_UP ) 11629 #define MBG_NET_INTF_LINK_STATE_MASK_DORMANT ( 1UL << MBG_NET_INTF_LINK_STATE_BIT_DORMANT ) 11630 #define MBG_NET_INTF_LINK_STATE_MASK_BROADCAST ( 1UL << MBG_NET_INTF_LINK_STATE_BIT_BROADCAST ) 11631 #define MBG_NET_INTF_LINK_STATE_MASK_MULTICAST ( 1UL << MBG_NET_INTF_LINK_STATE_BIT_MULTICAST ) 11632 #define MBG_NET_INTF_LINK_STATE_MASK_ALL_MULTI ( 1UL << MBG_NET_INTF_LINK_STATE_BIT_ALL_MULTI ) 11633 #define MBG_NET_INTF_LINK_STATE_MASK_DEBUG ( 1UL << MBG_NET_INTF_LINK_STATE_BIT_DEBUG ) 11635 #define MBG_NET_INTF_LINK_STATE_MASK_LOOPBACK ( 1UL << MBG_NET_INTF_LINK_STATE_BIT_LOOPBACK ) 11636 #define MBG_NET_INTF_LINK_STATE_MASK_POINT_TO_POINT ( 1UL << MBG_NET_INTF_LINK_STATE_BIT_POINT_TO_POINT ) 11637 #define MBG_NET_INTF_LINK_STATE_MASK_NO_ARP ( 1UL << MBG_NET_INTF_LINK_STATE_BIT_NO_ARP ) 11638 #define MBG_NET_INTF_LINK_STATE_MASK_PROMISC ( 1UL << MBG_NET_INTF_LINK_STATE_BIT_PROMISC ) 11639 #define MBG_NET_INTF_LINK_STATE_MASK_MASTER ( 1UL << MBG_NET_INTF_LINK_STATE_BIT_MASTER ) 11640 #define MBG_NET_INTF_LINK_STATE_MASK_SLAVE ( 1UL << MBG_NET_INTF_LINK_STATE_BIT_SLAVE ) 11641 #define MBG_NET_INTF_LINK_STATE_MASK_PORT_SEL ( 1UL << MBG_NET_INTF_LINK_STATE_BIT_PORT_SEL ) 11642 #define MBG_NET_INTF_LINK_STATE_MASK_AUTO_MEDIA ( 1UL << MBG_NET_INTF_LINK_STATE_BIT_AUTO_MEDIA ) 11644 #define MBG_NET_INTF_LINK_STATE_MASK_ECHO ( 1UL << MBG_NET_INTF_LINK_STATE_BIT_ECHO ) 11645 #define MBG_NET_INTF_LINK_STATE_MASK_DYNAMIC ( 1UL << MBG_NET_INTF_LINK_STATE_BIT_DYNAMIC) 11646 #define MBG_NET_INTF_LINK_STATE_MASK_NO_TRAILERS ( 1UL << MBG_NET_INTF_LINK_STATE_BIT_NO_TRAILERS) 11733 #define MBG_NET_INTF_LINK_BOND_MODE_STRS \ 11739 "802.3ad (LACP)", \ 11859 #define _mbg_swab_net_glb_cfg_settings( _p ) \ 11862 _mbg_swab32( &(_p)->flags ); \ 11885 #define _mbg_swab_net_glb_cfg_info( _p ) \ 11888 _mbg_swab_net_glb_cfg_settings( &(_p)->glb_settings ); \ 11889 _mbg_swab16( &(_p)->n_supp_intf_link ); \ 11890 _mbg_swab16( &(_p)->n_supp_intf_addr ); \ 11891 _mbg_swab16( &(_p)->n_supp_dns_srvr ); \ 11892 _mbg_swab16( &(_p)->n_supp_dns_srch_dom ); \ 11893 _mbg_swab16( &(_p)->n_supp_intf_route ); \ 11894 _mbg_swab16( &(_p)->max_hostname_len ); \ 11895 _mbg_swab32( &(_p)->reserved_1 ); \ 11896 _mbg_swab32( &(_p)->reserved_2 ); \ 11897 _mbg_swab32( &(_p)->feat_flags ); \ 11898 _mbg_swab32( &(_p)->flags_2 ); \ 11920 #define _mbg_swab_ip_addr( _p ) \ 11923 _mbg_swab8( &(_p)->type ); \ 11924 _mbg_swab8( &(_p)->reserved_1 ); \ 11925 _mbg_swab16( &(_p)->reserved_2 ); \ 11927 switch ( (_p)->type ) \ 11929 case MBG_IP_ADDR_TYPE_IP4: \ 11930 _mbg_swab_ip4_addr( &(_p)->u_addr.ip4_addr ); \ 11933 case MBG_IP_ADDR_TYPE_IP6: \ 11934 _mbg_swab_ip6_addr( &(_p)->u_addr.ip6_addr ); \ 11952 #define _mbg_swab_ip_addr_idx( _p ) \ 11955 _mbg_swab16( &(_p)->idx ); \ 11956 _mbg_swab_ip_addr( &(_p)->addr ); \ 11973 #define _mbg_swab_ip_addr_port( _p ) \ 11976 _mbg_swab_ip_addr( &(_p)->addr ); \ 11977 _mbg_swab16( &(_p)->port ); \ 11978 _mbg_swab16( &(_p)->flags ); \ 11992 #define _mbg_swab_net_name( _p ) \ 11995 _mbg_swab_mbg_host_name( &(_p)->name ); \ 12010 #define _mbg_swab_net_name_idx( _p ) \ 12013 _mbg_swab16( &(_p)->idx ); \ 12014 _mbg_swab_net_name( &(_p)->net_name ); \ 12030 uint32_t ass_if_index;
12063 #define _mbg_swab_net_intf_link_settings( _p ) \ 12066 _mbg_swab32( &(_p)->if_index ); \ 12067 _mbg_swab32( &(_p)->common_if_index ); \ 12068 _mbg_swab32( &(_p)->ass_if_index ); \ 12069 _mbg_swab32( &(_p)->flags ); \ 12070 _mbg_swab32( &(_p)->states ); \ 12071 _mbg_swab32( &(_p)->hw_type ); \ 12072 _mbg_swab32( &(_p)->mtu ); \ 12073 _mbg_swab32( &(_p)->txqlen ); \ 12074 _mbg_swab32( &(_p)->speed ); \ 12075 _mbg_swab16( &(_p)->bond_idx ); \ 12076 _mbg_swab16( &(_p)->vlan_cfg ); \ 12077 _mbg_swab16( &(_p)->reserved_1 ); \ 12078 _mbg_swab32( &(_p)->reserved_2 ); \ 12079 _mbg_swab32( &(_p)->reserved_3 ); \ 12094 #define _mbg_swab_net_intf_link_settings_idx( _p ) \ 12097 _mbg_swab16( &(_p)->idx ); \ 12098 _mbg_swab_net_intf_link_settings( &(_p)->settings ); \ 12122 #define _mbg_swab_net_intf_link_info( _p ) \ 12125 _mbg_swab_net_intf_link_settings( &(_p)->link_settings ); \ 12126 _mbg_swab32( &(_p)->supp_flags ); \ 12127 _mbg_swab32( &(_p)->supp_states ); \ 12128 _mbg_swab32( &(_p)->supp_types ); \ 12129 _mbg_swab32( &(_p)->supp_speed_modes ); \ 12130 _mbg_swab32( &(_p)->supp_port_types ); \ 12131 _mbg_swab32( &(_p)->supp_opts ); \ 12132 _mbg_swab32( &(_p)->supp_bond_modes ); \ 12133 _mbg_swab32( &(_p)->reserved_1 ); \ 12134 _mbg_swab32( &(_p)->reserved_2 ); \ 12135 _mbg_swab32( &(_p)->reserved_3 ); \ 12136 _mbg_swab32( &(_p)->reserved_4 ); \ 12151 #define _mbg_swab_net_intf_link_info_idx( _p ) \ 12154 _mbg_swab16( &(_p)->idx ); \ 12155 _mbg_swab_net_intf_link_info( &(_p)->info ); \ 12186 #define _mbg_swab_net_intf_addr_settings( _p ) \ 12189 _mbg_swab32( &(_p)->addr_index ); \ 12190 _mbg_swab32( &(_p)->ass_if_index ); \ 12191 _mbg_swab32( &(_p)->flags ); \ 12192 _mbg_swab_ip_addr( &(_p)->ip ); \ 12193 _mbg_swab_ip_addr( &(_p)->broadcast ); \ 12194 _mbg_swab16( &(_p)->reserved_2 ); \ 12195 _mbg_swab32( &(_p)->reserved_3 ); \ 12196 _mbg_swab32( &(_p)->reserved_4 ); \ 12197 _mbg_swab32( &(_p)->reserved_5 ); \ 12211 #define _mbg_swab_net_intf_addr_settings_idx( _p ) \ 12214 _mbg_swab16( &(_p)->idx ); \ 12215 _mbg_swab_net_intf_addr_settings( &(_p)->settings ); \ 12231 #define _mbg_swab_net_intf_addr_info( _p ) \ 12234 _mbg_swab_net_intf_addr_settings( &(_p)->addr_settings ); \ 12235 _mbg_swab32( &(_p)->supp_flags ); \ 12236 _mbg_swab32( &(_p)->reserved_1 ); \ 12237 _mbg_swab32( &(_p)->reserved_2 ); \ 12251 #define _mbg_swab_net_intf_addr_info_idx( _p ) \ 12254 _mbg_swab16( &(_p)->idx ); \ 12255 _mbg_swab_net_intf_addr_info( &(_p)->info ); \ 12286 #define _mbg_swab_net_intf_route_settings( _p ) \ 12289 _mbg_swab16( &(_p)->reserved_2 ); \ 12290 _mbg_swab_ip_addr( &(_p)->gateway ); \ 12291 _mbg_swab_ip_addr( &(_p)->dst ); \ 12292 _mbg_swab32( &(_p)->ass_if_index ); \ 12293 _mbg_swab32( &(_p)->ass_addr_index ); \ 12294 _mbg_swab32( &(_p)->reserved_3 ); \ 12295 _mbg_swab32( &(_p)->reserved_4 ); \ 12296 _mbg_swab32( &(_p)->reserved_5 ); \ 12310 #define _mbg_swab_net_intf_route_settings_idx( _p ) \ 12313 _mbg_swab16( &(_p)->idx ); \ 12314 _mbg_swab_net_intf_route_settings( &(_p)->settings ); \ 12330 #define _mbg_swab_net_intf_route_info( _p ) \ 12333 _mbg_swab_net_intf_route_settings( &(_p)->route_settings ); \ 12334 _mbg_swab32( &(_p)->reserved_1 ); \ 12335 _mbg_swab32( &(_p)->reserved_2 ); \ 12336 _mbg_swab32( &(_p)->reserved_3 ); \ 12337 _mbg_swab32( &(_p)->reserved_4 ); \ 12351 #define _mbg_swab_net_intf_route_info_idx( _p ) \ 12354 _mbg_swab16( &(_p)->idx ); \ 12355 _mbg_swab_net_intf_route_info( &(_p)->info ); \ 12377 #define MBG_UCAP_NET_DEFAULT_UDP_PORT 50815 12476 #define _mbg_swab_ucap_net_glb_settings( _p ) \ 12479 _mbg_swab32( &(_p)->num_recvs ); \ 12480 _mbg_swab32( &(_p)->reserved_0 ); \ 12481 _mbg_swab32( &(_p)->reserved_1 ); \ 12482 _mbg_swab32( &(_p)->reserved_2 ); \ 12507 #define _mbg_swab_ucap_net_glb_info( _p ) \ 12510 _mbg_swab_ucap_net_glb_settings( &(_p)->settings ); \ 12511 _mbg_swab32( &(_p)->n_supp_recvs ); \ 12512 _mbg_swab32( &(_p)->supp_modes ); \ 12513 _mbg_swab32( &(_p)->supp_protos ); \ 12514 _mbg_swab32( &(_p)->reserved_0 ); \ 12515 _mbg_swab32( &(_p)->reserved_1 ); \ 12516 _mbg_swab32( &(_p)->supp_flags ); \ 12539 #define _mbg_swab_ucap_net_recv_settings( _p ) \ 12542 _mbg_swab16( &(_p)->reserved_1 ); \ 12543 _mbg_swab32( &(_p)->reserved_2 ); \ 12544 _mbg_swab32( &(_p)->reserved_3 ); \ 12545 _mbg_swab32( &(_p)->ucaps ); \ 12546 _mbg_swab_ip_addr_port( &(_p)->addr ); \ 12568 #define _mbg_swab_ucap_net_recv_settings_idx( _p ) \ 12571 _mbg_swab16( &(_p)->idx ); \ 12572 _mbg_swab_ucap_net_recv_settings( &(_p)->settings ); \ 12592 #define _mbg_swab_ucap_net_recv_info( _p ) \ 12595 _mbg_swab_ucap_net_recv_settings( &(_p)->settings ); \ 12596 _mbg_swab32( &(_p)->reserved_0 ); \ 12597 _mbg_swab32( &(_p)->reserved_1 ); \ 12598 _mbg_swab32( &(_p)->reserved_2 ); \ 12599 _mbg_swab32( &(_p)->reserved_3 ); \ 12621 #define _mbg_swab_ucap_net_recv_info_idx( _p ) \ 12624 _mbg_swab16( &(_p)->idx ); \ 12625 _mbg_swab_ucap_net_recv_info( &(_p)->info ); \ 12678 #define PTP_NW_PROT_STRS \ 12683 "IEEE 802.3 (L2)", \ 12695 #define PTP_NW_PROT_STRS_SHORT \ 12729 #define PTP_PORT_STATE_STRS \ 12786 #define PTP_DELAY_MECH_NAME_E2E "E2E" 12787 #define PTP_DELAY_MECH_NAME_P2P "P2P" 12794 #define PTP_DELAY_MECH_NAMES \ 12796 PTP_DELAY_MECH_NAME_E2E, \ 12797 PTP_DELAY_MECH_NAME_P2P \ 12850 #define PTP_CLOCK_ACCURACY_STRS \ 12869 "more than 10 s", \ 12902 #define PTP_TIME_SOURCE_TABLE \ 12904 { PTP_TIME_SOURCE_ATOMIC_CLOCK, "Atomic Clock" }, \ 12905 { PTP_TIME_SOURCE_GPS, "GPS" }, \ 12906 { PTP_TIME_SOURCE_TERRESTRIAL_RADIO, "Terrestrial Radio" }, \ 12907 { PTP_TIME_SOURCE_PTP, "PTP" }, \ 12908 { PTP_TIME_SOURCE_NTP, "NTP" }, \ 12909 { PTP_TIME_SOURCE_HAND_SET, "HAND SET" }, \ 12910 { PTP_TIME_SOURCE_OTHER, "OTHER" }, \ 12911 { PTP_TIME_SOURCE_INTERNAL_OSCILLATOR, "Internal Oscillator" }, \ 12978 #define PTP_ROLE_MSK_SLAVES ( PTP_ROLE_MSK_MULTICAST_SLAVE \ 12979 | PTP_ROLE_MSK_UNICAST_SLAVE \ 12980 | PTP_ROLE_MSK_MULTICAST_AUTO ) 12982 #define PTP_ROLE_MSK_MASTERS ( PTP_ROLE_MSK_MULTICAST_MASTER \ 12983 | PTP_ROLE_MSK_UNICAST_MASTER \ 12984 | PTP_ROLE_MSK_MULTICAST_AUTO \ 12985 | PTP_ROLE_BOTH_MASTER ) 12994 #define PTP_ROLE_STRS \ 12996 "Multicast Slave", \ 12998 "Multicast Master", \ 12999 "Unicast Master", \ 13000 "Multicast (Auto)", \ 13016 #define PTP_ROLE_STRS_SHORT \ 13044 #define _mbg_swab_ptp_clock_id( _p ) _nop_macro_fnc() // nothing to swap 13046 #define PTP_CLOCK_ID_WILDCARD { { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF } } 13054 #define _mbg_swab_ptp_port_id( _p ) _mbg_swab16( _p ) 13056 #define PTP_PORT_ID_WILDCARD 0xFFFF 13075 #define _mbg_swab_ptp_port_identity( _p ) \ 13077 _mbg_swab_ptp_clock_id( &(_p)->clock_identity ); \ 13078 _mbg_swab_ptp_port_id( &(_p)->port_number ); \ 13096 #define _mbg_swab_ptp_clock_quality( _p ) \ 13098 _mbg_swab8( &(_p)->clock_class ); \ 13099 _mbg_swab8( &(_p)->clock_accuracy ); \ 13100 _mbg_swab16( &(_p)->log_variance ); \ 13117 #define _mbg_swab_ptp_time_interval( _p ) \ 13119 _mbg_swab64( &(_p)->scaled_nanoseconds ); \ 13145 #define PTP_TIMESCALE_NAME_PTP "PTP Standard (TAI)" 13146 #define PTP_TIMESCALE_NAME_ARB "Arbitrary" 13151 #define PTP_TIMESCALE_NAME_PTP_SHORT "PTP" 13152 #define PTP_TIMESCALE_NAME_ARB_SHORT "Arb" 13161 #define PTP_TIMESCALE_NAMES \ 13163 PTP_TIMESCALE_NAME_PTP, \ 13164 PTP_TIMESCALE_NAME_ARB \ 13173 #define PTP_TIMESCALE_NAMES_SHORT \ 13175 PTP_TIMESCALE_NAME_PTP_SHORT, \ 13176 PTP_TIMESCALE_NAME_ARB_SHORT \ 13219 #define _mbg_swab_ptp_state( _p ) \ 13222 _mbg_swab16( &(_p)->nw_prot ); \ 13223 _mbg_swab32( &(_p)->flags ); \ 13224 _mbg_swab_nano_time( &(_p)->offset ); \ 13225 _mbg_swab_nano_time( &(_p)->path_delay ); \ 13226 _mbg_swab_nano_time( &(_p)->mean_path_delay ); \ 13227 _mbg_swab_nano_time( &(_p)->delay_asymmetry ); \ 13228 _mbg_swab_ptp_clock_id( &(_p)->gm_id ); \ 13229 _mbg_swab16( &(_p)->clock_offset_scaled_log_variance ); \ 13230 _mbg_swab32( &(_p)->tsu_secs ); \ 13231 _mbg_swab32( &(_p)->reserved_2 ); \ 13232 _mbg_swab16( &(_p)->utc_offset ); \ 13233 _mbg_swab_dac_val( &(_p)->osc_dac_cal ); \ 13234 _mbg_swab16( &(_p)->reserved_3 ); \ 13311 #define _mbg_swab_ptp_cfg_settings( _p ) \ 13314 _mbg_swab16( &(_p)->nw_prot ); \ 13315 _mbg_swab16( &(_p)->sync_intv ); \ 13316 _mbg_swab16( &(_p)->ann_intv ); \ 13317 _mbg_swab16( &(_p)->delay_req_intv ); \ 13318 _mbg_swab32( &(_p)->upper_bound ); \ 13319 _mbg_swab32( &(_p)->lower_bound ); \ 13320 _mbg_swab16( &(_p)->delay_asymmetry ); \ 13321 _mbg_swab16( &(_p)->flags_ex ); \ 13322 _mbg_swab32( &(_p)->flags ); \ 13364 #define _mbg_swab_ptp_cfg_info( _p ) \ 13367 _mbg_swab_ptp_cfg_settings( &(_p)->settings ); \ 13368 _mbg_swab16( &(_p)->supp_flags_ex ); \ 13369 _mbg_swab16( &(_p)->sync_intv_min ); \ 13370 _mbg_swab16( &(_p)->sync_intv_max ); \ 13371 _mbg_swab16( &(_p)->ann_intv_min ); \ 13372 _mbg_swab16( &(_p)->ann_intv_max ); \ 13373 _mbg_swab16( &(_p)->delay_req_intv_min ); \ 13374 _mbg_swab16( &(_p)->delay_req_intv_max ); \ 13375 _mbg_swab32( &(_p)->supp_flags ); \ 13376 _mbg_swab32( &(_p)->supp_nw_prot ); \ 13377 _mbg_swab32( &(_p)->supp_opt_ext ); \ 13378 _mbg_swab32( &(_p)->supp_delay_mech ); \ 13459 #define PTP_CFG_MSK_TIME_SCALE_IS_PTP ( 1UL << PTP_CFG_TIME_SCALE_IS_PTP ) 13460 #define PTP_CFG_MSK_V1_HW_COMPAT ( 1UL << PTP_CFG_V1_HW_COMPAT ) 13461 #define PTP_CFG_MSK_CAN_BE_UNICAST_SLAVE ( 1UL << PTP_CFG_CAN_BE_UNICAST_SLAVE ) 13462 #define PTP_CFG_MSK_CAN_BE_MULTICAST_MASTER ( 1UL << PTP_CFG_CAN_BE_MULTICAST_MASTER ) 13463 #define PTP_CFG_MSK_CAN_BE_UNICAST_MASTER ( 1UL << PTP_CFG_CAN_BE_UNICAST_MASTER ) 13464 #define PTP_CFG_MSK_CAN_BE_MULTICAST_AUTO ( 1UL << PTP_CFG_CAN_BE_MULTICAST_AUTO ) 13465 #define PTP_CFG_MSK_SUPP_UTC_VALID ( 1UL << PTP_CFG_SUPP_UTC_VALID ) 13466 #define PTP_CFG_MSK_CAN_BE_BOTH_MASTER ( 1UL << PTP_CFG_CAN_BE_BOTH_MASTER ) 13468 #define PTP_CFG_MSK_HYBRID_MASTER ( 1UL << PTP_CFG_HYBRID_MASTER ) 13469 #define PTP_CFG_MSK_HYBRID_SLAVE ( 1UL << PTP_CFG_HYBRID_SLAVE ) 13470 #define PTP_CFG_MSK_ONE_STEP_MASTER ( 1UL << PTP_CFG_ONE_STEP_MASTER ) 13471 #define PTP_CFG_MSK_MNGMNT_MSGS_DISB ( 1UL << PTP_CFG_MNGMNT_MSGS_DISB ) 13472 #define PTP_CFG_MSK_SUPP_MCAST_SLAVE_FLAG ( 1UL << PTP_CFG_SUPP_MCAST_SLAVE_FLAG ) 13473 #define PTP_CFG_MSK_CAN_BE_MULTICAST_SLAVE ( 1UL << PTP_CFG_CAN_BE_MULTICAST_SLAVE ) 13474 #define PTP_CFG_MSK_ONE_STEP_L2 ( 1UL << PTP_CFG_ONE_STEP_L2 ) 13475 #define PTP_CFG_MSK_ONE_STEP_P2P ( 1UL << PTP_CFG_ONE_STEP_P2P ) 13477 #define PTP_CFG_MSK_TSU_RESET ( 1UL << PTP_CFG_TSU_RESET ) 13478 #define PTP_CFG_MSK_NTP_HW_TS_MASTER ( 1UL << PTP_CFG_NTP_HW_TS_MASTER ) 13479 #define PTP_CFG_MSK_NTP_HW_TS_SLAVE ( 1UL << PTP_CFG_NTP_HW_TS_SLAVE) 13480 #define PTP_CFG_MSK_SYNCE_MASTER ( 1UL << PTP_CFG_SYNCE_MASTER ) 13481 #define PTP_CFG_MSK_SYNCE_SLAVE ( 1UL << PTP_CFG_SYNCE_SLAVE ) 13482 #define PTP_CFG_MSK_HAS_MUX ( 1UL << PTP_CFG_HAS_MUX ) 13483 #define PTP_CFG_MSK_CAN_BE_TIME_MONITOR ( 1UL << PTP_CFG_CAN_BE_TIME_MONITOR ) 13484 #define PTP_CFG_MSK_HAS_STATISTICS ( 1UL << PTP_CFG_HAS_STATISTICS ) 13486 #define PTP_CFG_MSK_CAN_BE_V1_MASTER ( 1UL << PTP_CFG_CAN_BE_V1_MASTER ) 13487 #define PTP_CFG_MSK_CAN_BE_V1_SLAVE ( 1UL << PTP_CFG_CAN_BE_V1_SLAVE ) 13488 #define PTP_CFG_MSK_HAS_V2_COMMON_DATASETS ( 1UL << PTP_CFG_HAS_V2_COMMON_DATASETS ) 13489 #define PTP_CFG_MSK_HAS_V1_COMMON_DATASETS ( 1UL << PTP_CFG_HAS_V1_COMMON_DATASETS ) 13490 #define PTP_CFG_MSK_ATOI ( 1UL << PTP_CFG_ATOI ) 13491 #define PTP_CFG_MSK_HAS_SMPTE_TLV_STATE ( 1UL << PTP_CFG_HAS_SMPTE_TLV_STATE ) 13492 #define PTP_CFG_MSK_NTP_SW_SERVER ( 1UL << PTP_CFG_NTP_SW_SERVER ) 13493 #define PTP_CFG_MSK_HAS_EXT_SUPP_FLAGS ( 1UL << PTP_CFG_HAS_EXT_SUPP_FLAGS ) 13543 #define PTP_CFG_MSK_CAN_BE_PTP_PROBE ( 1UL << PTP_CFG_CAN_BE_PTP_PROBE ) 13544 #define PTP_CFG_MSK_DISABLE_PTP ( 1UL << PTP_CFG_DISABLE_PTP ) 13545 #define PTP_CFG_MSK_HAS_NTP_PKTGEN_IPV6 ( 1UL << PTP_CFG_HAS_NTP_PKTGEN_IPV6 ) 13546 #define PTP_CFG_MSK_HAS_DELAY_ASYMMETRY_CFG ( 1UL << PTP_CFG_HAS_DELAY_ASYMMETRY_CFG ) 13547 #define PTP_CFG_MSK_HAS_SOFT_NTP ( 1UL << PTP_CFG_HAS_SOFT_NTP ) 13554 #define PTP_CFG_MSK_SUPPORT_PTP_UNICAST ( PTP_CFG_MSK_CAN_BE_UNICAST_SLAVE | \ 13555 PTP_CFG_MSK_CAN_BE_UNICAST_MASTER ) 13686 #define PTP_PRESETS_STRS \ 13689 "Default E2E IEEE1588-2008", \ 13690 "Default P2P IEEE1588-2008", \ 13691 "Power IEEE C37.238-2011", \ 13692 "Telecom ITU-T G.8265.1", \ 13693 "Telecom ITU-T G.8275.1", \ 13694 "SMPTE ST 2059-2", \ 13695 "AES67 Media Profile", \ 13697 "Utility IEC 61850-9-3", \ 13698 "Telecom ITU-T G.8275.2", \ 13700 "Power IEEE C37.238-2017" \ 13708 #define PTP_POWER_PROFILE_GM_ID_MIN 3 13709 #define PTP_POWER_PROFILE_GM_ID_MAX 255 13721 #define _mbg_swab_ptp_power_profile_cfg( _p ) \ 13724 _mbg_swab32( &(_p)->network_incaccuracy ); \ 13725 _mbg_swab8( &(_p)->grandmaster_id ); \ 13726 _mbg_swab8( &(_p)->reserved_1 ); \ 13727 _mbg_swab16( &(_p)->grandmaster_id_2017 ); \ 13728 _mbg_swab_tzdl( &(_p)->tzdl ); \ 13729 _mbg_swab32( &(_p)->flags ); \ 13734 #if defined( _PRELIMINARY_CODE ) 13755 #define SMPTE_SYSTEM_FRAME_RATE_STR \ 13766 #define SMPTE_FRAME_RATE_NUM \ 13776 #define SMPTE_FRAME_RATE_DENUM \ 13877 #define _mbg_swab_ptp_smpte_profile_cfg( _p ) \ 13880 _mbg_swab32( &(_p)->defaultSystemFrameRateNum ); \ 13881 _mbg_swab32( &(_p)->defaultSystemFrameRateDenum ); \ 13882 _mbg_swab32( &(_p)->currentLocalOffset ); \ 13883 _mbg_swab32( &(_p)->jumpSeconds ); \ 13884 _mbg_swab32( &(_p)->reserved_5 ); \ 13885 _mbg_swab32( &(_p)->previousJamLocalOffset ); \ 13886 _mbg_swab32( &(_p)->reserved_8 ); \ 13887 _mbg_swab32( &(_p)->reserved_8 ); \ 13888 _mbg_swab32( &(_p)->reserved_9 ); \ 13889 _mbg_swab32( &(_p)->reserved_10 ); \ 13906 #define _mbg_swab_ptp_telecom8275_profile_cfg( _p ) \ 13909 _mbg_swab8( &(_p)->use_alternate_multicast_mac_address ); \ 13910 _mbg_swab8( &(_p)->reserved_1 ); \ 13911 _mbg_swab8( &(_p)->reserved_2 ); \ 13912 _mbg_swab8( &(_p)->reserved_3 ); \ 13913 _mbg_swab32( &(_p)->reserved_4 ); \ 13954 #define N_SSM_CODES_OPTION_1 5 13955 #define N_SSM_CODES_OPTION_2 9 13963 #define ITU_SSM_CODE_OPT_1_STRS \ 13990 #define ITU_SSM_CODE_OPT_2_STRS \ 14017 #define ITU_SSM_CODE_STRS_COMBINED \ 14046 #define MAX_T1_SSM_QLVL 8 14078 #define T1_SSM_QLVL_ARRAY \ 14080 T1_SSM_QLVL_ST1_TRACE, \ 14081 T1_SSM_QLVL_SYNC_TRACE_UNKNOWN, \ 14082 T1_SSM_QLVL_ST2_TRACE, \ 14083 T1_SSM_QLVL_ST3_TRACE, \ 14084 T1_SSM_QLVL_SONET_MIN_CLOCK_TRACE, \ 14085 T1_SSM_QLVL_ST4_TRACE, \ 14086 T1_SSM_QLVL_DNU_FOR_SYNC, \ 14087 T1_SSM_QLVL_RESERVED \ 14099 #define T1_SSM_QLVL_STRS \ 14101 "Stratum 1 traceable", \ 14102 "Synchronized traceability unknown", \ 14103 "Stratum 2 traceable", \ 14104 "Stratum 3 traceable", \ 14105 "SONET minimum clock traceable", \ 14106 "Stratum 4 traceable", \ 14107 "Do not use for sync", \ 14108 "Reserved for network sync" \ 14146 #define SDH_NETWORK_OPTION_STRS \ 14148 "SDH Network Opt. 1", \ 14149 "SDH Network Opt. 2", \ 14208 #define GBIT_LINK_STATUS_STRS \ 14210 "MASTER (1000BASE-T)", \ 14211 "SLAVE (1000BASE-T)", \ 14213 "AUTO (100BASE-TX)", \ 14215 "AUTO (SFP LINK UP)", \ 14218 #else // !defined( _PRELIMINARY_CODE ), dummy declarations 14224 #endif // defined( _PRELIMINARY_CODE ) 14246 #define _mbg_swab_ptp_uc_master_cfg_limits( _p ) \ 14249 _mbg_swab16( &(_p)->n_supp_master ); \ 14250 _mbg_swab16( &(_p)->sync_intv_min ); \ 14251 _mbg_swab16( &(_p)->sync_intv_max ); \ 14252 _mbg_swab16( &(_p)->ann_intv_min ); \ 14253 _mbg_swab16( &(_p)->ann_intv_max ); \ 14254 _mbg_swab16( &(_p)->delay_req_intv_min ); \ 14255 _mbg_swab16( &(_p)->delay_req_intv_max ); \ 14256 _mbg_swab16( &(_p)->reserved_0 ); \ 14257 _mbg_swab32( &(_p)->supp_flags ); \ 14258 _mbg_swab32( &(_p)->reserved_1 ); \ 14290 #define _mbg_swab_ptp_uc_master_settings( _p ) \ 14293 _mbg_swab_ptp_clock_id( &(_p)->gm_clock_id ); \ 14294 _mbg_swab_ptp_port_id( &(_p)->gm_port_id ); \ 14295 _mbg_swab16( &(_p)->sync_intv ); \ 14296 _mbg_swab16( &(_p)->ann_intv ); \ 14297 _mbg_swab16( &(_p)->delay_req_intv ); \ 14298 _mbg_swab32( &(_p)->fix_offset ); \ 14299 _mbg_swab16( &(_p)->message_duration ); \ 14300 _mbg_swab16( &(_p)->reserved_0 ); \ 14301 _mbg_swab32( &(_p)->reserved_1 ); \ 14302 _mbg_swab32( &(_p)->flags ); \ 14336 #define _mbg_swab_ptp_uc_master_settings_idx( _p ) \ 14339 _mbg_swab32( &(_p)->idx ); \ 14340 _mbg_swab_ptp_uc_master_settings( &(_p)->settings ); \ 14359 #define _mbg_swab_ptp_uc_master_info( _p ) \ 14362 _mbg_swab_ptp_uc_master_settings( &(_p)->settings ); \ 14363 _mbg_swab32( &(_p)->reserved ); \ 14364 _mbg_swab32( &(_p)->flags ); \ 14389 #define _mbg_swab_ptp_uc_master_info_idx( _p ) \ 14392 _mbg_swab32( &(_p)->idx ); \ 14393 _mbg_swab_ptp_uc_master_info( &(_p)->info ); \ 14513 #define PTP_CODE_STRING_LENGTH 4 14514 #define PTP_SUBDOMAIN_NAME_LENGTH 16 14533 #define _mbg_swab_ptp_v1_uuid( _p ) \ 14536 _mbg_swab16( &(_p)->reserved_2 ); \ 14537 _mbg_swab_ptp_clock_id( &(_p)->clock_uuid ); \ 14538 _mbg_swab_ptp_port_id( &(_p)->port_id ); \ 14539 _mbg_swab16( &(_p)->reserved_3 ); \ 14594 #define _mbg_swab_ptp_v1_default_dataset( _p ) \ 14597 _mbg_swab_ptp_v1_uuid( &(_p)->uuid ); \ 14598 _mbg_swab16( &(_p)->clock_variance ); \ 14599 _mbg_swab16( &(_p)->number_ports ); \ 14600 _mbg_swab16( &(_p)->number_foreign_records ); \ 14601 _mbg_swab32( &(_p)->flags ); \ 14620 #define _mbg_swab_ptp_v1_current_dataset( _p ) \ 14623 _mbg_swab16( &(_p)->steps_removed ); \ 14624 _mbg_swab16( &(_p)->reserved_1 ); \ 14625 _mbg_swab_nano_time( &(_p)->offset_from_master ); \ 14626 _mbg_swab_nano_time( &(_p)->one_way_delay ); \ 14689 #define _mbg_swab_ptp_v1_parent_dataset( _p ) \ 14692 _mbg_swab_ptp_v1_uuid( &(_p)->uuid ); \ 14693 _mbg_swab16( &(_p)->parent_last_sync_sequence_number ); \ 14694 _mbg_swab16( &(_p)->parent_variance ); \ 14695 _mbg_swab16( &(_p)->observed_variance ); \ 14696 _mbg_swab16( &(_p)->reserved_1 ); \ 14697 _mbg_swab32( &(_p)->observed_drift ); \ 14698 _mbg_swab_ptp_v1_uuid( &(_p)->grandmaster_uuid ); \ 14699 _mbg_swab16( &(_p)->grandmaster_variance ); \ 14700 _mbg_swab16( &(_p)->grandmaster_sequence_number ); \ 14701 _mbg_swab16( &(_p)->reserved_2 ); \ 14702 _mbg_swab32( &(_p)->flags ); \ 14746 #define _mbg_swab_ptp_v1_time_properties_dataset( _p ) \ 14749 _mbg_swab16( &(_p)->current_utc_offset ); \ 14750 _mbg_swab16( &(_p)->epoch_number ); \ 14751 _mbg_swab32( &(_p)->flags ); \ 14800 #define _mbg_swab_ptp_v1_port_dataset( _p ) \ 14803 _mbg_swab16( &(_p)->last_sync_event_sequence_number ); \ 14804 _mbg_swab16( &(_p)->last_general_event_sequence_number ); \ 14805 _mbg_swab16( &(_p)->reserved_2 ); \ 14806 _mbg_swab32( &(_p)->subdomain_address ); \ 14807 _mbg_swab16( &(_p)->event_port_address ); \ 14808 _mbg_swab16( &(_p)->general_port_address ); \ 14809 _mbg_swab_ptp_v1_uuid( &(_p)->uuid ); \ 14810 _mbg_swab32( &(_p)->flags ); \ 14830 #define _mbg_swab_ptp_v1_port_dataset_idx( _p ) \ 14832 _mbg_swab16( &(_p)->idx ); \ 14833 _mbg_swab_ptp_v1_port_dataset( &(_p)->port_dataset ); \ 14852 #define _mbg_swab_ptp_v2_default_dataset_flags( _p ) \ 14880 #define _mbg_swab_ptp_v2_default_dataset( _p ) \ 14882 _mbg_swab_ptp_v2_default_dataset_flags( &(_p)->flags ); \ 14883 _mbg_swab8( &(_p)->reserved_1 ); \ 14884 _mbg_swab16( &(_p)->number_ports ); \ 14885 _mbg_swab8( &(_p)->priority_1 ); \ 14886 _mbg_swab_ptp_clock_quality( &(_p)->clock_quality ); \ 14887 _mbg_swab8( &(_p)->priority_2 ); \ 14888 _mbg_swab_ptp_clock_id( &(_p)->clock_identity ); \ 14889 _mbg_swab8( &(_p)->domain_number ); \ 14890 _mbg_swab8( &(_p)->reserved_2 ); \ 14910 #define _mbg_swab_ptp_v2_current_dataset( _p ) \ 14912 _mbg_swab16( &(_p)->steps_removed ); \ 14913 _mbg_swab_ptp_time_interval( &(_p)->offset_from_master ); \ 14914 _mbg_swab_ptp_time_interval( &(_p)->mean_path_delay ); \ 14932 #define _mbg_swab_ptp_v2_parent_dataset_flags( _p )\ 14953 int32_t parent_phase_change_rate;
14955 uint8_t grandmaster_priority_1;
14964 #define _mbg_swab_ptp_v2_parent_dataset( _p ) \ 14966 _mbg_swab_ptp_port_identity( &(_p)->parent_port_identity ); \ 14967 _mbg_swab_ptp_v2_parent_dataset_flags( &(_p)->flags ); \ 14968 _mbg_swab8( &(_p)->reserved ); \ 14969 _mbg_swab16( &(_p)->parent_log_variance ); \ 14970 _mbg_swab32( &(_p)->parent_phase_change_rate ); \ 14971 _mbg_swab8( &(_p)->grandmaster_priority_1 ); \ 14972 _mbg_swab_ptp_clock_quality( &(_p)->grandmaster_clock_quality ); \ 14973 _mbg_swab8( &(_p)->grandmaster_priority_2 ); \ 14974 _mbg_swab_ptp_clock_id( &(_p)->grandmaster_identity ); \ 14998 #define _mbg_swab_ptp_v2_time_properties_dataset_flags( _p ) \ 15018 #define _mbg_swab_ptp_v2_time_properties_dataset( _p ) \ 15020 _mbg_swab16( &(_p)->current_utc_offset ); \ 15021 _mbg_swab_ptp_v2_time_properties_dataset_flags( &(_p)->flags ); \ 15022 _mbg_swab8( &(_p)->time_source ); \ 15052 #define _mbg_swab_ptp_v2_port_dataset( _p ) \ 15054 _mbg_swab_ptp_port_identity( &(_p)->port_identity ); \ 15055 _mbg_swab8( &(_p)->port_state ); \ 15056 _mbg_swab8( &(_p)->log_min_delay_req_interval ); \ 15057 _mbg_swab_ptp_time_interval( &(_p)->peer_mean_path_delay ); \ 15058 _mbg_swab8( &(_p)->log_announce_interval ); \ 15059 _mbg_swab8( &(_p)->announce_receipt_timeout ); \ 15060 _mbg_swab8( &(_p)->log_sync_interval ); \ 15061 _mbg_swab8( &(_p)->delay_mechanism ); \ 15062 _mbg_swab8( &(_p)->log_min_pdelay_req_interval ); \ 15081 #define _mbg_swab_ptp_v2_port_dataset_idx( _p ) \ 15083 _mbg_swab16( &(_p)->idx ); \ 15084 _mbg_swab_ptp_v2_port_dataset( &(_p)->port_dataset ); \ 15179 #define NTP_MSK_IPV4 ( 1UL << NTP_IPV4 ) 15180 #define NTP_MSK_IPV6 ( 1UL << NTP_IPV6 ) 15181 #define NTP_MSK_SYMM_KEYS ( 1UL << NTP_SYMM_KEYS ) 15182 #define NTP_MSK_AUTOKEY ( 1UL << NTP_AUTOKEY ) 15183 #define NTP_MSK_BURST ( 1UL << NTP_BURST ) 15184 #define NTP_MSK_IBURST ( 1UL << NTP_IBURST ) 15185 #define NTP_MSK_NO_SELECT ( 1UL << NTP_NO_SELECT ) 15186 #define NTP_MSK_PREEMPT ( 1UL << NTP_PREEMPT ) 15187 #define NTP_MSK_PREFER ( 1UL << NTP_PREFER ) 15188 #define NTP_MSK_TRUE ( 1UL << NTP_TRUE ) 15189 #define NTP_MSK_BROADCAST ( 1UL << NTP_BROADCAST ) 15190 #define NTP_MSK_MULTICAST ( 1UL << NTP_MULTICAST ) 15191 #define NTP_MSK_MANYCAST ( 1UL << NTP_MANYCAST ) 15192 #define NTP_MSK_POOL ( 1UL << NTP_POOL ) 15193 #define NTP_MSK_PEER ( 1UL << NTP_PEER ) 15194 #define NTP_MSK_BROADCASTCLIENT ( 1UL << NTP_BROADCASTCLIENT) 15195 #define NTP_MSK_MULTICASTCLIENT ( 1UL << NTP_MULTICASTCLIENT) 15196 #define NTP_MSK_MANYCASTCLIENT ( 1UL << NTP_MANYCASTCLIENT) 15197 #define NTP_MSK_RESTRICTIONS ( 1UL << NTP_RESTRICTIONS ) 15198 #define NTP_MSK_DISCARD ( 1UL << NTP_DISCARD ) 15199 #define NTP_MSK_REFCLOCKS ( 1UL << NTP_REFCLOCKS ) 15200 #define NTP_MSK_STATISTICS ( 1UL << NTP_STATISTICS ) 15201 #define NTP_MSK_MISCELLANEOUS ( 1UL << NTP_MISCELLANEOUS ) 15202 #define NTP_MSK_TRUSTED_KEYS ( 1UL << NTP_TRUSTED_KEYS ) 15203 #define NTP_MSK_FIXED_REFCLOCKS ( 1UL << NTP_FIXED_REFCLOCKS ) 15204 #define NTP_MSK_ADD_CONF ( 1UL << NTP_ADD_CONF ) 15209 #define NTP_DEF_ADD_CONF_PATH "/etc/mbg" 15210 #define NTP_DEF_ADD_CONF_FILENAME "ntp.conf.add" 15211 #define NTP_DEF_ADD_CONF_FILE NTP_DEF_ADD_CONF_PATH "/" NTP_DEF_ADD_CONF_FILENAME 15234 #define _mbg_swab_ntp_glb_settings( _p ) \ 15237 _mbg_swab32( &(_p)->flags ); \ 15261 #define _mbg_swab_ntp_glb_info( _p ) \ 15264 _mbg_swab_ntp_glb_settings( &(_p)->settings ); \ 15265 _mbg_swab32( &(_p)->supp_ntp_roles ); \ 15266 _mbg_swab32( &(_p)->supp_flags ); \ 15270 #if defined( _PRELIMINARY_CODE ) 15384 #define _mbg_swab_ntp_restr_limits( _p ) \ 15387 _mbg_swab16( &(_p)->max_restrs ); \ 15388 _mbg_swab16( &(_p)->cur_restrs ); \ 15389 _mbg_swab32( &(_p)->supp_types ); \ 15390 _mbg_swab32( &(_p)->supp_flags ); \ 15391 _mbg_swab32( &(_p)->reserved ); \ 15412 #define _mbg_swab_ntp_restr( _p ) \ 15415 _mbg_swab16( &(_p)->reserved_2 ); \ 15416 _mbg_swab32( &(_p)->flags ); \ 15417 _mbg_swab_ntp_restr_discard( &(_p)->u.discard ); \ 15434 #define _mbg_swab_ntp_restr_idx( _p ) \ 15437 _mbg_swab32( &(_p)->idx ); \ 15438 _mbg_swab_ntp_restr( &(_p)->restr ); \ 15462 #define _mbg_swab_ntp_discard_limits( _p ) \ 15465 _mbg_swab16( &(_p)->monitor_min ); \ 15466 _mbg_swab16( &(_p)->monitor_max ); \ 15467 _mbg_swab32( &(_p)->reserved ); \ 15484 #define _mbg_swab_ntp_discard_settings( _p ) \ 15487 _mbg_swab16( &(_p)->monitor ); \ 15488 _mbg_swab32( &(_p)->reserved ); \ 15548 #define _mbg_swab_ntp_stats_glb_settings( _p ) \ 15551 _mbg_swab32( &(_p)->flags ); \ 15552 _mbg_swab32( &(_p)->reserved_1 ); \ 15553 _mbg_swab32( &(_p)->reserved_2 ); \ 15574 #define _mbg_swab_ntp_stats_glb_info( _p ) \ 15577 _mbg_swab_ntp_stats_glb_settings( &(_p)->settings ); \ 15578 _mbg_swab32( &(_p)->supp_stats ); \ 15579 _mbg_swab32( &(_p)->reserved_1 ); \ 15580 _mbg_swab32( &(_p)->reserved_2 ); \ 15581 _mbg_swab32( &(_p)->reserved_3 ); \ 15585 #else // !defined( _PRELIMINARY_CODE ), dummy declarations 15595 #endif // defined( _PRELIMINARY_CODE ) 15670 #define NTP_MIN_REFCLOCK_FUDGE_FLAG 1 15671 #define N_NTP_REFCLOCK_FUDGE_FLAGS 4 15707 #define _mbg_swab_ntp_refclk_cfg_settings( _p ) \ 15710 _mbg_swab_nano_time_64( &(_p)->time1 ); \ 15711 _mbg_swab_nano_time_64( &(_p)->time2 ); \ 15712 _mbg_swab16( &(_p)->drv_flags_enable ); \ 15713 _mbg_swab16( &(_p)->drv_flags_value ); \ 15714 _mbg_swab32( &(_p)->flags ); \ 15731 #define _mbg_swab_ntp_refclk_cfg_settings_idx( _p ) \ 15734 _mbg_swab32( &(_p)->idx ); \ 15735 _mbg_swab_ntp_refclk_cfg_settings( &(_p)->settings ); \ 15760 #define NTP_MSK_REFCLK_CFG_TRUSTTIME ( 1UL << NTP_REFCLK_CFG_TRUSTTIME ) 15781 #define _mbg_swab_ntp_refclk_cfg_info( _p ) \ 15784 _mbg_swab_ntp_refclk_cfg_settings( &(_p)->settings ); \ 15785 _mbg_swab32( &(_p)->supp_refclk_types ); \ 15802 #define _mbg_swab_ntp_refclk_cfg_info_idx( _p ) \ 15805 _mbg_swab32( &(_p)->idx ); \ 15806 _mbg_swab_ntp_refclk_cfg_info( &(_p)->info ); \ 15844 #define NTP_SYMM_KEY_HASHES_STRS \ 15869 #define _mbg_swab_ntp_symm_key_limits( _p ) \ 15872 _mbg_swab16( &(_p)->supp_hashes ); \ 15879 #define N_NTP_SYMM_KEY_LEN 128 15883 #define N_NTP_SYMM_KEY_MAX_IP_ADDR 8 15908 #define _mbg_swab_ntp_symm_key_settings( _p ) \ 15913 _mbg_swab16( &(_p)->id ); \ 15915 for ( i = 0; i < N_NTP_SYMM_KEY_MAX_IP_ADDR; ++i) \ 15916 _mbg_swab_ip_addr( &(_p)->ip_addr[i] ); \ 15933 #define _mbg_swab_ntp_symm_key_settings_idx( _p ) \ 15936 _mbg_swab32( &(_p)->idx ); \ 15937 _mbg_swab_ntp_symm_key_settings( &(_p)->settings ); \ 15957 #define _mbg_swab_ntp_symm_key_info( _p ) \ 15960 _mbg_swab_ntp_symm_key_settings( &(_p)->settings ); \ 15976 #define _mbg_swab_ntp_symm_key_info_idx( _p ) \ 15979 _mbg_swab32( &(_p)->idx ); \ 15980 _mbg_swab_ntp_symm_key_info( &(_p)->info ); \ 15997 #define _mbg_swab_ntp_trusted_key_settings( _p ) \ 16000 _mbg_swab16( &(_p)->id ); \ 16016 #define _mbg_swab_ntp_trusted_key_settings_idx( _p ) \ 16019 _mbg_swab32( &(_p)->idx ); \ 16020 _mbg_swab_ntp_trusted_key_settings( &(_p)->settings ); \ 16039 #define _mbg_swab_ntp_trusted_key_info( _p ) \ 16042 _mbg_swab_ntp_trusted_key_settings( &(_p)->settings ); \ 16058 #define _mbg_swab_ntp_trusted_key_info_idx( _p ) \ 16061 _mbg_swab32( &(_p)->idx ); \ 16062 _mbg_swab_ntp_trusted_key_info( &(_p)->info ); \ 16109 #define _mbg_swab_ntp_misc_limits( _p ) \ 16112 _mbg_swab32( &(_p)->supp_flags ); \ 16131 #define _mbg_swab_ntp_misc_driftfile_settings( _p ) \ 16178 #define _mbg_swab_ntp_misc_orphan_mode_settings( _p ) \ 16199 #define _mbg_swab_ntp_misc_orphan_mode_info( _p ) \ 16202 _mbg_swab_ntp_misc_orphan_mode_settings( &(_p)->settings ); \ 16203 _mbg_swab32( &(_p)->supp_flags ); \ 16221 #define _mbg_swab_ntp_misc_leapfile_settings( _p ) \ 16224 _mbg_swab16( &(_p)->reserved_2 ); \ 16245 #define _mbg_swab_ntp_clnt_mode_settings( _p ) \ 16248 _mbg_swab32( &(_p)->reserved_1 ); \ 16249 _mbg_swab32( &(_p)->reserved_2 ); \ 16250 _mbg_swab32( &(_p)->flags ); \ 16277 #define _mbg_swab_ntp_clnt_mode_info( _p ) \ 16280 _mbg_swab_ntp_clnt_mode_settings( &(_p)->settings ); \ 16281 _mbg_swab32( &(_p)->reserved_1 ); \ 16282 _mbg_swab32( &(_p)->reserved_2 ); \ 16283 _mbg_swab32( &(_p)->supp_flags ); \ 16284 _mbg_swab32( &(_p)->supp_peer_flags ); \ 16325 #define _mbg_swab_ntp_peer_limits( _p ) \ 16328 _mbg_swab16( &(_p)->n_supp_peers ); \ 16329 _mbg_swab16( &(_p)->n_cur_peers ); \ 16330 _mbg_swab32( &(_p)->supp_assoc_types ); \ 16331 _mbg_swab32( &(_p)->reserved_3 ); \ 16332 _mbg_swab32( &(_p)->supp_flags_server ); \ 16333 _mbg_swab32( &(_p)->supp_flags_peer ); \ 16334 _mbg_swab32( &(_p)->supp_flags_pool ); \ 16335 _mbg_swab32( &(_p)->supp_flags_broadcast ); \ 16336 _mbg_swab32( &(_p)->supp_flags_multicast ); \ 16337 _mbg_swab32( &(_p)->supp_flags_manycast ); \ 16338 _mbg_swab32( &(_p)->supp_flags_broadcastclient ); \ 16339 _mbg_swab32( &(_p)->supp_flags_multicastclient ); \ 16340 _mbg_swab32( &(_p)->supp_flags_manycastclient ); \ 16341 _mbg_swab32( &(_p)->reserved_4 ); \ 16342 _mbg_swab32( &(_p)->reserved_5 ); \ 16343 _mbg_swab32( &(_p)->reserved_6 ); \ 16369 uint32_t reserved_3;
16377 #define _mbg_swab_ntp_peer_settings( _p ) \ 16380 _mbg_swab32( &(_p)->key ); \ 16381 _mbg_swab32( &(_p)->reserved_3 ); \ 16382 _mbg_swab32( &(_p)->reserved_4 ); \ 16383 _mbg_swab32( &(_p)->flags ); \ 16400 #define _mbg_swab_ntp_peer_settings_idx( _p ) \ 16403 _mbg_swab32( &(_p)->idx ); \ 16404 _mbg_swab_ntp_peer_settings( &(_p)->peer_settings ); \ 16425 #define _mbg_swab_ntp_srv_mode_settings( _p ) \ 16428 _mbg_swab32( &(_p)->flags ); \ 16451 #define _mbg_swab_ntp_srv_mode_info( _p ) \ 16454 _mbg_swab_ntp_srv_mode_settings( &(_p)->settings ); \ 16455 _mbg_swab32( &(_p)->supp_flags ); \ 16472 #define _mbg_swab_ntp_short_tstamp( _p ) \ 16475 _mbg_swab16( &(_p)->seconds ); \ 16476 _mbg_swab16( &(_p)->fractions ); \ 16491 #define _mbg_swab_ntp_tstamp( _p ) \ 16494 _mbg_swab32( &(_p)->seconds ); \ 16495 _mbg_swab32( &(_p)->fractions ); \ 16520 #define MBG_NTP_IMPL_STR_ENG "Implemetation Type:" 16522 #define MBG_NTP_IMPL_STR_ENG_UNKNOWN "Unknown NTP implementation" 16523 #define MBG_NTP_IMPL_STR_ENG_NTPD "Network Time Protocol daemon (ntpd)" 16524 #define MBG_NTP_IMPL_STR_ENG_NTPDATE "NTP client only (ntpdate)" 16525 #define MBG_NTP_IMPL_STR_ENG_SNTP "Simple Network Time Protocol (sntp)" 16526 #define MBG_NTP_IMPL_STR_ENG_W32TIME "Windows time service (w32time)" 16527 #define MBG_NTP_IMPL_STR_ENG_MBGNTP "Meinberg NTP implementation (mbgntp)" 16530 #define MBG_NTP_IMPL_NAMES_ENG \ 16532 MBG_NTP_IMPL_STR_ENG_UNKNOWN, \ 16533 MBG_NTP_IMPL_STR_ENG_NTPD, \ 16534 MBG_NTP_IMPL_STR_ENG_NTPDATE, \ 16535 MBG_NTP_IMPL_STR_ENG_SNTP, \ 16536 MBG_NTP_IMPL_STR_ENG_W32TIME, \ 16537 MBG_NTP_IMPL_STR_ENG_MBGNTP \ 16570 #define NTP_CPU_TYPES_STRS \ 16610 #define NTP_SYSTEMS_STRS \ 16643 #define MBG_NTP_LEAP_STR_ENG "Leapsecond indication:" 16645 #define MBG_NTP_LEAP_STR_ENG_NONE "None" 16646 #define MBG_NTP_LEAP_STR_ENG_ADD_SEC "Insert second" 16647 #define MBG_NTP_LEAP_STR_ENG_DEL_SEC "Delete second" 16648 #define MBG_NTP_LEAP_STR_ENG_ALARM "Alarm" 16650 #define MBG_NTP_LEAP_NAMES_ENG \ 16652 MBG_NTP_LEAP_STR_ENG_NONE, \ 16653 MBG_NTP_LEAP_STR_ENG_ADD_SEC, \ 16654 MBG_NTP_LEAP_STR_ENG_DEL_SEC, \ 16655 MBG_NTP_LEAP_STR_ENG_ALARM \ 16687 #define MBG_NTP_SYNC_SRC_STR_ENG_LABEL "Sync Source:" 16689 #define MBG_NTP_SYNC_SRC_STR_ENG_UNSPEC "Not yet synchronized" 16690 #define MBG_NTP_SYNC_SRC_STR_ENG_PPS "Pulse per second signal" 16691 #define MBG_NTP_SYNC_SRC_STR_ENG_LF_RADIO "VLF/LF radio" 16692 #define MBG_NTP_SYNC_SRC_STR_ENG_HF_RADIO "MF/HF radio" 16693 #define MBG_NTP_SYNC_SRC_STR_ENG_UHF_RADIO "VHF/UHF radio/satellite" 16694 #define MBG_NTP_SYNC_SRC_STR_ENG_LOCAL "local timecode" 16695 #define MBG_NTP_SYNC_SRC_STR_ENG_NTP "NTP" 16696 #define MBG_NTP_SYNC_SRC_STR_ENG_OTHER "other" 16697 #define MBG_NTP_SYNC_SRC_STR_ENG_WRISTWATCH "eyeball and wristwatch" 16698 #define MBG_NTP_SYNC_SRC_STR_ENG_TELEPHONE "telephone modem" 16700 #define MBG_NTP_SYNC_SRC_NAMES_ENG \ 16702 MBG_NTP_SYNC_SRC_STR_ENG_UNSPEC, \ 16703 MBG_NTP_SYNC_SRC_STR_ENG_PPS, \ 16704 MBG_NTP_SYNC_SRC_STR_ENG_LF_RADIO, \ 16705 MBG_NTP_SYNC_SRC_STR_ENG_HF_RADIO, \ 16706 MBG_NTP_SYNC_SRC_STR_ENG_UHF_RADIO, \ 16707 MBG_NTP_SYNC_SRC_STR_ENG_LOCAL, \ 16708 MBG_NTP_SYNC_SRC_STR_ENG_NTP, \ 16709 MBG_NTP_SYNC_SRC_STR_ENG_OTHER, \ 16710 MBG_NTP_SYNC_SRC_STR_ENG_WRISTWATCH, \ 16711 MBG_NTP_SYNC_SRC_STR_ENG_TELEPHONE \ 16749 #define MBG_NTP_SYS_EVT_STR_ENG_CNT_LABEL "System Event Counter:" 16750 #define MBG_NTP_SYS_EVT_STR_ENG_MSG_LABEL "System Event Message:" 16752 #define MBG_NTP_SYS_EVT_STR_ENG_UNSPEC "Unspecified NTP event" 16753 #define MBG_NTP_SYS_EVT_STR_ENG_FREQ_NOT_SET "Frequency file not available" 16754 #define MBG_NTP_SYS_EVT_STR_ENG_FREQ_SET "Frequency set from frequency file" 16755 #define MBG_NTP_SYS_EVT_STR_ENG_SPIKE_DETECT "Spike detected" 16756 #define MBG_NTP_SYS_EVT_STR_ENG_FREQ_MODE "Initial frequency training mode" 16757 #define MBG_NTP_SYS_EVT_STR_ENG_CLOCK_SYNC "Clock synchronized" 16758 #define MBG_NTP_SYS_EVT_STR_ENG_RESTART "Program restart" 16759 #define MBG_NTP_SYS_EVT_STR_ENG_PANIC_STOP "Clock error more than 600 s" 16760 #define MBG_NTP_SYS_EVT_STR_ENG_NO_SYSTEM_PEER "No system peer" 16761 #define MBG_NTP_SYS_EVT_STR_ENG_LEAP_ARMED "Leap second armed from file or autokey" 16762 #define MBG_NTP_SYS_EVT_STR_ENG_LEAP_DISARMED "Leap second disarmed" 16763 #define MBG_NTP_SYS_EVT_STR_ENG_LEAP_EVENT "Leap event" 16764 #define MBG_NTP_SYS_EVT_STR_ENG_CLOCK_STEP "Clock stepped" 16765 #define MBG_NTP_SYS_EVT_STR_ENG_KERNEL "Kernel information message" 16766 #define MBG_NTP_SYS_EVT_STR_ENG_TAI "Leap second values update from file" 16767 #define MBG_NTP_SYS_EVT_STR_ENG_STALE_LS_VALUES "New NIST leapseconds file needed" 16770 #define MBG_NTP_SYS_EVT_NAMES_ENG \ 16772 MBG_NTP_SYS_EVT_STR_ENG_UNSPEC, \ 16773 MBG_NTP_SYS_EVT_STR_ENG_FREQ_NOT_SET, \ 16774 MBG_NTP_SYS_EVT_STR_ENG_FREQ_SET, \ 16775 MBG_NTP_SYS_EVT_STR_ENG_SPIKE_DETECT, \ 16776 MBG_NTP_SYS_EVT_STR_ENG_FREQ_MODE, \ 16777 MBG_NTP_SYS_EVT_STR_ENG_CLOCK_SYNC, \ 16778 MBG_NTP_SYS_EVT_STR_ENG_RESTART, \ 16779 MBG_NTP_SYS_EVT_STR_ENG_PANIC_STOP, \ 16780 MBG_NTP_SYS_EVT_STR_ENG_NO_SYSTEM_PEER, \ 16781 MBG_NTP_SYS_EVT_STR_ENG_LEAP_ARMED, \ 16782 MBG_NTP_SYS_EVT_STR_ENG_LEAP_DISARMED, \ 16783 MBG_NTP_SYS_EVT_STR_ENG_LEAP_EVENT, \ 16784 MBG_NTP_SYS_EVT_STR_ENG_CLOCK_STEP, \ 16785 MBG_NTP_SYS_EVT_STR_ENG_KERNEL, \ 16786 MBG_NTP_SYS_EVT_STR_ENG_TAI, \ 16787 MBG_NTP_SYS_EVT_STR_ENG_STALE_LS_VALUES \ 16854 #define MBG_NTP_SERVICE_INIT_STR "NTP service initializing" 16855 #define MBG_NTP_SERVICE_SYNC_STR "NTP service synchronized" 16856 #define MBG_NTP_SERVICE_ASYNC_STR "NTP service not synchronized" 16857 #define MBG_NTP_SERVICE_STOPPED_STR "NTP service stopped" 16859 #define MBG_NTP_SERVICE_STATES_STRS \ 16861 MBG_NTP_SERVICE_INIT_STR, \ 16862 MBG_NTP_SERVICE_SYNC_STR, \ 16863 MBG_NTP_SERVICE_ASYNC_STR, \ 16864 MBG_NTP_SERVICE_STOPPED_STR \ 16921 #define _mbg_swab_ntp_sys_state( _p ) \ 16924 _mbg_swab32( &(_p)->supp_flags ); \ 16926 _mbg_swab8( &(_p)->leap_ind ); \ 16927 _mbg_swab8( &(_p)->sys_sync_src ); \ 16928 _mbg_swab8( &(_p)->sys_evt_cnt ); \ 16929 _mbg_swab8( &(_p)->sys_rec_evt ); \ 16931 _mbg_swab8( &(_p)->impl_type ); \ 16932 _mbg_swab8( &(_p)->major_version ); \ 16933 _mbg_swab8( &(_p)->minor_version ); \ 16934 _mbg_swab8( &(_p)->micro_version ); \ 16936 _mbg_swab16( &(_p)->patch_lvl ); \ 16937 _mbg_swab8( &(_p)->cpu_type ); \ 16938 _mbg_swab8( &(_p)->system ); \ 16940 _mbg_swab8( &(_p)->stratum ); \ 16941 _mbg_swab8( &(_p)->precision ); \ 16942 _mbg_swab16( &(_p)->sys_assoc ); \ 16944 _mbg_swab32( &(_p)->root_delay ); \ 16945 _mbg_swab32( &(_p)->root_disp ); \ 16947 _mbg_swab_ip_addr( &(_p)->ref_id ); \ 16949 _mbg_swab_ntp_tstamp( &(_p)->ref_time ); \ 16950 _mbg_swab_ntp_tstamp( &(_p)->sys_time ); \ 16952 _mbg_swab16( &(_p)->sys_peer ); \ 16953 _mbg_swab8( &(_p)->poll ); \ 16954 _mbg_swab8( &(_p)->minpoll ); \ 16956 _mbg_swab64( &(_p)->offset ); \ 16958 _mbg_swab32( &(_p)->freq ); \ 16959 _mbg_swab32( &(_p)->sys_jitter ); \ 16960 _mbg_swab32( &(_p)->clk_jitter ); \ 16961 _mbg_swab32( &(_p)->clk_wander ); \ 16963 _mbg_swab32( &(_p)->reserved_2 ); \ 16964 _mbg_swab32( &(_p)->reserved_3 ); \ 16995 #define MBG_NTP_MODE_STR_ENG_HOST_LABEL "Host Mode:" 16996 #define MBG_NTP_MODE_STR_ENG_PEER_LABEL "Peer Mode:" 16998 #define MBG_NTP_PEER_MODE_STR_ENG_RESERVED "Reserved" 16999 #define MBG_NTP_PEER_MODE_STR_ENG_SYMM_ACT "Symm Act" 17000 #define MBG_NTP_PEER_MODE_STR_ENG_SYMM_PASS "Symm Pass" 17001 #define MBG_NTP_PEER_MODE_STR_ENG_CLIENT "Client" 17002 #define MBG_NTP_PEER_MODE_STR_ENG_SERVER "Server" 17003 #define MBG_NTP_PEER_MODE_STR_ENG_BROADCAST "Broadcast" 17004 #define MBG_NTP_PEER_MODE_STR_ENG_CONTROL "Control" 17005 #define MBG_NTP_PEER_MODE_STR_ENG_PRIVATE "Private" 17007 #define MBG_NTP_MODE_STAT_NAMES_ENG \ 17009 MBG_NTP_PEER_MODE_STR_ENG_RESERVED, \ 17010 MBG_NTP_PEER_MODE_STR_ENG_SYMM_ACT, \ 17011 MBG_NTP_PEER_MODE_STR_ENG_SYMM_PASS, \ 17012 MBG_NTP_PEER_MODE_STR_ENG_CLIENT, \ 17013 MBG_NTP_PEER_MODE_STR_ENG_SERVER, \ 17014 MBG_NTP_PEER_MODE_STR_ENG_BROADCAST, \ 17015 MBG_NTP_PEER_MODE_STR_ENG_CONTROL, \ 17016 MBG_NTP_PEER_MODE_STR_ENG_PRIVATE \ 17045 #define MBG_NTP_PEER_REACH_STAT_STR_ENG_LABEL "Reach State:" 17047 #define MBG_NTP_PEER_REACH_STAT_STR_ENG_UNKNOWN "Unknown" 17048 #define MBG_NTP_PEER_REACH_STAT_STR_ENG_NO_LINK "No link" 17049 #define MBG_NTP_PEER_REACH_STAT_STR_ENG_DNS_UNREACH "DNS Server unreached" 17050 #define MBG_NTP_PEER_REACH_STAT_STR_ENG_DNS_UNRESOLVED "DNS name not resolved" 17051 #define MBG_NTP_PEER_REACH_STAT_STR_ENG_PEER_UNREACH "Peer not reached" 17052 #define MBG_NTP_PEER_REACH_STAT_STR_ENG_PEER_NOT_SYNC "Peer not sync" 17053 #define MBG_NTP_PEER_REACH_STAT_STR_ENG_PEER_BAD_QUALITY "Peer has bad quality" 17054 #define MBG_NTP_PEER_REACH_STAT_STR_ENG_OK "Good" 17056 #define MBG_NTP_PEER_REACH_STAT_NAMES_ENG \ 17058 MBG_NTP_PEER_REACH_STAT_STR_ENG_UNKNOWN, \ 17059 MBG_NTP_PEER_REACH_STAT_STR_ENG_NO_LINK, \ 17060 MBG_NTP_PEER_REACH_STAT_STR_ENG_DNS_UNREACH, \ 17061 MBG_NTP_PEER_REACH_STAT_STR_ENG_DNS_UNRESOLVED, \ 17062 MBG_NTP_PEER_REACH_STAT_STR_ENG_PEER_UNREACH, \ 17063 MBG_NTP_PEER_REACH_STAT_STR_ENG_PEER_NOT_SYNC, \ 17064 MBG_NTP_PEER_REACH_STAT_STR_ENG_PEER_BAD_QUALITY, \ 17065 MBG_NTP_PEER_REACH_STAT_STR_ENG_OK \ 17095 #define MBG_NTP_PEER_SEL_STATUS_STR_ENG_LABEL "Selected Status:" 17097 #define MBG_NTP_PEER_SEL_STATUS_STR_ENG_REJECT "Not valid" 17098 #define MBG_NTP_PEER_SEL_STATUS_STR_ENG_FALSETICK "Falsetick" 17099 #define MBG_NTP_PEER_SEL_STATUS_STR_ENG_EXCESS "Excess" 17100 #define MBG_NTP_PEER_SEL_STATUS_STR_ENG_OUTLYER "Outlyer" 17101 #define MBG_NTP_PEER_SEL_STATUS_STR_ENG_CANDIDATE "Candidate" 17102 #define MBG_NTP_PEER_SEL_STATUS_STR_ENG_BACKUP "Backup" 17103 #define MBG_NTP_PEER_SEL_STATUS_STR_ENG_SYS_PEER "System Peer" 17104 #define MBG_NTP_PEER_SEL_STATUS_STR_ENG_PPS_PEER "PPS Peer" 17106 #define MBG_NTP_PEER_SEL_STATUS_NAMES_ENG \ 17108 MBG_NTP_PEER_SEL_STATUS_STR_ENG_REJECT, \ 17109 MBG_NTP_PEER_SEL_STATUS_STR_ENG_FALSETICK, \ 17110 MBG_NTP_PEER_SEL_STATUS_STR_ENG_EXCESS, \ 17111 MBG_NTP_PEER_SEL_STATUS_STR_ENG_OUTLYER, \ 17112 MBG_NTP_PEER_SEL_STATUS_STR_ENG_CANDIDATE, \ 17113 MBG_NTP_PEER_SEL_STATUS_STR_ENG_BACKUP, \ 17114 MBG_NTP_PEER_SEL_STATUS_STR_ENG_SYS_PEER, \ 17115 MBG_NTP_PEER_SEL_STATUS_STR_ENG_PPS_PEER \ 17158 #define MBG_NTP_PEER_STATUS_STR_ENG_LABEL "Peer Status:" 17160 #define MBG_NTP_PEER_STATUS_STR_ENG_BCST "Broadcast association" 17161 #define MBG_NTP_PEER_STATUS_STR_ENG_REACH "Host reachable" 17162 #define MBG_NTP_PEER_STATUS_STR_ENG_AUTHENB "Authentication enabled" 17163 #define MBG_NTP_PEER_STATUS_STR_ENG_CONFIG "Persistant assosiation" 17165 #define MBG_NTP_PEER_STATUS_NAMES_ENG \ 17167 MBG_NTP_PEER_STATUS_STR_ENG_BCST, \ 17168 MBG_NTP_PEER_STATUS_STR_ENG_REACH, \ 17169 MBG_NTP_PEER_STATUS_STR_ENG_REACH, \ 17170 MBG_NTP_PEER_STATUS_STR_ENG_AUTHENB, \ 17171 MBG_NTP_PEER_STATUS_STR_ENG_CONFIG \ 17209 #define MBG_NTP_PEER_EVT_STR_ENG_CNT_LABEL "Peer Event Counter:" 17210 #define MBG_NTP_PEER_EVT_STR_ENG_MSG_LABEL "Peer Event Message:" 17212 #define MBG_NTP_PEER_EVT_STR_ENG_UNSPEC "Unspecified NTP event" 17213 #define MBG_NTP_PEER_EVT_STR_ENG_MOBILIZE "Association mobilized" 17214 #define MBG_NTP_PEER_EVT_STR_ENG_DEMOBILIZE "Association demobilized" 17215 #define MBG_NTP_PEER_EVT_STR_ENG_UNREACHABLE "Server unreachable" 17216 #define MBG_NTP_PEER_EVT_STR_ENG_REACHABLE "Server reachable" 17217 #define MBG_NTP_PEER_EVT_STR_ENG_RESTART "Association restart" 17218 #define MBG_NTP_PEER_EVT_STR_ENG_NO_REPLY "No server found" 17219 #define MBG_NTP_PEER_EVT_STR_ENG_RATE_EXCEEDED "Rate exceeded" 17220 #define MBG_NTP_PEER_EVT_STR_ENG_ACCESS_DENIED "Access denied" 17221 #define MBG_NTP_PEER_EVT_STR_ENG_LEAP_ARMED "Leap second armed from LI code" 17222 #define MBG_NTP_PEER_EVT_STR_ENG_SYS_PEER "Become system Peer" 17223 #define MBG_NTP_PEER_EVT_STR_ENG_CLOCK_EVENT "Clock event" 17224 #define MBG_NTP_PEER_EVT_STR_ENG_BAD_AUTH "Authentication failure" 17225 #define MBG_NTP_PEER_EVT_STR_ENG_POPCORN "Popcorn Spike suspressor" 17226 #define MBG_NTP_PEER_EVT_STR_ENG_INTERLEAVE_MODE "Entering Interleave mode" 17227 #define MBG_NTP_PEER_EVT_STR_ENG_INTERLEAVE_ERROR "Interleave error" 17230 #define MBG_NTP_PEER_EVT_NAMES_ENG \ 17232 MBG_NTP_PEER_EVT_STR_ENG_UNSPEC, \ 17233 MBG_NTP_PEER_EVT_STR_ENG_MOBILIZE, \ 17234 MBG_NTP_PEER_EVT_STR_ENG_DEMOBILIZE, \ 17235 MBG_NTP_PEER_EVT_STR_ENG_UNREACHABLE, \ 17236 MBG_NTP_PEER_EVT_STR_ENG_REACHABLE, \ 17237 MBG_NTP_PEER_EVT_STR_ENG_RESTART, \ 17238 MBG_NTP_PEER_EVT_STR_ENG_NO_REPLY, \ 17239 MBG_NTP_PEER_EVT_STR_ENG_RATE_EXCEEDED, \ 17240 MBG_NTP_PEER_EVT_STR_ENG_ACCESS_DENIED, \ 17241 MBG_NTP_PEER_EVT_STR_ENG_LEAP_ARMED, \ 17242 MBG_NTP_PEER_EVT_STR_ENG_SYS_PEER, \ 17243 MBG_NTP_PEER_EVT_STR_ENG_CLOCK_EVENT, \ 17244 MBG_NTP_PEER_EVT_STR_ENG_BAD_AUTH, \ 17245 MBG_NTP_PEER_EVT_STR_ENG_POPCORN, \ 17246 MBG_NTP_PEER_EVT_STR_ENG_INTERLEAVE_MODE, \ 17247 MBG_NTP_PEER_EVT_STR_ENG_INTERLEAVE_ERROR \ 17307 #define MBG_NTP_FLASH_STR_ENG_LABEL "Flash Status:" 17309 #define MBG_NTP_FLASH_STR_ENG_PKT_DUP "Duplicate packet" 17310 #define MBG_NTP_FLASH_STR_ENG_PKT_BOGUS "Bogus packet" 17311 #define MBG_NTP_FLASH_STR_ENG_PKT_UNSYNC "Server not synchronized" 17312 #define MBG_NTP_FLASH_STR_ENG_PKT_DENIED "Access denied" 17313 #define MBG_NTP_FLASH_STR_ENG_PKT_AUTH "Authentication failure" 17314 #define MBG_NTP_FLASH_STR_ENG_PKT_STRATUM "Invalid leap or stratum" 17315 #define MBG_NTP_FLASH_STR_ENG_PKT_HEADER "Header distance exceeded" 17316 #define MBG_NTP_FLASH_STR_ENG_PKT_AUTOKEY "Autokey sequence error" 17317 #define MBG_NTP_FLASH_STR_ENG_PKT_CRYPTO "Autokey protocol error" 17318 #define MBG_NTP_FLASH_STR_ENG_PEER_STRATUM "Invalid header or stratum" 17319 #define MBG_NTP_FLASH_STR_ENG_PEER_DIST "Distance threshold exceeded" 17320 #define MBG_NTP_FLASH_STR_ENG_PEER_LOOP "Synchronization loop" 17321 #define MBG_NTP_FLASH_STR_ENG_PEER_UNREACH "Unreachable or nonselect" 17324 #define MBG_NTP_FLASH_NAMES_ENG \ 17326 MBG_NTP_FLASH_STR_ENG_PKT_DUP, \ 17327 MBG_NTP_FLASH_STR_ENG_PKT_BOGUS, \ 17328 MBG_NTP_FLASH_STR_ENG_PKT_UNSYNC, \ 17329 MBG_NTP_FLASH_STR_ENG_PKT_DENIED, \ 17330 MBG_NTP_FLASH_STR_ENG_PKT_AUTH, \ 17331 MBG_NTP_FLASH_STR_ENG_PKT_STRATUM, \ 17332 MBG_NTP_FLASH_STR_ENG_PKT_HEADER, \ 17333 MBG_NTP_FLASH_STR_ENG_PKT_AUTOKEY, \ 17334 MBG_NTP_FLASH_STR_ENG_PKT_CRYPTO, \ 17335 MBG_NTP_FLASH_STR_ENG_PEER_STRATUM, \ 17336 MBG_NTP_FLASH_STR_ENG_PEER_DIST, \ 17337 MBG_NTP_FLASH_STR_ENG_PEER_LOOP, \ 17338 MBG_NTP_FLASH_STR_ENG_PEER_UNREACH \ 17465 #define _mbg_swab_ntp_peer_state( _p ) \ 17468 _mbg_swab32( &(_p)->supp_flags ); \ 17470 _mbg_swab16( &(_p)->ass_id ); \ 17471 _mbg_swab16( &(_p)->peer_status_flags ); \ 17473 _mbg_swab8( &(_p)->leap_ind ); \ 17474 _mbg_swab8( &(_p)->peer_sel_stat ); \ 17475 _mbg_swab8( &(_p)->peer_evt_cnt ); \ 17476 _mbg_swab8( &(_p)->peer_rec_evt ); \ 17478 _mbg_swab8( &(_p)->peer_reach_stat ); \ 17479 _mbg_swab8( &(_p)->reserved_1 ); \ 17480 _mbg_swab16( &(_p)->reserved_2 ); \ 17482 _mbg_swab_ip_addr_port( &(_p)->src_addr ); \ 17483 _mbg_swab_ip_addr_port( &(_p)->dst_addr ); \ 17485 _mbg_swab8( &(_p)->stratum ); \ 17486 _mbg_swab8( &(_p)->precision ); \ 17487 _mbg_swab16( &(_p)->reserved_3 ); \ 17489 _mbg_swab32( &(_p)->root_delay ); \ 17490 _mbg_swab32( &(_p)->root_disp ); \ 17492 _mbg_swab_ip_addr( &(_p)->ref_id ); \ 17494 _mbg_swab_ntp_tstamp( &(_p)->ref_time ); \ 17495 _mbg_swab_ntp_tstamp( &(_p)->rec_time ); \ 17497 _mbg_swab8( &(_p)->reach ); \ 17498 _mbg_swab8( &(_p)->reserved_4 ); \ 17499 _mbg_swab16( &(_p)->unreach ); \ 17501 _mbg_swab8( &(_p)->host_mode ); \ 17502 _mbg_swab8( &(_p)->peer_mode ); \ 17503 _mbg_swab8( &(_p)->host_poll ); \ 17504 _mbg_swab8( &(_p)->peer_poll ); \ 17506 _mbg_swab8( &(_p)->headway ); \ 17507 _mbg_swab8( &(_p)->reserved_5 ); \ 17508 _mbg_swab16( &(_p)->flash_stat_flags ); \ 17510 _mbg_swab16( &(_p)->key_id ); \ 17511 _mbg_swab16( &(_p)->reserved_6 ); \ 17513 _mbg_swab64( &(_p)->offset ); \ 17514 _mbg_swab64( &(_p)->delay ); \ 17516 _mbg_swab32( &(_p)->disp ); \ 17517 _mbg_swab32( &(_p)->jitter ); \ 17519 _mbg_swab32( &(_p)->xleave ); \ 17521 _mbg_swab8( &(_p)->n_filter_values ); \ 17522 _mbg_swab8( &(_p)->reserved_7 ); \ 17523 _mbg_swab16( &(_p)->reserved_8 ); \ 17525 _mbg_swab32( &(_p)->reserved_9 ); \ 17529 #define _mbg_swab_ntp_refclk_state ( _p ) _mbg_swab_ntp_peer_state( _p ) 17547 #define _mbg_swab_ntp_peer_state_idx( _p ) \ 17550 _mbg_swab32( &(_p)->idx ); \ 17551 _mbg_swab_ntp_peer_state( &(_p)->peer_state ); \ 17555 #define _mbg_swab_ntp_refclk_state_idx( _p ) _mbg_swab_ntp_peer_state_idx( _p ) 17567 #define MAX_LNO_OUTPUT 4 17585 #define _mbg_swab_lno_state( _p ) \ 17590 for ( i = 0; i < MAX_LNO_OUTPUT; i++ ) \ 17591 _mbg_swab16( &(_p)->sine_lvl[i] ); \ 17593 _mbg_swab_16( &(_p)->max_sine_lvl ); \ 17594 _mbg_swab_16( &(_p)->reserved_0 ); \ 17595 _mbg_swab_16( &(_p)->flags ); \ 17608 #define LNO_FLAG_PLL_LOCKED ( 1UL << LNO_FLAG_BIT_PLL_LOCKED ) 17648 #define _mbg_swab_vst_header( _p ) \ 17651 _mbg_swab16( &(_p)->data_type ); \ 17652 _mbg_swab16( &(_p)->idx ); \ 17653 _mbg_swab16( &(_p)->data_len ); \ 17654 _mbg_swab16( &(_p)->reserved ); \ 17707 #define _mbg_swab_shs_settings( _p ) \ 17710 _mbg_swab_nano_time( &(_p)->err_limit ); \ 17711 _mbg_swab_nano_time( &(_p)->warn_limit ); \ 17712 _mbg_swab32( &(_p)->reserved ); \ 17713 _mbg_swab32( &(_p)->flags ); \ 17733 #define _mbg_swab_shs_info( _p ) \ 17736 _mbg_swab_shs_settings( &(_p)->settings ); \ 17737 _mbg_swab_nano_time( &(_p)->max_limit ); \ 17738 _mbg_swab32( &(_p)->reserved ); \ 17739 _mbg_swab32( &(_p)->flags ); \ 17759 #define _mbg_swab_shs_status( _p ) \ 17762 _mbg_swab_nano_time( &(_p)->time_diff ); \ 17763 _mbg_swab32( &(_p)->clk_status_1 ); \ 17764 _mbg_swab32( &(_p)->clk_status_2 ); \ 17765 _mbg_swab16( &(_p)->reserved_2 ); \ 17766 _mbg_swab32( &(_p)->flags ); \ 17845 #define XBP_PORT_RESERVED ( (XBP_PORT) -1 ) 17853 #define MAX_XBP_CASC_LVL 7 17868 #define _mbg_swab_xbp_addr( _p ) _nop_macro_fnc() // only single bytes 17886 #define _mbg_swab_xbp_limits( _p ) \ 17889 _mbg_swab32( &(_p)->features ); \ 17890 _mbg_swab32( &(_p)->flags ); \ 17891 _mbg_swab32( &(_p)->reserved_0 ); \ 17892 _mbg_swab32( &(_p)->reserved_1 ); \ 17893 _mbg_swab32( &(_p)->reserved_2 ); \ 17894 _mbg_swab32( &(_p)->reserved_3 ); \ 17935 #define _mbg_swab_xbp_node_limits( _p ) \ 17938 _mbg_swab32( &(_p)->node_count ); \ 17939 _mbg_swab32( &(_p)->reserved_0 ); \ 17940 _mbg_swab32( &(_p)->reserved_1 ); \ 17980 #define XBP_SLOT_TYPE_STRS \ 17996 #define XBP_MAX_SLOT_NAME 5 18025 #define _mbg_swab_xbp_node_info( _p ) \ 18028 _mbg_swab_xbp_addr( &(_p)->addr ); \ 18029 _mbg_swab_receiver_info( &(_p)->ri ); \ 18030 _mbg_swab8( &(_p)->state ); \ 18031 _mbg_swab8( &(_p)->slot_type ); \ 18032 _mbg_swab8( &(_p)->slot_type_id ); \ 18033 _mbg_swab8( &(_p)->reserved ); \ 18034 _mbg_swab16( &(_p)->flags ); \ 18051 #define _mbg_swab_xbp_node_info_idx( _p ) \ 18054 _mbg_swab32( &(_p)->idx ); \ 18055 _mbg_swab_xbp_node_info( &(_p)->node_info ); \ 18077 #define _mbg_swab_tlv_uid( _p ) \ 18090 #define _mbg_swab_tlv_type( _p ) \ 18108 #define MAX_MBG_TLV_FEAT_TYPES 128 //### TODO Is this sufficient? 18190 #define MBG_TLV_FEAT_TYPE_NAMES \ 18192 "TLV Firmware Update", \ 18193 "TLV Diagnostics File", \ 18194 "TLV Firmware Rollback", \ 18195 "TLV File Transfer", \ 18196 "TLV Execute Command", \ 18197 "TLV License Upgrade", \ 18198 "TLV License Limits", \ 18199 "TLV License PTPV2", \ 18200 "TLV License NTP", \ 18201 "TLV File Request", \ 18202 "TLV License PTPV1 IDX", \ 18203 "TLV License Sync Monitor", \ 18204 "TLV Sync Monitor Full Status", \ 18205 "TLV Unified Firmware Update" \ 18216 #define MAX_MBG_TLV_FEAT_BYTES ( MAX_MBG_TLV_FEAT_TYPES / 8 ) 18249 #define _set_tlv_feat_bit( _tlv_feat_type, _tlv_feat_buffp ) \ 18250 _set_array_bit( _tlv_feat_type, (_tlv_feat_buffp)->supp_tlv_feat.b, MAX_MBG_TLV_FEAT_BYTES ) 18271 #define _mbg_swab_tlv_info( _p ) \ 18274 _mbg_swab32( &(_p)->reserved ); \ 18275 _mbg_swab32( &(_p)->flags ); \ 18316 #define _mbg_swab_tlv_data( _p ) \ 18319 _mbg_swab_tlv_uid( &(_p)->uid ); \ 18320 _mbg_swab_tlv_type( &(_p)->type ); \ 18321 _mbg_swab32( &(_p)->total_bytes ); \ 18322 _mbg_swab32( &(_p)->reserved_1 ); \ 18356 #define _mbg_swab_tlv_announce( _p ) \ 18359 _mbg_swab_tlv_data( &(_p)->data ); \ 18360 _mbg_swab32( &(_p)->reserved_1 ); \ 18361 _mbg_swab32( &(_p)->reserved_2 ); \ 18366 #define MSG_TLV_MAX_VALUE_SIZE 480 18378 uint32_t reserved_1;
18385 #define _mbg_swab_tlv_header( _p ) \ 18388 _mbg_swab_tlv_uid( &(_p)->uid ); \ 18389 _mbg_swab_tlv_type( &(_p)->tlv_type ); \ 18390 _mbg_swab32( &(_p)->cur_bytes ); \ 18391 _mbg_swab32( &(_p)->trans_bytes ); \ 18392 _mbg_swab32( &(_p)->total_bytes ); \ 18393 _mbg_swab32( &(_p)->reserved_1 ); \ 18394 _mbg_swab32( &(_p)->reserved_2 ); \ 18395 _mbg_swab32( &(_p)->reserved_3 ); \ 18410 #define _mbg_swab_tlv( _p ) \ 18413 _mbg_swab_tlv_header( &(_p)->hdr ); \ 18580 #define _mbg_swab_utc_parm( _p ) \ 18583 _mbg_swab_csum( &(_p)->csum ); \ 18584 _mbg_swab16( &(_p)->valid ); \ 18585 _mbg_swab_t_gps( &(_p)->t0t ); \ 18586 _mbg_swab_double( &(_p)->A0 ); \ 18587 _mbg_swab_double( &(_p)->A1 ); \ 18588 _mbg_swab16( &(_p)->WNlsf ); \ 18589 _mbg_swab16( &(_p)->DNt ); \ 18646 #define GPS_PLATFORM_STRS \ 18736 #define _mbg_swab_mbg_led_limits( _p ) \ 18739 _mbg_swab8( &(_p)->num_leds ); \ 18740 _mbg_swab8( &(_p)->reserved_0 ); \ 18741 _mbg_swab16( &(_p)->reserved_1 ); \ 18742 _mbg_swab32( &(_p)->reserved_2 ); \ 18790 #define MBG_LED_MODE_STRS \ 18844 #define MBG_LED_COLOR_STRS \ 18867 #define _mbg_swab_mbg_led_settings( _p ) \ 18870 _mbg_swab8( &(_p)->mode ); \ 18871 _mbg_swab8( &(_p)->color ); \ 18872 _mbg_swab16( &(_p)->reserved ); \ 18890 #define _mbg_swab_mbg_led_settings_idx( _p ) \ 18893 _mbg_swab16( &(_p)->idx ); \ 18894 _mbg_swab_mbg_led_settings( &(_p)->settings ); \ 18918 #define _mbg_swab_mbg_led_info( _p ) \ 18921 _mbg_swab_mbg_led_settings( &(_p)->settings ); \ 18922 _mbg_swab32( &(_p)->supp_modes ); \ 18923 _mbg_swab32( &(_p)->supp_colors ); \ 18924 _mbg_swab32( &(_p)->reserved ); \ 18925 _mbg_swab32( &(_p)->flags ); \ 18943 #define _mbg_swab_mbg_led_info_idx( _p ) \ 18946 _mbg_swab16( &(_p)->idx ); \ 18947 _mbg_swab_mbg_led_info( &(_p)->info ); \ 18985 #define _mbg_swab_mbg_lne_limits( _p ) \ 18988 _mbg_swab8( &(_p)->num_ports ); \ 18989 _mbg_swab8( &(_p)->reserved_0 ); \ 18990 _mbg_swab16( &(_p)->reserved_1 ); \ 18991 _mbg_swab32( &(_p)->features ); \ 18992 _mbg_swab32( &(_p)->reserved_2 ); \ 18997 #if 0 //### TODO //################# 19006 enum MBG_LNE_FEAT_BITS
19008 MBG_LNE_FEAT_BIT_SWITCH_PWR,
19009 N_MBG_LNE_FEAT_BITS
19021 enum MBG_LNE_FEAT_MASKS
19023 MBG_LNE_FEAT_MASK_SWITCH_PWR = ( 1
UL << MBG_LNE_FEAT_BIT_SWITCH_PWR )
19044 #define _mbg_swab_mbg_lne_port_settings( _p ) \ 19047 _mbg_swab32( &(_p)->reserved_0 ); \ 19048 _mbg_swab32( &(_p)->reserved_1 ); \ 19049 _mbg_swab32( &(_p)->reserved_2 ); \ 19050 _mbg_swab32( &(_p)->flags ); \ 19068 #define _mbg_swab_mbg_lne_port_settings_idx( _p ) \ 19071 _mbg_swab16( &(_p)->idx ); \ 19072 _mbg_swab_mbg_lne_port_settings( &(_p)->settings ); \ 19097 #define _mbg_swab_mbg_lne_port_info( _p ) \ 19100 _mbg_swab_mbg_lne_port_settings( &(_p)->settings ); \ 19101 _mbg_swab_mbg_mac_addr( &(_p)->mac_addr ); \ 19102 _mbg_swab32( &(_p)->reserved_0 ); \ 19103 _mbg_swab32( &(_p)->reserved_1 ); \ 19104 _mbg_swab32( &(_p)->reserved_2 ); \ 19105 _mbg_swab32( &(_p)->flags ); \ 19123 #define _mbg_swab_mbg_lne_port_info_idx( _p ) \ 19126 _mbg_swab16( &(_p)->idx ); \ 19127 _mbg_swab_mbg_lne_port_info( &(_p)->info ); \ 19200 #define _mbg_swab_mbg_pwr_ctl( _p ) \ 19203 _mbg_swab8( &(_p)->state ); \ 19204 _mbg_swab8( &(_p)->reserved_0 ); \ 19205 _mbg_swab16( &(_p)->reserved_1 ); \ 19274 #define MBG_EXT_SYS_INFO_PROC_STRS \ 19293 #define MBG_EXT_SYS_INFO_FPGA_STRS \ 19310 #define MBG_EXT_SYS_INFO_CORE_MOD_STRS \ 19313 "u-blox LEA-M8F", \ 19332 #define MBG_EXT_SYS_INFO_OS_SHORT_STRS \ 19343 #define MBG_EXT_SYS_INFO_OS_STRS \ 19354 #define MBG_EXT_SYS_INFO_CPU_MSK 0xff 19357 #define MBG_EXT_SYS_INFO_CPU_GEN_MSK 0xf 19360 #define MBG_EXT_SYS_INFO_CPU_VAR_MSK 0xf 19362 #define _mbg_ext_sys_info_get_cpu(var) (((var) >> 8) & MBG_EXT_SYS_INFO_CPU_MSK) 19363 #define _mbg_ext_sys_info_get_cpu_gen(var) (((var) >> 4) & MBG_EXT_SYS_INFO_CPU_GEN_MSK) 19364 #define _mbg_ext_sys_info_get_cpu_var(var) ((var) & MBG_EXT_SYS_INFO_CPU_VAR_MSK) 19374 #define MBG_EXT_SYS_INFO_CPU_STRS \ 19381 #define __CPU_CODEC(cpu, gen, var) \ 19382 (((cpu) & MBG_EXT_SYS_INFO_CPU_MSK) << 8) | \ 19383 (((gen) & MBG_EXT_SYS_INFO_CPU_GEN_MSK) << 4) | \ 19384 ((var) & MBG_EXT_SYS_INFO_CPU_VAR_MSK) 19390 #define HPS_USB_HOST_G1_V0 __CPU_CODEC(MBG_EXT_SYS_INFO_CPU_HPS_USB_HOST, 1, 0) 19396 #define HPS_USB_DEVICE_G1_V0 __CPU_CODEC(MBG_EXT_SYS_INFO_CPU_HPS_USB_DEVICE, 1, 0) 19402 #define HPS_USB_DEVICE_G1_V1 __CPU_CODEC(MBG_EXT_SYS_INFO_CPU_HPS_USB_DEVICE, 1, 1) 19443 #define _mbg_swab_ext_sys_info( _p ) \ 19446 _mbg_swab32( &(_p)->supp_members ); \ 19447 _mbg_swab32( &(_p)->sw_rev ); \ 19448 _mbg_swab32( &(_p)->hw_rev ); \ 19449 _mbg_swab32( &(_p)->os_rev ); \ 19450 _mbg_swab32( &(_p)->fpga_rev ); \ 19451 _mbg_swab16( &(_p)->proc_type ); \ 19452 _mbg_swab16( &(_p)->fpga_type ); \ 19453 _mbg_swab16( &(_p)->core_mod_type ); \ 19454 _mbg_swab16( &(_p)->os_type ); \ 19455 _mbg_swab16( &(_p)->reserved ); \ 19456 _mbg_swab32( &(_p)->core_mod_rev ); \ 19457 _mbg_swab32( &(_p)->ram_size ); \ 19458 _mbg_swab32( &(_p)->storage_size ); \ 19459 _mbg_swab16( &(_p)->os_target ); \ 19463 #define _mbg_encode_revision( _major, _minor, _patch ) \ 19464 ( ( (_major) << 24) | ( (_minor) << 16 ) | (_patch) ) 19467 #define _mbg_decode_revision( _rev, _major, _minor, _patch ) \ 19469 (_major) = ( (_rev) >> 24 ) & 0xff; \ 19470 (_minor) = ( (_rev) >> 16 ) & 0xff; \ 19471 (_patch) = (_rev) & 0xffff; \ 19486 #define MBG_MAX_LICENSES 32 19557 #define _mbg_swab_license_base( _p ) \ 19560 _mbg_swab32( &(_p)->supp_flags ); \ 19610 #define _mbg_swab_license_ptpv2( _p ) \ 19613 _mbg_swab_license_base( &(_p)->base ); \ 19614 _mbg_swab32( &(_p)->supp_members ); \ 19615 _mbg_swab16( &(_p)->max_uclients ); \ 19616 _mbg_swab32( &(_p)->max_mtrans ); \ 19627 #define _mbg_swab_license_ptpv2_idx( _p ) \ 19630 _mbg_swab_license_ptpv2( &(_p)->license ); \ 19631 _mbg_swab32( &(_p)->idx ); \ 19677 #define _mbg_swab_license_ntp( _p ) \ 19680 _mbg_swab_license_base( &(_p)->base ); \ 19681 _mbg_swab32( &(_p)->supp_members ); \ 19682 _mbg_swab32( &(_p)->max_rps ); \ 19694 #define _mbg_swab_license_ntp_idx( _p ) \ 19697 _mbg_swab_license_ntp( &(_p)->license ); \ 19698 _mbg_swab32( &(_p)->idx ); \ 19743 #define _mbg_swab_license_ptpv1( _p ) \ 19746 _mbg_swab_license_base( &(_p)->base ); \ 19747 _mbg_swab32( &(_p)->supp_members ); \ 19748 _mbg_swab32( &(_p)->max_rps ); \ 19759 #define _mbg_swab_license_ptpv1_idx( _p ) \ 19762 _mbg_swab_license_ptpv1( &(_p)->license ); \ 19763 _mbg_swab32( &(_p)->idx ); \ 19812 #define _mbg_swab_license_time_monitor( _p ) \ 19815 _mbg_swab_license_base( &(_p)->base ); \ 19816 _mbg_swab32( &(_p)->supp_members ); \ 19817 _mbg_swab16( &(_p)->max_ptpv2_clients ); \ 19818 _mbg_swab16( &(_p)->max_ntp_clients ); \ 19829 #define _mbg_swab_license_time_monitor_idx( _p ) \ 19832 _mbg_swab_license_time_monitor( &(_p)->license ); \ 19833 _mbg_swab32( &(_p)->idx ); \ 19870 #define _mbg_swab_mbg_clk_res_info( _p ) \ 19873 _mbg_swab32( &(_p)->base_clk ); \ 19874 _mbg_swab32( &(_p)->num_clk_phase ); \ 19875 _mbg_swab32( &(_p)->reserved_9 ); \ 19876 _mbg_swab32( &(_p)->reserved_8 ); \ 19877 _mbg_swab32( &(_p)->reserved_7 ); \ 19878 _mbg_swab32( &(_p)->reserved_6 ); \ 19879 _mbg_swab32( &(_p)->reserved_5 ); \ 19880 _mbg_swab32( &(_p)->reserved_4 ); \ 19881 _mbg_swab32( &(_p)->reserved_3 ); \ 19882 _mbg_swab32( &(_p)->reserved_2 ); \ 19883 _mbg_swab32( &(_p)->reserved_1 ); \ 19884 _mbg_swab32( &(_p)->reserved_0 ); \ 20032 #define MBG_TRANSACTION_MSK_SET 0x8000 20033 #define MBG_TRANSACTION_MSK_SUCCESS 0x4000 20035 #define _mbg_is_set_transaction( _type ) ( ( _type ) & MBG_TRANSACTION_MSK_SET ) 20036 #define _mbg_transaction_type_set( _type ) ( ( _type ) |= MBG_TRANSACTION_MSK_SET ) 20038 #define _mbg_transaction_success( _type ) ( ( _type ) & MBG_TRANSACTION_MSK_SUCCESS ) 20039 #define _mbg_transaction_set_success( _type ) ( ( _type ) |= MBG_TRANSACTION_MSK_SUCCESS ) 20081 #define MBG_IO_PORT_TYPE_NONE ( (uint16_t) -1 ) 20092 #define MBG_IO_PORT_TYPE_STRS \ 20135 #define MBG_IO_PORT_DIR_STRS \ 20192 #define MBG_IO_PORT_SRC_STRS \ 20195 "Locally generated", \ 20196 "Associated clock", \ 20200 "Any rate converter", \ 20271 #define MBG_IO_PORT_CONN_TYPE_VAR_POLS \ 20304 #define MBG_IO_PORT_CONN_TYPE_STRS \ 20359 #define MBG_IO_PORT_BG_COLOUR_STRS \ 20389 #define MBG_IO_PORT_SHAPE_LEVEL_STRS \ 20393 "Rectangle Pulse" \ 20430 uint32_t reserved_3[7];
20434 #define _mbg_swab_io_port_limits( _p ) \ 20437 _mbg_swab32( &(_p)->flags ); \ 20473 #define MBG_IO_PORT_OP_MODE_STRS \ 20476 "Always enabled", \ 20478 "Always after sync", \ 20528 #define MBG_IO_PORT_GRP_ROLE_STRS \ 20589 #define _mbg_swab_io_port_ant_info( _p ) \ 20592 _mbg_swab32( &(_p)->supp_members ); \ 20593 _mbg_swab_mbg_gnss_mode_info( &(_p)->gnss_info ); \ 20606 #define _mbg_swab_io_port_ant_settings( _p ) \ 20609 _mbg_swab_mbg_gnss_mode_settings( &(_p)->gnss_settings ); \ 20610 _mbg_swab_ant_cable_len( &(_p)->ant_cab_len ); \ 20611 _mbg_swab16( &(_p)->ignore_lock ); \ 20612 _mbg_swab16( &(_p)->tr_dist ); \ 20640 #define _mbg_swab_io_port_settings_u( _type, _p, _recv ) \ 20643 switch ( (_type) ) \ 20645 case MBG_IO_PORT_TYPE_GPIO: \ 20646 _mbg_swab_mbg_gpio_settings( &(_p)->gpio_settings, (_recv) ); \ 20649 case MBG_IO_PORT_TYPE_POUT: \ 20651 _mbg_swab_pout_settings_on_get( &(_p)->pout_settings ); \ 20652 else _mbg_swab_pout_settings_on_set( &(_p)->pout_settings ); \ 20655 case MBG_IO_PORT_TYPE_TIMECODE: \ 20656 _mbg_swab_irig_settings( &(_p)->irig_settings ); \ 20659 case MBG_IO_PORT_TYPE_ANTENNA: \ 20660 _mbg_swab_io_port_ant_settings( &(_p)->ant_settings ); \ 20663 case MBG_IO_PORT_TYPE_UART: \ 20664 _mbg_swab_port_settings( &(_p)->uart_settings ); \ 20672 #define MBG_IO_PORT_SETTINGS_MIN_SIZE 32 20697 uint32_t reserved_2[6];
20708 #define _mbg_swab_io_port_settings( _p, _recv ) \ 20711 uint16_t t = (_p)->port_type; \ 20713 _mbg_swab16( &t ); \ 20714 _mbg_swab16( &(_p)->port_type ); \ 20715 _mbg_swab_io_port_settings_u( t, &(_p)->data, (_recv) ); \ 20745 #define _mbg_swab_io_port_settings_idx( _p, _recv ) \ 20748 _mbg_swab32( &(_p)->idx ); \ 20749 _mbg_swab_io_port_settings( &(_p)->settings, (_recv) ); \ 20753 #define MBG_IO_PORT_SETTINGS_IDX_MIN_SIZE (MBG_IO_PORT_SETTINGS_MIN_SIZE + sizeof( uint32_t )) 20756 #define MBG_IO_PORT_SETTINGS_IDX_SIZES \ 20758 MBG_IO_PORT_SETTINGS_IDX_MIN_SIZE, \ 20759 MBG_IO_PORT_SETTINGS_IDX_MIN_SIZE, \ 20760 MBG_IO_PORT_SETTINGS_IDX_MIN_SIZE, \ 20761 MBG_IO_PORT_SETTINGS_IDX_MIN_SIZE + sizeof( MBG_GPIO_SETTINGS ), \ 20762 MBG_IO_PORT_SETTINGS_IDX_MIN_SIZE, \ 20763 MBG_IO_PORT_SETTINGS_IDX_MIN_SIZE, \ 20764 MBG_IO_PORT_SETTINGS_IDX_MIN_SIZE, \ 20765 MBG_IO_PORT_SETTINGS_IDX_MIN_SIZE + sizeof( POUT_SETTINGS ), \ 20766 MBG_IO_PORT_SETTINGS_IDX_MIN_SIZE, \ 20767 MBG_IO_PORT_SETTINGS_IDX_MIN_SIZE + sizeof( IRIG_SETTINGS ), \ 20768 MBG_IO_PORT_SETTINGS_IDX_MIN_SIZE, \ 20769 MBG_IO_PORT_SETTINGS_IDX_MIN_SIZE + sizeof( MBG_IO_PORT_ANT_SETTINGS ), \ 20770 MBG_IO_PORT_SETTINGS_IDX_MIN_SIZE + sizeof( PORT_SETTINGS ), \ 20771 MBG_IO_PORT_SETTINGS_IDX_MIN_SIZE, \ 20772 MBG_IO_PORT_SETTINGS_IDX_MIN_SIZE \ 20788 #define MBG_NO_PHYS_GROUP 0xFF 20789 #define MBG_NO_LOG_GROUP 0xFF 20790 #define MBG_IO_PORT_STR_SIZE 16 20820 uint32_t reserved_2[2];
20827 #define _mbg_port_has_phys_group( _p ) ( ( _p )->phys_grp != MBG_NO_PHYS_GROUP ) 20829 #define _mbg_swab_io_port_info( _p, _recv ) \ 20832 _mbg_swab16( &(_p)->supp_op_modes ); \ 20833 _mbg_swab16( &(_p)->supp_phys_grp_roles ); \ 20834 _mbg_swab32( &(_p)->pols ); \ 20835 _mbg_swab32( &(_p)->flags ); \ 20836 _mbg_swab_io_port_settings( &(_p)->settings, (_recv) ); \ 20841 #define MBG_IO_PORT_INFO_MIN_SIZE ( 60 + MBG_IO_PORT_SETTINGS_MIN_SIZE ) 20869 #define _mbg_swab_io_port_info_idx( _p, _recv ) \ 20872 _mbg_swab32( &(_p)->idx ); \ 20873 _mbg_swab_io_port_info( &(_p)->info, (_recv) ); \ 20878 #define MBG_IO_PORT_INFO_IDX_MIN_SIZE (MBG_IO_PORT_INFO_MIN_SIZE + sizeof( uint32_t )) 20881 #define MBG_IO_PORT_INFO_IDX_SIZES \ 20883 MBG_IO_PORT_INFO_IDX_MIN_SIZE, \ 20884 MBG_IO_PORT_INFO_IDX_MIN_SIZE, \ 20885 MBG_IO_PORT_INFO_IDX_MIN_SIZE, \ 20886 MBG_IO_PORT_INFO_IDX_MIN_SIZE + sizeof( MBG_GPIO_SETTINGS ), \ 20887 MBG_IO_PORT_INFO_IDX_MIN_SIZE, \ 20888 MBG_IO_PORT_INFO_IDX_MIN_SIZE, \ 20889 MBG_IO_PORT_INFO_IDX_MIN_SIZE, \ 20890 MBG_IO_PORT_INFO_IDX_MIN_SIZE + sizeof( POUT_SETTINGS ), \ 20891 MBG_IO_PORT_INFO_IDX_MIN_SIZE, \ 20892 MBG_IO_PORT_INFO_IDX_MIN_SIZE + sizeof( IRIG_SETTINGS ), \ 20893 MBG_IO_PORT_INFO_IDX_MIN_SIZE, \ 20894 MBG_IO_PORT_INFO_IDX_MIN_SIZE + sizeof( MBG_IO_PORT_ANT_SETTINGS ), \ 20895 MBG_IO_PORT_INFO_IDX_MIN_SIZE + sizeof( PORT_SETTINGS ), \ 20896 MBG_IO_PORT_INFO_IDX_MIN_SIZE, \ 20897 MBG_IO_PORT_INFO_IDX_MIN_SIZE \ 20926 #define _mbg_swab_io_port_type_info_u( _type, _p, _recv ) \ 20929 switch ( (_type) ) \ 20931 case MBG_IO_PORT_TYPE_GPIO: \ 20932 _mbg_swab_mbg_gpio_limits( &(_p)->gpio_limits, (_recv) ); \ 20935 case MBG_IO_PORT_TYPE_POUT: \ 20936 _mbg_swab_pout_info_on_get( &(_p)->pout_info ); \ 20939 case MBG_IO_PORT_TYPE_TIMECODE: \ 20940 _mbg_swab_irig_info( &(_p)->irig_info ); \ 20943 case MBG_IO_PORT_TYPE_ANTENNA: \ 20944 _mbg_swab_io_port_ant_info( &(_p)->ant_info ); \ 20947 case MBG_IO_PORT_TYPE_UART: \ 20948 _mbg_swab_port_info( &(_p)->uart_info ); \ 20957 #define MBG_IO_PORT_TYPE_INFO_MIN_SIZE 32 20983 uint32_t reserved_3[5];
20994 #define _mbg_swab_io_port_type_info( _p, _recv ) \ 20997 uint16_t t = (_p)->port_type; \ 20999 _mbg_swab16( &t ); \ 21000 _mbg_swab16( &(_p)->port_type ); \ 21001 _mbg_swab_io_port_type_info_u( t, &(_p)->data, (_recv) ); \ 21002 _mbg_swab32( &(_p)->supp_srcs ); \ 21006 #define MBG_IO_PORT_TYPE_INFO_IDX_MIN_SIZE (MBG_IO_PORT_TYPE_INFO_MIN_SIZE + 2 * sizeof( uint32_t )) 21009 #define MBG_IO_PORT_TYPE_INFO_IDX_SIZES \ 21011 MBG_IO_PORT_TYPE_INFO_IDX_MIN_SIZE, \ 21012 MBG_IO_PORT_TYPE_INFO_IDX_MIN_SIZE, \ 21013 MBG_IO_PORT_TYPE_INFO_IDX_MIN_SIZE, \ 21014 MBG_IO_PORT_TYPE_INFO_IDX_MIN_SIZE + sizeof( MBG_GPIO_LIMITS ), \ 21015 MBG_IO_PORT_TYPE_INFO_IDX_MIN_SIZE, \ 21016 MBG_IO_PORT_TYPE_INFO_IDX_MIN_SIZE, \ 21017 MBG_IO_PORT_TYPE_INFO_IDX_MIN_SIZE, \ 21018 MBG_IO_PORT_TYPE_INFO_IDX_MIN_SIZE + sizeof( POUT_INFO ), \ 21019 MBG_IO_PORT_TYPE_INFO_IDX_MIN_SIZE, \ 21020 MBG_IO_PORT_TYPE_INFO_IDX_MIN_SIZE + sizeof( IRIG_INFO ), \ 21021 MBG_IO_PORT_TYPE_INFO_IDX_MIN_SIZE, \ 21022 MBG_IO_PORT_TYPE_INFO_IDX_MIN_SIZE + sizeof( MBG_IO_PORT_ANT_INFO ), \ 21023 MBG_IO_PORT_TYPE_INFO_IDX_MIN_SIZE + sizeof( PORT_INFO ), \ 21024 MBG_IO_PORT_TYPE_INFO_IDX_MIN_SIZE, \ 21025 MBG_IO_PORT_TYPE_INFO_IDX_MIN_SIZE \ 21054 #define _mbg_swab_io_port_type_info_idx( _p, _recv ) \ 21057 _mbg_swab32( &(_p)->port_idx ); \ 21058 _mbg_swab32( &(_p)->port_type_idx ); \ 21059 _mbg_swab_io_port_type_info( &(_p)->info, (_recv) ); \ 21064 #define MAX_IO_PORT_STATUS_BITS 64 21095 #define MBG_IO_PORT_STATUS_STRS \ 21098 "Carrier detected", \ 21099 "Input signal has never been avail", \ 21100 "Input signal is avail", \ 21101 "Input signal is currently lost", \ 21116 #define MAX_IO_PORT_STATUS_BYTES ( MAX_IO_PORT_STATUS_BITS / 8 ) 21138 #define _mbg_swab_io_port_status_buffer( _p ) \ 21152 #define _set_io_port_status_bit( _status_bit, _status_buffp ) \ 21153 _set_array_bit( _status_bit, (_status_buffp)->b, MAX_IO_PORT_STATUS_BYTES ) 21165 #define _clear_io_port_status_bit( _status_bit, _status_buffp ) \ 21166 _clear_array_bit( _status_bit, (_status_buffp)->b, MAX_IO_PORT_STATUS_BYTES ) 21193 uint32_t reserved_2[4];
21197 #define _mbg_port_has_log_group( _p ) ( ( _p )->log_grp != MBG_NO_LOG_GROUP ) 21199 #define _mbg_swab_io_port_status( _p ) \ 21202 _mbg_swab_io_port_status_buffer( &(_p)->supp_stati ); \ 21203 _mbg_swab_io_port_status_buffer( &(_p)->status ); \ 21232 #define _mbg_swab_io_port_status_idx( _p ) \ 21235 _mbg_swab32( &(_p)->idx ); \ 21236 _mbg_swab_io_port_status( &(_p)->status ); \ 21255 #define MBG_MONITORING_STR_SIZE 32 21265 #define MBG_MONITORING_TYPE_STRS \ 21285 uint32_t reserved_2[3];
21289 #define _mbg_swab_monitoring_limits( _p ) \ 21292 _mbg_swab16( &(_p)->supp_types ); \ 21293 _mbg_swab16( &(_p)->supp_num_events ); \ 21308 #define MBG_SNMP_VERSION_STRS \ 21331 #define MBG_SNMP_FLAG_STRS \ 21334 "Additional config" \ 21345 #define SNMP_DEF_ADD_CONF_PATH "/etc/mbg" 21346 #define SNMP_DEF_ADD_CONF_FILENAME "snmp.conf.add" 21347 #define SNMP_DEF_ADD_CONF_FILE SNMP_DEF_ADD_CONF_PATH "/" SNMP_DEF_ADD_CONF_FILENAME 21359 uint32_t reserved_2[3];
21369 #define _mbg_swab_snmp_glb_settings( _p ) \ 21372 _mbg_swab16( &(_p)->listening_port ); \ 21387 uint32_t reserved_2[2];
21392 #define _mbg_swab_snmp_glb_info( _p ) \ 21395 _mbg_swab_snmp_glb_settings( &(_p)->settings ); \ 21396 _mbg_swab16( &(_p)->supp_flags ); \ 21409 #define MBG_SNMP_ACCESS_TYPE_STRS \ 21422 uint32_t reserved_2[3];
21427 #define _mbg_swab_snmp_v12_settings( _p ) \ 21441 #define _mbg_swab_snmp_v12_settings_idx( _p ) \ 21444 _mbg_swab32( &(_p)->idx ); \ 21445 _mbg_swab_snmp_v12_settings( &(_p)->settings ); \ 21453 uint32_t reserved_1[4];
21457 #define _mbg_swab_snmp_v12_info( _p ) \ 21460 _mbg_swab_snmp_v12_settings( &(_p)->settings ); \ 21472 #define _mbg_swab_snmp_v12_info_idx( _p ) \ 21475 _mbg_swab32( &(_p)->idx ); \ 21476 _mbg_swab_snmp_v12_info( &(_p)->info ); \ 21486 uint32_t reserved_2[3];
21496 #define _mbg_swab_snmp_v12_trap_settings( _p ) \ 21499 _mbg_swab_snmp_v12_settings( &(_p)->v12_settings ); \ 21500 _mbg_swab16( &(_p)->dest_port ); \ 21512 #define _mbg_swab_snmp_v12_trap_settings_idx( _p ) \ 21515 _mbg_swab32( &(_p)->idx ); \ 21516 _mbg_swab_snmp_v12_trap_settings( &(_p)->settings ); \ 21524 uint32_t reserved_1[4];
21528 #define _mbg_swab_snmp_v12_trap_info( _p ) \ 21531 _mbg_swab_snmp_v12_trap_settings( &(_p)->settings ); \ 21543 #define _mbg_swab_snmp_v12_trap_info_idx( _p ) \ 21546 _mbg_swab32( &(_p)->idx ); \ 21547 _mbg_swab_snmp_v12_trap_info( &(_p)->info ); \ 21560 #define MBG_SNMP_V3_SEC_LEVEL_STRS \ 21562 "No auth no priv", \ 21576 #define MBG_SNMP_V3_AUTH_PROTOCOL_STRS \ 21593 #define MBG_SNMP_V3_PRIV_PROTOCOL_STRS \ 21612 uint32_t reserved_1[3];
21624 uint32_t reserved_4[2];
21628 #define _mbg_swab_snmp_v3_settings( _p ) \ 21631 _mbg_swab32( &(_p)->boots ); \ 21632 _mbg_swab32( &(_p)->time ); \ 21644 #define _mbg_swab_snmp_v3_settings_idx( _p ) \ 21647 _mbg_swab32( &(_p)->idx ); \ 21648 _mbg_swab_snmp_v3_settings( &(_p)->settings ); \ 21656 uint32_t reserved_1[4];
21660 #define _mbg_swab_snmp_v3_info( _p ) \ 21663 _mbg_swab_snmp_v3_settings( &(_p)->settings ); \ 21675 #define _mbg_swab_snmp_v3_info_idx( _p ) \ 21678 _mbg_swab32( &(_p)->idx ); \ 21679 _mbg_swab_snmp_v3_info( &(_p)->info ); \ 21689 uint32_t reserved_2[3];
21697 #define _mbg_swab_snmp_v3_trap_settings( _p ) \ 21700 _mbg_swab_snmp_v3_settings( &(_p)->v3_settings ); \ 21701 _mbg_swab16( &(_p)->dest_port ); \ 21713 #define _mbg_swab_snmp_v3_trap_settings_idx( _p ) \ 21716 _mbg_swab32( &(_p)->idx ); \ 21717 _mbg_swab_snmp_v3_trap_settings( &(_p)->settings ); \ 21725 uint32_t reserved_1[4];
21729 #define _mbg_swab_snmp_v3_trap_info( _p ) \ 21732 _mbg_swab_snmp_v3_trap_settings( &(_p)->settings ); \ 21744 #define _mbg_swab_snmp_v3_trap_info_idx( _p ) \ 21747 _mbg_swab32( &(_p)->idx ); \ 21748 _mbg_swab_snmp_v3_trap_info( &(_p)->info ); \ 21761 #define MBG_EVENT_TYPE_STRS \ 21779 #define MBG_EVENT_SEVERITY_STRS \ 21794 uint32_t reserved_3[6];
21798 #define _mbg_swab_event_settings( _p ) \ 21801 _mbg_swab16( &(_p)->triggers ); \ 21802 _mbg_swab16( &(_p)->interval ); \ 21819 #define _mbg_swab_event_settings_idx( _p ) \ 21822 _mbg_swab32( &(_p)->idx ); \ 21823 _mbg_swab_event_settings( &(_p)->settings ); \ 21863 #define MBG_OWN_EVENT_CHASSIS 0xFF 21864 #define MBG_OWN_EVENT_SLOT_TYPE 0xFF 21865 #define MBG_OWN_EVENT_SLOT_TYPE_ID 0xFF 21866 #define MBG_INV_EVENT_PORT 0xFF 21888 uint32_t reserved_3[6];
21892 #define _mbg_swab_event_info( _p ) \ 21895 _mbg_swab_event_settings( &(_p)->settings ); \ 21896 _mbg_swab16( &(_p)->type ); \ 21897 _mbg_swab16( &(_p)->value_dict_entries ); \ 21898 _mbg_swab16( &(_p)->supp_flags ); \ 21899 _mbg_swab16( &(_p)->supp_triggers ); \ 21900 _mbg_swab16( &(_p)->flags ); \ 21922 #define _mbg_swab_event_info_idx( _p ) \ 21925 _mbg_swab32( &(_p)->idx ); \ 21926 _mbg_swab_event_info( &(_p)->info ); \ 21944 #define MBG_EVENT_VALUE_TYPE_STRS \ 21951 "Unsigned range", \ 21968 #define _mbg_swab_event_value_selection( _p ) \ 21971 _mbg_swab32( &(_p)->value ); \ 21983 #define _mbg_swab_event_value_irange( _p ) \ 21986 _mbg_swab32( &(_p)->min ); \ 21987 _mbg_swab32( &(_p)->max ); \ 21999 #define _mbg_swab_event_value_urange( _p ) \ 22002 _mbg_swab32( &(_p)->min ); \ 22003 _mbg_swab32( &(_p)->max ); \ 22019 #define _mbg_swab_event_value( _p, _type ) \ 22022 switch ( (_type) ) \ 22024 case MBG_EVENT_VALUE_TYPE_SELECTION: \ 22025 _mbg_swab_event_value_selection( &(_p)->selection ); \ 22028 case MBG_EVENT_VALUE_TYPE_IRANGE: \ 22029 _mbg_swab_event_value_irange( &(_p)->irange ); \ 22032 case MBG_EVENT_VALUE_TYPE_URANGE: \ 22033 _mbg_swab_event_value_urange( &(_p)->urange ); \ 22050 #define _mbg_swab_event_value_idx( _p, _type ) \ 22053 _mbg_swab32( &(_p)->idx ); \ 22054 _mbg_swab_event_value( &(_p)->value, (_type) ); \ 22065 uint32_t reserved_1[3];
22078 #define _mbg_swab_event_status( _p, _type ) \ 22081 _mbg_swab32( &(_p)->last_changed ); \ 22082 switch ( (_type) ) \ 22084 case MBG_EVENT_VALUE_TYPE_INTEGER32: \ 22085 _mbg_swab32( &(_p)->u.i32 ); \ 22088 case MBG_EVENT_VALUE_TYPE_UNSIGNED32: \ 22089 _mbg_swab32( &(_p)->u.u32 ); \ 22106 #define _mbg_swab_event_status_idx( _p, _type ) \ 22109 _mbg_swab32( &(_p)->idx ); \ 22110 _mbg_swab_event_status( &(_p)->status, (_type) ); \ 22135 #define MBG_SYSLOG_PROTOCOL_STRS \ 22153 uint32_t reserved_2[3];
22157 #define _mbg_swab_syslog_glb_settings( _p ) \ 22172 uint32_t reserved_2[5];
22176 #define _mbg_swab_syslog_glb_info( _p ) \ 22179 _mbg_swab_syslog_glb_settings( &(_p)->settings ); \ 22180 _mbg_swab32( &(_p)->supp_flags ); \ 22181 _mbg_swab32( &(_p)->supp_protocols ); \ 22192 uint32_t reserved_3[6];
22196 #define _mbg_swab_syslog_settings( _p ) \ 22199 _mbg_swab16( &(_p)->port ); \ 22200 _mbg_swab32( &(_p)->flags ); \ 22211 #define _mbg_swab_syslog_settings_idx( _p ) \ 22214 _mbg_swab_syslog_settings( &(_p)->settings ); \ 22215 _mbg_swab32( &(_p)->idx ); \ 22222 uint32_t reserved[8];
22226 #define _mbg_swab_syslog_info( _p ) \ 22229 _mbg_swab_syslog_settings( &(_p)->settings ); \ 22240 #define _mbg_swab_syslog_info_idx( _p ) \ 22243 _mbg_swab_syslog_info( &(_p)->info ); \ 22244 _mbg_swab32( &(_p)->idx ); \ 22266 #define MBG_TAINTED_CFG_BYTES 256 22267 #define MBG_TAINTED_CFG_FLAG_BYTES (MBG_TAINTED_CFG_BYTES >> 3) 22308 uint32_t reserved[4];
22312 #define _mbg_swab_tainted_cfg( _p ) do {} while ( 0 ) 22314 #define _mbg_tainted_cfg_increase(c, cfg) \ 22317 if ( ( c >= MBG_TAINTED_CFG_BYTES ) || ( c >= N_MBG_TAINTED_CFGS ) ) \ 22320 ++(cfg)->tainted_cfgs[ c ]; \ 22333 #define _set_supp_tainted_cfg_bit( _cfg_bit, _tainted_cfg ) \ 22334 _set_array_bit( _cfg_bit, (_tainted_cfg)->supp_cfgs, MBG_TAINTED_CFG_FLAG_BYTES ) 22345 #define _clear_supp_tainted_cfg_bit( _cfg_bit, _tainted_cfg ) \ 22346 _clear_array_bit( _cfg_bit, (_tainted_cfg)->supp_cfgs, MBG_TAINTED_CFG_FLAG_BYTES ) 22354 #define _check_supp_tainted_cfg_bit( _cfg_bit, _tainted_cfg ) \ 22355 check_feat_supp_byte_array( _cfg_bit, (_tainted_cfg)->supp_cfgs, MBG_TAINTED_CFG_FLAG_BYTES ) 22541 #define MBG_USER_PERM_STRS \ 22581 #define MAX_USER_PERM_BYTES 64 22582 #define MAX_USER_PERM_BITS MAX_USER_PERM_BYTES * 8 22597 #define MAX_USER_CHANNEL_BYTES 16 22598 #define MAX_USER_CHANNEL_BITS MAX_USER_CHANNEL_BYTES * 8 22606 #define MBG_USER_CHANNEL_STRS \ 22609 "Device Manager", \ 22640 #define _set_user_perm( _user_perm_bit, _user_perm_buffp ) \ 22641 _set_array_bit( _user_perm_bit, (_user_perm_buffp)->b, MAX_USER_PERM_BYTES ) 22650 #define _clear_user_perm( _user_perm_bit, _user_perm_buffp ) \ 22651 _clear_array_bit( _user_perm_bit, (_user_perm_buffp)->b, MAX_USER_PERM_BYTES ) 22660 #define _check_user_perm( _user_perm_bit, _user_perm_buffp ) \ 22661 check_feat_supp_byte_array( _user_perm_bit, (_user_perm_buffp)->b, MAX_USER_PERM_BYTES ) 22686 #define _set_user_channel( _user_channel_bit, _user_channel_buffp ) \ 22687 _set_array_bit( _user_channel_bit, (_user_channel_buffp)->b, MAX_USER_CHANNEL_BYTES ) 22696 #define _clear_user_channel( _user_channel_bit, _user_channel_buffp ) \ 22697 _clear_array_bit( _user_channel_bit, (_user_channel_buffp)->b, MAX_USER_CHANNEL_BYTES ) 22706 #define _check_user_channel( _user_channel_bit, _user_channel_buffp ) \ 22707 check_feat_supp_byte_array( _user_channel_bit, (_user_channel_buffp)->b, MAX_USER_CHANNEL_BYTES ) 22731 uint32_t reserved_1[2];
22735 uint32_t reserved_2[16];
22740 #define _mbg_swab_user_mngmnt_settings( _p ) \ 22743 _mbg_swab32( &(_p)->num_users ); \ 22744 _mbg_swab32( &(_p)->num_levels ); \ 22745 _mbg_swab32( &(_p)->flags ); \ 22762 uint32_t reserved[16];
22767 #define _mbg_swab_user_mngmnt_info( _p ) \ 22770 _mbg_swab_user_mngmnt_settings( &(_p)->settings ); \ 22771 _mbg_swab32( &(_p)->n_supp_users ); \ 22772 _mbg_swab32( &(_p)->n_supp_levels ); \ 22773 _mbg_swab32( &(_p)->supp_flags ); \ 22814 #define MBG_MAX_USER_NAME_LEN 32 22815 #define MBG_MAX_USER_PASSWORD_LEN 32 22838 uint32_t reserved[16];
22843 #define _mbg_swab_user_settings( _p ) \ 22846 _mbg_swab32( &(_p)->warn_days ); \ 22847 _mbg_swab32( &(_p)->exp_days ); \ 22848 _mbg_swab32( &(_p)->max_fails ); \ 22849 _mbg_swab32( &(_p)->flags ); \ 22861 #define _mbg_swab_user_settings_idx( _p ) \ 22864 _mbg_swab32( &(_p)->idx ); \ 22865 _mbg_swab_user_settings( &(_p)->settings ); \ 22883 uint32_t reserved_3[16];
22888 #define _mbg_swab_user_info( _p ) \ 22891 _mbg_swab_user_settings( &(_p)->settings ); \ 22892 _mbg_swab32( &(_p)->uid ); \ 22893 _mbg_swab32( &(_p)->gid ); \ 22894 _mbg_swab32( &(_p)->password_doc ); \ 22895 _mbg_swab32( &(_p)->supp_flags ); \ 22907 #define _mbg_swab_user_info_idx( _p ) \ 22910 _mbg_swab32( &(_p)->idx ); \ 22911 _mbg_swab_user_info( &(_p)->info ); \ 22946 uint32_t reserved[16];
22951 #define _mbg_swab_user_status( _p ) \ 22954 _mbg_swab32( &(_p)->flags ); \ 22955 _mbg_swab32( &(_p)->login_cnt ); \ 22956 _mbg_swab32( &(_p)->num_fails ); \ 22968 #define _mbg_swab_user_status_idx( _p ) \ 22971 _mbg_swab32( &(_p)->idx ); \ 22972 _mbg_swab_user_status( &(_p)->status ); \ 22999 #define MBG_SERVICE_TYPE_STRS \ 23018 uint32_t reserved_2[3];
23023 #define _mbg_swab_svc_mgmt_info( _p ) do {} while ( 0 ) 23026 #define MBG_SVC_NAME_LEN 32 23027 #define MBG_SVC_CMD_LEN 192 23040 #define MBG_SERVICE_STATE_STRS \ 23063 uint32_t reserved_2[3];
23068 #define _mbg_swab_svc_settings( _p ) do {} while ( 0 ) 23079 #define _mbg_swab_svc_settings_idx( _p ) \ 23082 _mbg_swab32( &(_p)->idx ); \ 23083 _mbg_swab_svc_settings( &(_p)->settings ); \ 23111 uint32_t reserved_2[5];
23116 #define _mbg_swab_svc_info( _p ) \ 23119 _mbg_swab_svc_settings( &(_p)->settings ); \ 23131 #define _mbg_swab_svc_info_idx( _p ) \ 23134 _mbg_swab32( &(_p)->idx ); \ 23135 _mbg_swab_svc_info( &(_p)->info ); \ 23143 uint32_t reserved_2[3];
23148 #define _mbg_swab_svc_status( _p ) do {} while ( 0 ) 23159 #define _mbg_swab_svc_status_idx( _p ) \ 23162 _mbg_swab32( &(_p)->idx ); \ 23163 _mbg_swab_svc_status( &(_p)->status ); \ 23187 uint32_t reserved_1[15];
23192 #define _mbg_swab_fw_glb_info( _p ) \ 23234 #define MBG_FW_FILE_STRS \ 23236 "Unknown file(s)", \ 23237 "Incremental file(s)", \ 23238 "Meinberg device tree", \ 23240 "Root filesystem", \ 23241 "Kernel device tree", \ 23242 "FPGA firmware binary", \ 23243 "Initial ramdisk", \ 23273 uint32_t reserved_3[11];
23278 #define _mbg_swab_fw_info( _p ) \ 23281 _mbg_swab32( &(_p)->revision ); \ 23282 _mbg_swab32( &(_p)->flags ); \ 23283 _mbg_swab16( &(_p)->num_ufus ); \ 23295 #define _mbg_swab_fw_info_idx( _p ) \ 23298 _mbg_swab32( &(_p)->idx ); \ 23299 _mbg_swab_fw_info( &(_p)->info ); \ 23310 uint32_t reserved_3[5];
23315 #define _mbg_swab_fw_ufu_info( _p ) \ 23318 _mbg_swab32( &(_p)->revision ); \ 23319 _mbg_swab16( &(_p)->model_code ); \ 23332 #define _mbg_swab_fw_ufu_info_idx( _p ) \ 23335 _mbg_swab16( &(_p)->fw_idx ); \ 23336 _mbg_swab16( &(_p)->ufu_idx ); \ 23337 _mbg_swab_fw_ufu_info( &(_p)->info ); \ 23383 uint32_t reserved_4[4];
23388 #define _mbg_swab_fw_ufu_flash_cmd( _p ) \ 23391 _mbg_swab16( &(_p)->ufu_idx ); \ 23392 _mbg_swab16( &(_p)->model_code ); \ 23418 #define MBG_DATABASE_TYPE_STRS \ 23431 uint32_t reserved_3[3];
23436 #define _mbg_swab_database_glb_info( _p ) \ 23439 _mbg_swab16( &(_p)->supp_dbs ); \ 23458 #define MBG_DATABASE_MAX_STR 32 23465 uint32_t reserved_2[7];
23484 #define _mbg_swab_database_settings( _p ) \ 23487 _mbg_swab16( &(_p)->port ); \ 23499 #define _mbg_swab_database_settings_idx( _p ) \ 23502 _mbg_swab32( &(_p)->idx ); \ 23503 _mbg_swab_database_settings( &(_p)->settings ); \ 23564 uint32_t reserved_3[2];
23569 #define _mbg_swab_database_info( _p ) \ 23572 _mbg_swab_database_settings( &(_p)->settings ); \ 23573 _mbg_swab16( &(_p)->supp_members ); \ 23574 _mbg_swab16( &(_p)->supp_cfgs ); \ 23586 #define _mbg_swab_database_info_idx( _p ) \ 23589 _mbg_swab32( &(_p)->idx ); \ 23590 _mbg_swab_database_info( &(_p)->info ); \ 23605 uint32_t reserved[2];
23606 unsigned char payload[240];
23611 #define _mbg_swab_database_cmd( _p ) \ 23614 _mbg_swab32( &(_p)->cmd ); \ 23615 _mbg_swab32( &(_p)->length ); \ 23623 #if defined( _USING_BYTE_ALIGNMENT ) 23624 #pragma pack() // set default alignment 23625 #undef _USING_BYTE_ALIGNMENT PTP_V1_TIME_PROP_DATASET_FLAGS_MASKS
PTPv1 time drop dataset flag masks used with MBG_PTP_V1_TIME_PROPERTIES_DATASET::flags.
double deltan
+- Mean Motion Diff. from computed value [rad/sec]
PTP_CFG_FLAGS
Flags bits used with PTP configuration.
MBG_IP_ADDR broadcast
Broadcast address associated with this interface.
uint8_t reserved_2
reserved, currently always 0
uint32_t reserved_1
Reserved for future use, currently 0.
See MBG_SYSLOG_PROTOCOL_TCP.
output voltage in val/exp, output state in flags
int16_t ann_intv_max
log2 of maximum announce interval [s]
uint32_t fractions
binary fractional part of a second, 0xFFFFFFFF -> 0.9999999... s (resolution 2^-32s =~ 233 ps) ...
MBG_TLV_UID uid
Unique source ID. See MBG_TLV_DATA::uid.
Current SHS settings and general SHS capabilities.
uint32_t reserved_3
reserved, currently 0
uint8_t num_v12_trap_receivers
Number of configured v3 settings, see MBG_SNMP_V3_INFO_IDX.
uint8_t slot_type
The IMS slot type, see XBP_SLOT_TYPES.
UFU file has been flashed.
uint32_t reserved_3
Reserved for future use, currently 0.
General NTP restriction limits to be read from a device.
MBG_IMS_FDM_STATE_FLAG_BITS
Enumeration of flag bits used to define MBG_IMS_FDM_STATE_FLAG_MASKS.
see NTP_PEER_STATE_SUPP_ASS_ID
TM_GPS_STATUS_BITS_EX
Enumeration of extended status bits used with TM_STATUS_EXT.
POUT_DATA pout_data
Additional configuration data, see POUT_DATA.
MBG_PTP_V2_PORT_DATASET port_dataset
see MBG_PTP_V2_PORT_DATASET
A structure to used to read the status of the PTP protocol stack.
MBG_IP_ADDR addr
network address
SMPTE ST 2059-2 profile extension, only if PTP_MSK_OPT_EXT_SMPTE is set.
uint8_t reserved_5
Reserved, currently always 0.
src can be used for phase synchronization
MBG_SYSLOG_GLB_SETTINGS settings
MBG_SYSLOG_GLB_SETTINGS.
XMR_EXT_SRC_FEAT_FLAG_MSKS
XMR source feature flag bit masks.
uint16_t rsvd_1
reserved, currently always 0
CSUM csum
checksum of the remaining bytes
uint32_t type
sync type, see :: MBG_GPIO_SYNC_TYPES
uint16_t supp_flags_ex
A bit mask of extended supported features, see PTP_CFG_FLAG_EX_MASKS.
uint32_t reserved_1
Reserved for future use, currently 0.
see NTP_FLASH_STAT_PKT_AUTOKEY
MBG_BAUD_RATE_CODES
Enumeration of serial port baud rates.
uint8_t type
see MULTI_REF_TYPES, and note for XMRIF_BIT_MRF_NONE_SUPP
MBG_LICENSE_PTPV1_MEMBER_MSKS
Bit masks of PTPV1 license specific members.
Query MBG_NET_INTF_ROUTE_SETTINGS by its index.
uint16_t flags
additional information, see RECEIVER_INFO_FLAG_MASKS
GBIT Link is currently clock slave.
uint8_t instance
instance number, if multiple instances are supported, else 0
see NTP_RESTR_FLAG_NOSERVE
uint32_t reserved_1
Reserved, currently always 0.
uint32_t reserved_0
currently reserved, unused, always 0
See MBG_SVC_CAN_BE_DISABLED.
Supports XHE external rubidium unit I/O commands.
supports filter jitter, see NTP_PEER_STATE::jitter
Configuration settings for a specific PTP unicast master.
[R/-] supports unicast slave role, see PTP_ROLE_UNICAST_SLAVE
Flags structure for the PTPv2 default dataset.
Ephemeris data used for orbit.
MBG_OPT_SETTINGS settings
current settings
uint32_t reserved_3
Reserved, currently always 0.
see MBG_GPIO_FIXED_FREQ_2048kHz
uint32_t reserved_4
Reserved for future use, currently 0.
see MBG_NET_INTF_LINK_PORT_TYPE_MII
uint32_t reserved_2
reserved, currently 0
uint32_t reserved
reserved, currently always 0
see SHS_FLAG_BIT_DISB_PPS
uint8_t pulse_shift_res
pulse shift resolution, in [ns], only if POUT_SUPP_PULSE_SHIFT, see POUT_DATA::pulse_shift ...
MBG_GPIO_FLAGS
Enumeration of general flags used with a GPIO.
MBG_IMS_FDM_SETTINGS settings
Variable frequency input, freq == 0 if input not used.
uint32_t uid
user id assigned by the OS
uint16_t reserved_2
reserved, currently always 0
uint16_t max_ntp_clients
Maximum number of supported NTP clients to be monitored.
see MBG_GPIO_BITS_OUT_FLAG_B8ZS
uint32_t reserved0
reserved, currently always 0
NTP_SYSTEMS
Enumeration of operating systems using NTP.
Output switched on if both position verified and time synchronized.
uint8_t XBP_PORT
An XBP port specifier.
external oscillator disciplined and looped back via 1 PPS I/O
uint32_t num_clk_phase
Number of multi-phase clock signals.
uint8_t n_outputs
actual number of outputs [0..MAX_LNO_OUTPUT-1]
MBG_GPIO_BITS_OUT_SUPP bits_out
if MBG_GPIO_SETTINGS::type is MBG_GPIO_TYPE_BITS_OUT
int8_t precision
Precision of the peer clock (2^precision)
see POUT_BIT_SUPP_DCF77_UTC, POUT_SUPP_DCF77_UTC
Clock 1 fixed (CPU board only)
uint32_t reserved
reserved, currently always 0
Number of event log entries that can be stored and yet have been saved.
has programmable synthesizer output
see IFLAGS_BIT_DISABLE_TFOM
uint8_t tc_line1
second time code line location, valid lines: 6-22
uint32_t reserved_1
reserved, currently not used
uint32_t reserved_0
Reserved, currently always 0.
Address is an autoconf address, which should be ignored in the configuration.
uint32_t num_io
number of supported GPIO ports
[R/W] PTP Module can run as NTP Server in Software mode in parallel to PTP HW time stamp modes ...
MBG_IMS_SENSOR_STATE state
sensor state
[R/W] maybe required for certain NIC chips, not used by Meinberg
uint8_t reserved_2
Future use.
uint16_t MBG_VLAN_CFG
VLAN configuration.
uint16_t last_sync_event_sequence_number
NTP atom driver (standalone PPS)
int32_t BAUD_RATE
A data type to configure a serial port's baud rate.
uint16_t idx
0..MBG_UCAP_NET_GLB_INFO::n_supp_recvs-1
MBG_GNSS_MODE_SETTINGS settings
Current GNSS mode settings.
uint32_t supp_fmts
bit mask of supported formats, see MBG_GPIO_BITS_FORMAT_MASKS
uint8_t max_servers
Maximum number of configurable servers.
A structure used to store user permissions.
STR_MODE_MASKS
Bit masks associated with STR_MODES.
uint16_t freq
always EF_FREQ_ALL
int32_t val
sensor value, in units according to the type
uint16_t epld_control
EPLD control word, see SCU_CTRL_MASKS.
see NTP_RESTR_FLAG_NOPEER
PORT_SETTINGS uart_settings
the number of known modes
uint8_t type
see MBG_IP_ADDR_TYPES
MBG_IO_PORT_TYPE_INFO_U data
Port type specific data.
Summary of configuration and health data of all satellites.
Network Time Protocol (NTP)
CSUM csum
checksum of the remaining bytes
NTP trusted key settings.
Configuration settings of a specific serial port.
TM_GPS tm
time converted to UTC and/or local time according to TZDL settings
uint8_t n_str_type
max num of string types supported by any port
[R/-] supports the NTP HW time stamping in Slave mode
PTP_CFG_FLAGS_EX
Extended flags bits used with PTP configuration.
double A1
+- Clock Correction Coefficient 1 [sec/sec]
NTP_MISC_MSKS
Flag masks associated with NTP_MISC_FLAGS.
MBG_GPIO_FREQ freq
Current frequency.
Ephemeris parameters of one specific satellite.
A structure used to hold a fixed frequency value.
uint8_t poll_intv_max
maximal supported NTP polling interval
NTP supports SHA1 as key hashing algorithm.
uint16_t reserved_6
Reserved, currently always 0.
NTP trusted key info, with index.
MBG_GPIO_FREQ freq
frequency in range MBG_GPIO_FREQ_IN_SUPP::freq_min..MBG_GPIO_FREQ_IN_SUPP::freq_max, or 0 if input is not used
uint8_t max_refclks
number of supported refclks NTP_REFCLK_CFG_INFO
uint32_t reserved_3
Reserved, currently always 0.
NTP stats can generally be enabled or disabled.
uint32_t reserved_2
< Currently reserved, unused, always 0
uint32_t level_id
unique id for user level, only used if MBG_USER_INFO::type is USER_TYPE_LEVEL
COM_PARM parm
transmission speed, framing, etc.
see MBG_GPIO_DIGITAL_AUDIO_RESERVED_FLAG
uint32_t flags
NTP flags, see NTP_FLAG_MASKS.
uint32_t supp_flags_manycast
supported flags for manycast associations
uint8_t label_rear
Indicates, that the label is on the rear side.
GNSS_SAT_INFO gnss_sat_info
see GNSS_SAT_INFO
uint8_t parent_clock_class
clock class of the parent node
Output settings for FDM devices plus index.
MBG_IO_PORT_STATUS status
uint32_t flags
flags, see MBG_GPIO_VIDEO_OUT_FLAG_MASKS
Internal time not valid/set.
uint32_t supp_assoc_types
supported types of NTP associations
uint32_t flags
Currently reserved, unused, always 0.
antenna short circuit detected
MBG_GPIO_SETTINGS settings
current settings
Analog output reflects frequency deviation.
see MBG_GPIO_BITS_ERR_LOS
NANO_TIME last_mue
mean value (mue) of prev. interval
Static, not configurable.
MBG_GPIO_STUDIO_CLOCK_SCALES
Enumeration of studio clock scales.
MBG_LED_INFO info
LED info.
Configuration of a GPIO variable frequency input.
MBG_NET_INTF_LINK_BOND_STATES
Network interface link bonding states.
MBG_TLV_FEAT_BUFFER supp_tlv_feat
A byte array of supported TLV feature bits, see MBG_TLV_FEAT_TYPES.
uint32_t reserved0
reserved, currently always 0
SHS_STATES
SHS configuration flag bits.
see MBG_IMS_FDM_OUTPUT_MODE_TD
voltage in val/exp, output state in flags
u-blox GNSS module with Galileo support
Status information on a single ref time source.
XMR_EXT_SRC_INFO structure supported
Auto detect line frequency.
uint32_t login_cnt
current number of active logins
MBG_NET_INTF_ROUTE_SETTINGS settings
see MBG_NET_INTF_ROUTE_SETTINGS
see NTP_FLASH_STAT_PEER_STRATUM
Supports user authentication and command GPS_AUTH_USER_INFO.
see NTP_REFCLK_TYPE_LOCAL
uint8_t dflt_clk_class_unsync_cold
An IPv4 or IPv6 network address.
See MBG_FW_FILE_PRELOADER.
uint16_t reserved_0
reserved, currently always 0
1) MBG_TLV_TYPE_BLOB => MBG_LICENSE_PTPV1_IDX, see License information
uint8_t port_state
one of the enumerated port states, see PTP_PORT_STATES
uint32_t flags
reserved, currently always 0
MBG_IO_PORT_TYPE_INFO info
indicates that the device has a network interface
XBP_SLOT_TYPES
Possible IMS slot types of an XBP device.
PTP state changed to PRE_MASTER.
NTP_CLNT_MODE_SETTINGS settings
MBG_GPIO_BITS_FORMATS
Enumeration of BITS signal formats.
MBG_GPIO_DIGITAL_AUDIO_FLAGS
Enumeration of flags used with GPIO type digital audio outputs.
uint16_t type
record type, see CAL_REC_TYPES
MBG_SNMP_V3_TRAP_SETTINGS settings
uint8_t reserved
Reserved, currently always 0.
uint16_t fw_idx
0...MBG_FW_GLB_INFO::installed_fws - 1
uint8_t sys_evt_cnt
Number of events, since the last time the event code changed.
MBG_IO_PORT_STATUS_BUFFER status
See MBG_IO_PORT_STATUS_BUFFER.
Supports XBP_NODE_LIMITS and associated structures.
IRIG_SETTINGS irig_settings
uint32_t supp_flags
See MBG_LICENSE_BASE_MSKS.
enabled, but not synchronized
uint8_t delay_mechanism
propagation delay measuring option, see PTP_DELAY_MECHS
Digital Audio output (DARS, ...)
NTP_RESTR_TYPE_MSKS
Bit masks associated with NTP_RESTR_TYPES.
connect COM0 channels to XPORT
MBG_EVENT_VALUE_URANGE urange
MBG_LICENSE_BASE base
See MBG_LICENSE_BASE.
An entry for a table of parameters which can not be accessed by an enumerated index.
MBG_IO_PORT_ANT_INFO ant_info
uint32_t idx
index, 0..PTP_UC_MASTER_CFG_LIMITS::n_supp_master-1
uint32_t reserved_4
Future use.
MBG_LICENSE_BASE_MSKS
Bit masks of common supported base license flags.
uint32_t reserved_3
Reserved, currently 0.
uint16_t reserved_1
reserved, currently always 0
The MAC address of a network interface.
MBG_IMS_FDM_OUTPUT_INFO info
DCF77 PZF providing much more accuracy than a standard LWR.
MBG_EXT_SYS_INFO_PROC_TYPES
MBG_DAC_SPECS dac_specs
DAC specific limits.
uint32_t idx
the index of the user
uint16_t reserved_1
Currently reserved, unused, always 0.
see NTP_PEER_STATUS_REACH
POUT_SETTINGS_FLAGS
Flag bit masks used with POUT_SETTINGS::flags.
uint16_t max_sine_lvl
max level of an output, e.g. 1024
PTP state changed to DISABLED.
see MBG_NET_INTF_LINK_BOND_MODE_ALB
uint32_t supp_flags
supported flags, currently always 0
uint16_t PTP_PORT_ID
A PTP port ID.
see BVAR_BIT_CFGH_INVALID
Supports the GPS_BEGIN_TRANSACTION and GPS_END_TRANSACTION commands, see also MBG_TRANSACTION_TYPES.
Invalid config, e.g. data csum error.
NTP restriction, plus index.
MBG_IMS_FDM_LINE_FREQS
Enumeration known line frequencies.
NTP_PEER_STATUS_FLAGS
Enumeration of NTP peer status codes.
see MBG_GPIO_STUDIO_CLOCK_SCALE_1_DIV_8
1000baseKX Full Duplex (1 GBit/s)
Trusttime of refclk configurable.
supports "ignore lock", MBG_OPT_BIT_EMU_SYNC can be set alternatively
uint32_t reserved
Currently reserved, unused, always 0.
see MBG_NET_INTF_LINK_PORT_TYPE_UNKNOWN
see NTP_SYS_STATE_SUPP_ROOT_DELAY
MBG_GPIO_SETTINGS gpio_settings
uint16_t supp_types
See MBG_MONITORING_TYPE_MSKS.
the number of defined flag bits
Global settings for user captures via network.
minimum message duration [s]
[R/-] can be Monitoring device for external PTP or NTP devices //### TODO Shouldn't this be an XFEATU...
select clk for comm. (clk1 = 0)
MBG_IP_ADDR_TYPES
Enumeration of types used with MBG_IP_ADDR::type.
int32_t u_max
max. possible real voltage range [mV], positive or negative, depending on MBG_DAC_SPECS::dac_val_max ...
uint32_t mgmtTx
Management message Tx counter.
uint32_t reserved_2
reserved, currently unused and always 0
kernel information message
uint32_t reserved_1
Future use.
see MBG_NET_INTF_LINK_BOND_MODE_XOR
Settings of an IPv4-only network interface.
MBG_IO_PORT_DIR_MSKS
Bit masks of Meinberg I/O port directions.
Supports programmable LED API, see Meinberg LED API definitions.
int32_t frac
fractions of a second, 1/RECEIVER_INFO::ticks_per_sec units
uint32_t node_count
Number of XBP nodes available in the system.
uint32_t line_freq
nominal line frequency, see MBG_IMS_FDM_LINE_FREQS
GPS UTC correction parameters.
number of know status bits
uint32_t IP4_ADDR
An IPv4 address.
See MBG_IO_PORT_SRC_SYNCE.
See NTP_MISC_FLAG_LEAPFILE.
uint32_t reserved_2
currently reserved, always 0
see MBG_GPIO_FIXED_FREQ_8kHz
uint16_t idx
index if several records of same type are supported, see IRIG_RX_COMP_GROUPS
reserved, used internally by firmware only
MBG_FRAMING_MASKS
Bit masks associated with framings enumerated in MBG_FRAMING_CODES.
#define PTP_CODE_STRING_LENGTH
MBG_EXT_SYS_INFO_MSKS
Bit masks of supported revision numbers.
Net Sync Monitor for external PTP or NTP devices.
uint16_t n_supp_master
number of unicast masters which can be specified
antenna currently disconnected
board supply current in val/exp, output state in flags
Switched clock from back plane (e.g. selected by RSC)
PTP_PORT_IDENTITY parent_port_identity
Identity of the master port, that issues the sync messages, see PTP_PORT_IDENTITY.
Only used with IP4_SETTINGS::flags. Set if port link has been established.
MBG_GPIO_TYPES
Enumeration of GPIO types.
NTP_PEER_STATE_SUPP_FLAGS
Enumeration of supported NTP peer state values.
#define N_POUT_TIMES
The number of POUT_TIME settings for each programmable pulse output.
uint32_t reserved_5
Reserved for future use, currently 0.
Other orbit information is used.
daylight saving is in effect
#define MBG_IO_PORT_STR_SIZE
uint32_t reserved
reserved, currently always 0
uint8_t max_trusted_keys
number of available trusted keys, see NTP_TRUSTED_KEY_INFO_IDX
ref. clock is IRIG time code receiver
uint8_t max_v12_trap_receivers
Only valid if MBG_SNMP_GLB_INFO::supp_versions contains MBG_SNMP_VERSION_MSK_V1 or MBG_SNMP_VERSION_M...
uint16_t WNlsf
Week number of nearest leap second.
pure IEEE1588-2008 (PTPv2) with E2E
uint8_t supp_dirs
See MBG_IO_PORT_DIR_MSKS.
Supports specific LNE API, see Definitions specific to LNE devices.
Global NTP statistics settings to be read from / written to a device.
A structure used to configure a PTP port.
uint16_t idx
string type index, 0..RECEIVER_INFO::n_str_type-1
uint32_t if_index
Interface index assigned by the kernel.
MBG_GPIO_FIXED_FREQ_MASKS
Bit masks associated with MBG_GPIO_FIXED_FREQS.
supports frequency offset, see NTP_SYS_STATE::freq
Current settings and general capabilities of an LNE port.
Baud rate index exceeds num supp by driver SW.
PTP_CLOCK_ACCURACIES
An enumeration of accuracy classes used with PTP.
uint32_t reserved_6
Reserved for future use, currently 0.
Structure that represents a timestamp in NTP Timestamp Format.
XMR_HOLDOVER_STATUS_FLAG_MASKS
XMR holdover status flag masks.
CSUM csum
checksum of the remaining bytes */
uint16_t drv_flags_value
0 or 1, if (drv_flags_enable & x) == 1, see NTP_FUDGE_FLAG_NUMBERS
int16_t azim
Azimuth [deg], range: 0..360 deg.
uint8_t prefix_bits
Number of subnet mask bits for CIDR notation, e.g. 24 for /24.
uint16_t reserved_2
Future use.
uint32_t pDlyRespMsgPerSecTx
PDelay Response message Tx counter.
IP6_ADDR addr
bit mask of the bytes holding the address bits, b[0] == LSBs
uint32_t flags
see PTP_CFG_FLAG_MASKS
PAL standard (Germany) 625i.
see MBG_GPIO_STUDIO_CLOCK_SCALE_256
input signal is disconnected
uint32_t line_freq
Nominal line frequency, see MBG_IMS_FDM_LINE_FREQS.
uint32_t signallingPerSecTx
Signalling message Tx counter.
see HQ_FMT_STANAG4246_PTTI
uint16_t flags
status flags, see LNO_STATE_FLAG_BITS
uint32_t reserved_3
Reserved, currently 0.
See MBG_IO_PORT_OP_MODE_PASSTHROUGH.
uint8_t soc
signal outage counter, incremented on loss of signal
see MBG_NET_INTF_LINK_OPT_CAN_SYNCE_OUT
Structure that contains an index value and the NTP peer state.
int16_t range
an optional base 10 exponent
UTC or local time according to UTC parameters and TZDL configuration
POUT_SETTINGS pout_settings
uint8_t supp_tc_modes
supported tc_modes, see MBG_GPIO_VIDEO_TC_MODE_MASKS
MBG_MAC_ADDR mac_addr
MAC address.
Firmware cannot be erased / deleted (e.g. OSV)
PTP_DELAY_MECHS
An enumeration of PTP delay mechanisms.
MBG_GPIO_CFG_LIMIT_FLAG_MASKS
GPIO limits flag masks associated with MBG_GPIO_CFG_LIMIT_FLAG_BITS.
uint32_t max_mtrans
Maximal number of supported multicast transactions per second.
see MBG_GPIO_FIXED_FREQ_5MHz
pulse length is limited to the value POUT_SETTINGS::mode_param
uint8_t phys_grp
Physical group number (i.e. SFP/RJ45 on HPS100), or MBG_NO_PHYS_GROUP.
NTP_ORPHAN_MODE_FLAGS
Enumeration of NTP supported (various) misc options.
uint32_t reserved_2
reserved, currently always 0
MBG_NTP_SERVICE_STATES
Enumeration of supported NTP service state values.
uint32_t reserved_2
Future use.
A The structure used to store the configuration of two serial ports.
uint16_t PTP_HW_FEATURES
Register in TSU-GbE FPGA to determine board features of the current TSU board revision.
uint8_t priority_1
priority 1 attribute for the local clock
MBG_LICENSE_BASE_FLAGS
Bits used to define MBG_LICENSE_BASE_MSKS.
uint32_t reserved
Reserved, currently 0.
See MBG_IO_PORT_SRC_SWITCH_CARD.
uint16_t reserved_2
Future use.
supports SHS (Secure Hybrid System) API and structures
uint32_t reserved_4
Future use.
uint8_t min_min
Minimum value for min.
TM_GPS tm_on
date/time when daylight saving starts
The data structure used with the PCPS_GEN_IO_GET_INFO command.
Information on a supported string format.
XMR_REF_STATUS_BITS
XMULTI_REF status bits.
MBG_USER_PERM_BUF cfg_write_perm
current config write permissions, see MBG_USER_PERM_BUF and MBG_USER_PERMS
uint32_t csc_limit
max. cycle slip [1/1000 cycle units]
uint16_t reserved3
reserved, currently always 0
See MBG_LICENSE_PTPV2_MEMBER_MAX_MTRANS.
uint32_t reserved_2
Reserved, currently always 0.
uint8_t reserved_1
reserved, currently always 0
Time scale configuration settings plus capabilities.
uint16_t monitor
TODO Which is the unit of this field?
see NTP_ROLE_CLIENT_SERVER
PTP_OPT_EXTS
Known optional PTP protocol extensions, see PTP_CFG_SETTINGS::opt_ext.
See MBG_IO_PORT_SRC_LOCAL.
Instead of a standard L1 antenna, a Meinberg antenna/converter can be used with this GNSS device...
MBG_GPIO_VIDEO_TC_MODE_MASKS
Bit masks associated with MBG_GPIO_VIDEO_TC_MODES.
uint8_t sa_bits
number of SA bit group for E1 SSM, MIN_SA_BITS_GROUP..MAX_SA_BITS_GROUP
uint8_t epoch
epoch, see MBG_GPIO_VIDEO_EPOCHS
the user is allowed to login (should not be set for root)
the number of known status codes
see PTP_PRESETS_TELECOM_PTS
MBG_IO_PORT_ANT_SETTINGS ant_settings
MBG_EVT_CODE code
event ID or'ed with severity level, see MBG_EVENT_CODES
supports VST (Versatile Storage) API and structures
uint32_t err_msk
controls which types of error can be ignored, see MBG_GPIO_BITS_ERR_MASKS
uint32_t followUpMsgRx
Accepted Follow-up message Rx counter.
uint8_t reserved
reserved, currently always 0
PTP_TIME_INTERVAL offset_from_master
current time difference between master and slave, see PTP_TIME_INTERVAL
The number of known bits.
uint8_t release_candidate
Release candidate revision information.
see V1_DFLT_INITIALIZABLE
AssistNow Autonomous orbit is used.
int16_t ann_intv
announce interval [log2 s]
CSUM csum
checksum of the remaining bytes
supports symmetric key id, see NTP_PEER_STATE::key_id
[R/-] supports PTPv1 SLAVE role
LAN interface on an XPORT, superseded by RSC devices.
See MBG_FW_FILE_INCREMENTAL.
see MBG_EXT_SYS_INFO_BIT_SW_REV
uint16_t reserved_3
reserved, currently always 0
uint16_t supp_flags
See MBG_EVENT_SUPP_FLAG_MSKS.
uint32_t reserved_3
Future use.
DNS server could not be reached.
serial time string contains UTC time
uint32_t n_supp_users
supported number of users
XYZ_FIELDS
Sequence and number of components of a cartesian position.
Global network configuration settings.
NTP_IMPL
Enumeration of known NTP implementations.
uint8_t peer_rec_evt
Most recent event message, see NTP_PEER_EVT_BITS.
uint32_t maxMsgPerSec
max allowed number of all messages per second in Multicast/Hybrid mode (due to licence or CPU perform...
see MBG_NET_INTF_LINK_BOND_MODE_BROADCAST
PTP_CLOCK_QUALITY grandmaster_clock_quality
Quality of the grandmaster clock, see PTP_CLOCK_QUALITY.
timebase is in transition (being slewed) after sources have been switched
NTP refclock settings index.
uint32_t reserved_0
currently reserved, unused, always 0
uint16_t reserved_0
currently unused
double beta_0
Ionosph. Corr. Coeff. Beta 0 [sec].
uint8_t reserved_1
Reserved, currently always 0.
min. WAAS satellite number
has initially been sync'd, but now running free
uint32_t fd_scale
scale for MBG_IMS_FDM_LIMITS::fd_neg_limit and MBG_IMS_FDM_LIMITS::fd_pos_limit
uint8_t num_intf_link
number of detected/configured physical network interfaces (links), see MBG_NET_INTF_LINK_INFO_IDX ...
Address has been automatically assigned by DHCP via IPv6.
uint8_t port_state
state of the protocol engine associated with this port, see PTP_PORT_STATES
int64_t offset
[ns] Combined offset to the system peer
uint16_t num_sensors
number of sensors provided by the device
T_GPS tot_63
time of transmission, page 63
uint32_t supp_flags
See NTP_ORPHAN_MODE_MSK.
ITU-T G.8265.1 profile extension, only if PTP_MSK_OPT_EXT_TELECOM is set.
uint16_t reserved_1
Currently reserved, unused, always 0.
uint16_t reserved_2
reserved, currently 0
max. number of active GPS satellites
supports navigation engine configuration
NTP_GLB_STATS_FLAGS
Enumeration of NTP supported statistics.
A structure used to configure the priority of the supported ref sources.
uint32_t dlyRespMsgTx
Delay response message Tx counter.
NTP orphan mode settings to be read from / written to a device.
MBG_GPIO_STUDIO_CLOCK_BASE_FREQS
Enumeration of studio clock base frequencies.
uint8_t dflt_clk_class_sync_cold
see MBG_GPIO_VIDEO_HD_FORMAT_720_P_59_94Hz
uint32_t supp_flags_pool
supported flags for unicast pool associations
NAV_TIME_MODE_SETTINGS nav_time_mode_settings
Detailed GNSS satellite status, plus index.
see MBG_GPIO_BITS_E1_TIMING
[R/W] PTP Port state can be set to DISABLED permanentely
MBG_SNMP_V12_SETTINGS settings
uint8_t tc_mode
time code mode, see MBG_GPIO_VIDEO_TC_MODES
see MBG_IMS_FDM_STATE_FLAG_BIT_PLT_IS_LOCKED
MBG_LED_SETTINGS settings
Current LED settings.
uint8_t grasp_rear
Indicates, that the grasp is on the rear side.
NTP_REFCLK_TYPE_MSKS
Bit masks associated with NTP_REFCLK_TYPES.
MBG_NET_INTF_LINK_SPEEDS
Network interface link speeds [Mb/s].
MBG_GPIO_BITS_IN_SETTINGS bits_in
if MBG_GPIO_SETTINGS::type is MBG_GPIO_TYPE_BITS_IN
1) MBG_TLV_TYPE_BLOB => MBG_LICENSE_TIME_MONITOR_IDX, see License information
uint32_t signallingTx
Signalling message Tx counter.
uint32_t freq_min
minimum output frequency [Hz], see MBG_GPIO_FREQ_OUT_SETTINGS::freq
see MBG_UCAP_NET_TRANSF_PROTO_UNKNOWN
uint32_t reserved_1
Future use.
see V1_PARENT_FOLLOWUP_CAPABLE
PTPV2 specific license information.
Structure used to transfer calibration records.
MBG_OPT_BITS
Enumeration of flag bits used to define MBG_OPT_FLAGS.
uint8_t pt_idx
index of the port types (e.g. 0 for PPO0, 1 for PPO1, ...)
pulse-per-second signal (Cs, Ru, GPS, etc.)
NTP_MISC_FLAGS
Enumeration of NTP supported (various) misc options.
see MBG_GPIO_STUDIO_CLOCK_SCALE_64
min. Glonass satellite number (64 + sat slot ID)
SMPTE296M-1 720p at 59.94 Hz.
Firmware has successfully been installed.
Per second, same as STR_PER_SEC, COM0 and COM1.
Number of defined extended features.
uint32_t flags
Future use.
uint8_t reserved_1
Reserved, currently 0.
PTPv1 current dataset containing information about the synchronization status of the device...
MBG_UCAP_NET_TRANSF_PROTO_MASKS
Masks for transfer protocol used with MBG_UCAP_NET_GLB_INFO::supp_protos.
A timestamp with nanosecond resolution, but 64 bit size.
all fixed freq. outputs on, use with ENABLE_FLAGS::freq
int16_t freq
four digits used; scale: 0.1 Hz; e.g. 1234 -> 123.4 Hz
uint32_t flags
reserved, currently always 0
Switch Card Unit fixed (SCU, RSC, ...)
NTP driftfile settings to be read from / written to a device.
uint32_t flags
See NTP_FLAG_MASKS. Only flags specified in ::FIXME can be used here.
Whatever preloader magic file.
uint8_t leap_61
set, if the last minute of the current UTC day containts 61 seconds
uint16_t idx
port index, 0..RECEIVER_INFO::n_com_ports-1
ENABLE_FLAGS_CODES
Codes used with ENABLE_FLAGS.
MBG_NET_INTF_LINK_OPT_MASKS
Network interface link option masks.
uint32_t mgmtPerSecRx
Accepted Management message Rx counter.
The GNSS_SAT_INFO_IDX structure is supported by the device.
PTP_OPT_EXT_MASKS
Flag masks used with PTP_CFG_INFO::supp_opt_ext.
uint8_t reserved_1
Reserved, currently always 0.
uint32_t max_rps
Maximum number of supported NTP requests per second.
See MBG_DATABASE_MEMBER_FLAGS.
Supports monitoring / notifications, see Monitoring / notification.
uint32_t format
video format, see MBG_GPIO_VIDEO_FORMATS
see MBG_GPIO_FIXED_FREQ_19440kHz
uint32_t reserved_1
Reserved for future use.
See MBG_SYSLOG_FLAG_NULL_TIMESTAMP.
uint32_t password_doc
time of last password change (days since 1970)
MBG_SERVICE_SETTINGS settings
uint32_t flags
additional options configured, see NTP_FLAG_MASKS
uint32_t states
see MBG_NET_INTF_LINK_STATE_MASKS
see MBG_GNSS_FLAG_HAS_PRIORITY
MBG_USER_CHANNEL_BUF channels
Channels, that are allowed for this user, see MBG_USER_CHANNEL_BUF.
String mode index exceeds num supp by driver SW.
Sounds stupid but think of heartbeat.
uint8_t max_v3_trap_receivers
Only valid if MBG_SNMP_GLB_INFO::supp_versions contains MBG_SNMP_VERSION_MSK_V3.
uint32_t supp_members
See MBG_LICENSE_NTP_MEMBER_MSKS.
uint32_t flags
see MBG_IMS_STATE_FLAG_MASKS
peer is not sync (leap alarm, stratum 16)
see XMR_EXT_SRC_FEAT_FLAG_BIT_COASTING
see MBG_GPIO_STUDIO_CLOCK_SCALE_1
see NTP_PEER_STATE_SUPP_FLASH_STAT
int16_t sync_intv_max
log2 of maximum sync interval [s]
Status information on a ref time source at a specific priority level.
40000baseCR4 Full Duplex (40 GBit/s)
See NTP_GLB_STATS_FLAG_SYSSTATS.
[R/W] time scale is PTP/TAI, else arbitrary
see MBG_NET_INTF_LINK_PORT_TYPE_DA
PTPv1 port dataset containing information about the appropriate port of the device.
double af2
+- Clock Correction Coefficient 2 [sec/sec^2]
uint16_t reserved_1
reserved, currently always 0
uint8_t ann_rcpt_timeout
announce msg. receipt timeout, see PTP_ANN_RCPT_TIMEOUT_LIMITS
uint32_t supp_shapes
bit mask of supported signal shapes, see MBG_GPIO_SIGNAL_SHAPE_MASKS
double e
Eccentricity [—].
uint8_t n_supp_peers
maximal number of configurable peers
MBG_LICENSE_PTPV1 license
uint8_t scale
current time scale code, see MBG_TIME_SCALES
oscillator cfg is supported, see RECEIVER_INFO::osc_type
uint8_t reserved_1
reserved, currently always 0
see GBIT_LINK_COPPER_AUTO_MSK
1) MBG_TLV_TYPE_BLOB => MBG_LICENSE_PTPV2_IDX, see License information
uint16_t epld_status
EPLD status word, see SCU_STAT_MASKS.
See MBG_IO_PORT_GRP_ROLE_MASTER.
see NTP_FLASH_STAT_PKT_HEADER
POUT_MODES
Enumeration of known operation modes for programmable pulse outputs.
see BVAR_BIT_ALM_NOT_COMPLETE
uint32_t csc_limit_max
1/1000 units of the signal period, limited due to 10 ns sampling interval, see MBG_GPIO_FREQ_IN_SETTI...
Forwarded signals from backplane (e.g. PPS of BPE)
uint32_t pDlyRespMsgRx
Accepted PDelay Response message Rx counter.
uint32_t reserved0
reserved, currently always 0
MBG_USER_MNGMNT_SETTINGS settings
settings, see MBG_USER_MNGMNT_SETTINGS
uint32_t type
GPIO type, see MBG_GPIO_TYPES.
PTP state changed to UNINITIALIZED.
int16_t channel
-1: the current on-board time; >= 0 the capture channel number
uint32_t tx
overall Tx packet counter
uint8_t mday
1..28,29,30,31
PORT_INFO_FLAG_BITS
Flags bits used to define PORT_INFO_FLAGS.
see NTP_RESTR_FLAG_MSSNTP
MBG_GPIO_PORT_STATES
GPIO port states.
T_GPS t0c
Reference Time Clock [—].
56000baseCR4 Full Duplex (56 GBit/s)
see XMRSF_BIT_ASYMMETRY_STEP_DETECTION
see NTP_PEER_STATE_SUPP_KEY_ID
uint32_t BUILTIN_FEATURE_MASK
Definitions used to classify devices and built-in features.
User captures are being transferred automatically.
uint32_t supp_line_freqs
Bit mask of supported line frequencies, see MBG_IMS_FDM_LINE_FREQ_MASKS.
#define MAX_USER_PERM_BYTES
PTP_HW_FEAT_MASKS
Bit masks used with PTP_HW_FEATURES.
uint8_t pos_row
Row position of this port.
uint32_t flags
reserved, currently always 0
int8_t delta_tlsf
Future UTC offset to GPS system time after next leap second transition [sec].
NTP_TRUSTED_KEY_SETTINGS settings
Local date and time computed from GPS time.
See MBG_LICENSE_TIME_MONITOR_MEMBER_MAX_NTP_CLIENTS.
indicates that MBG_GPIO_STATUS is supported
ITU-T G.8265.1 profile extension.
see MBG_NET_INTF_LINK_PORT_TYPE_TP
uint8_t ttl
time-to-live to use with broadcast/multicast/manycast
MBG_GPIO_VIDEO_FORMAT_MASKS
Bit masks associated with MBG_GPIO_VIDEO_FORMATS.
uint16_t reserved1
reserved, currently always 0
See MBG_IO_PORT_ANT_MEMBER_CAB_LEN.
see PTP_PRESETS_DOCSIS_31
see MBG_LED_MODE_FLASH_5S
MULTI_REF_SETTINGS settings
current settings
uint8_t op_mode
MBG_IO_PORT_OP_MODE_BITS
double af1
+- Clock Correction Coefficient 1 [sec/sec]
see PTP_ROLE_MULTICAST_SLAVE
uint32_t supp_flags_peer
supported flags for unicast symmetric-active assocations
IRIG_RX_COMP comp_data
IRIG receiver delay compensation.
Port can be in- & output in parallel like network port.
NANO_TIME offset
estimated time offset from the upstream time source
uint16_t ITU_SSM_CODE
A type which holds one of the ITU-T SSM codes.
uint32_t supp_shapes
bit mask of supported signal shapes, see MBG_GPIO_SIGNAL_SHAPE_MASKS
uint32_t ticks_per_sec
resolution of fractions of seconds, see GPS_TICKS_PER_SEC
uint8_t reserved_1
reserved, currently 0
uint32_t td_pos_limit
max. time deviation limit, 1/MBG_IMS_FDM_LIMITS::td_scale s units
NTP supports statistics (e.g. clockstats, loopstats, etc...)
NTP supports MD5 as key hashing algorithm.
the port currently operates in unicast mode
uint32_t n_supp_recvs
Number of supported network receivers, see MBG_UCAP_NET_RECV_INFO_IDX.
Supports the GPS_REBOOT command.
see MBG_NET_INTF_LINK_TYPE_BOND
uint32_t supp_flags
See MBG_SYSLOG_FLAG_MSKS.
MBG_GPIO_VIDEO_OUT_FLAG_MASKS
Bit masks associated with MBG_GPIO_VIDEO_OUT_FLAGS.
NTP symmetric key specific settings.
uint16_t number_foreign_records
Current IRIG settings and supported codes.
Supports the GPS_SAVE_CFG command.
see USER_MNGMNT_SUPP_USER_LEVEL_CFG
Precision Time Protocol (PTP/IEEE1588)
uint16_t idx
0..MBG_NET_GLB_CFG_SETTINGS::num_intf_addr-1
both NTP client and server
Configuration settings of a serial port.
MBG_DATABASE_SETTINGS::flags is valid
XMR_SETTINGS_FLAG_BITS
Bit masks used to define XMR_SETTINGS_FLAG_MSKS.
NTP_REFCLK_CFG_SETTINGS settings
See NTP_REFCLK_CFG_SETTINGS.
PTP_V1_UUID grandmaster_uuid
uint16_t CSUM
checksum used by some structures stored in non-volatile memory
uint16_t max_ptpv2_clients
Maximum number of supported PTPv2 clients to be monitored.
see MBG_UCAP_NET_SUPP_FLAG_IPV6
uint32_t reserved
Future use.
RECEIVER_INFO_FLAG_BITS
Bits used to define RECEIVER_INFO_FLAG_MASKS.
Supported options of a BITS type GPIO output.
see MBG_NET_INTF_ADDR_BIT_AUTOCONF
uint32_t reserved0
reserved, currently always 0
IRIG_RX_COMP_GROUPS
Types to be used with CAL_REC_HDR::idx.
uint32_t pDlyRespMsgPerSecRx
Accepted PDelay Response message Rx counter.
uint16_t flags
See MBG_GNSS_MODE_INFO_FLAG_MASKS.
RECEIVER_MODES
Satellite receiver modes of operation.
uint16_t flags
see HAVEQUICK_FLAG_MASKS
A structure used to configure optional settings.
Media Independent Interface (MII), external receiver.
NTP "discard" rate limiting settings as described at ntp.org's manual.
[R/-] supports multicast master role, see PTP_ROLE_MULTICAST_MASTER
int32_t currentLocalOffset
frequency file not available
int8_t log_delay_req_intv
See MBG_IO_PORT_DIR_IN_OUT.
Always enable port after being sync once.
uint8_t num_rows
Number of port rows this device supports.
MBG_HOSTNAME hostname
hostname, eventually FQDN including domain name
see PTP_OPT_EXT_TELECOM_PTS
uint8_t proto
Transfer protocol, see MBG_UCAP_NET_TRANSF_PROTO.
TX output local time instead of UTC.
port is used internally and should not be displayed by config apps
Link is running on Fast Ethernet (no MASTER/SLAVE decision)
peer could not be reached
see PORT_INFO_FLAG_BIT_BIN_PROT_HS
uint8_t headway
Indicator for the KoD packet, TODO: further investigation.
MBG_TLV_TYPES
Enumeration of known TLV types.
AUTOMATIC/REMOTE or MANUAL Mode.
[R/-] PTP stack supports configuration of static delay asymmetry to be compensated ...
int8_t sec
seconds, 0..59, or 60 in case of inserted leap second
Output state of FDM device.
NTP leapfile settings to be read from / written to a device.
number of defined protocols
uint32_t reserved_3
Reserved for future use, currently 0.
see USER_SCOPE_STATUS_READ
Unknown slot type, i.e. slot type not supp.
uint16_t reserved_0
reserved, currently always 0
Master port in group, i.e. configurable port of LIU.
uint32_t supp_flags
Supported NTP system state values, see NTP_SYS_STATE_SUPP_FLAG_MASKS.
PTPv1 Slave in Multicast mode.
Information on available XBP nodes.
MBG_IMS_FDM_FLAGS
IMS FDM flags.
uint8_t n_channels
number of satellites which can be tracked simultaneously
MBG_IO_PORT_SETTINGS settings
See MBG_IO_PORT_SETTINGS.
uint32_t reserved_3
Reserved for future use, currently 0.
uint32_t supp_formats
see HAVEQUICK_FORMAT_MASKS
NTP refclock info, with index.
MBG_UCAP_NET_TRANSF_MODE_MASKS
Masks for transfer mode used with MBG_UCAP_NET_GLB_INFO::supp_modes.
PTP_CLOCK_ID clock_identity
identity of the local clock, see PTP_CLOCK_ID
impossible to lock to external 10 MHz reference
uint16_t good_svs
Numb. of satellites that can currently be received and used.
MBG_IO_PORT_GRP_ROLE_MSKS
Masks for MBG_IO_PORT_GRP_ROLE_BITS.
Supports DAC control via PCI or USB bus API.
uint8_t rear
Indicates, whether the port is on the front or rear side.
uint8_t num_servers
Number of configured servers.
supports root dispersion, see NTP_SYS_STATE::root_disp
uint32_t type
GPIO type, see MBG_GPIO_TYPES.
uint8_t ptp_timescale
set, if the timescale of the grandmaster clock is PTP
Slot for power supply units.
PORT_INFO_FLAGS
Bit masks used with PORT_INFO::flags.
uint32_t scale
scale, see MBG_GPIO_STUDIO_CLOCK_SCALES
the number of known states
uint8_t hop_count
Used as index to the addr array.
MBG_NET_INTF_LINK_BOND_MODES
Network interface link bonding mode.
NTP_LI_BITS
Enumeration of NTP leap indication bits.
uint8_t reserved_1
Future use.
uint32_t flags
Restriction flags, see NTP_RESTR_FLAG_MSKS.
uint8_t reserved_2
reserved, currently 0
MBG_TIME_SCALES
Known time scales.
uint32_t supp_flags
Supported flags, see MBG_UCAP_NET_SUPP_FLAG_MASKS.
see NTP_SYMM_KEY_HASH_MD5
PTP state changed to PASSIVE.
CAL_REC_TYPES
Types to be used with CAL_REC_HDR::type.
Peer settings for NTP devices to configure an upload NTP server.
#define MAX_SUPP_BASE_FREQUENCIES
max. supported base frequencies for studio clock outputs
int32_t sys_jitter
[us] Combined jitter of the system
T_GPS tot_51
time of transmission, page 51
Framing index exceeds num supp by driver SW.
uint32_t network_incaccuracy
Pre-defined network inaccuracy from master in [ns].
uint32_t rxPerSec
overall Rx packet counter
uint16_t reserved_1
reserved, currently unused and always 0
uint16_t listening_port
snmpd listening port, 161 by default
uint16_t reserved
reserved, currently always 0
See NTP_GLB_STATS_FLAG_RAWSTATS.
uint32_t flags
See MBG_IO_PORT_MSKS.
MBG_IMS_FDM_OUTPUT_STATE state
uint32_t supp_flags
Reserved, currently 0.
uint32_t freq_max
maximum output frequency [Hz]
uint32_t supp_modes
supported modes, see MBG_IMS_FDM_OUTPUT_MODE_MASKS
XMULTI_REF_SETTINGS settings
current settings
uint16_t idx
0..MBG_UCAP_NET_GLB_SETTINGS::num_recvs-1
the number of defined bits
PTPv1 Master in Multicast mode.
Only use this for MBG_IO_PORT_SETTINGS::direction if MBG_IO_PORT_SETTINGS::op_mode is MBG_IO_PORT_OP_...
uint32_t RI_FEATURES
A data type to specify feature flags within RECEIVER_INFO.
see MBG_GPIO_STUDIO_CLOCK_SCALE_1_DIV_16
COM_HANSHAKE_MODES
Enumeration of handshake modes.
output 5 MHz rather than 100 kHz
See NTP_ORPHAN_MODE_FLAG_SUPP_DISABLE.
uint32_t supp_flags
a bit mask indicating which flags are supported
uint32_t pDlyReqMsgTx
PDelay Request message Tx counter.
see USER_CFG_CAN_DISABLE_ON_FAILS
uint8_t reserved_3
Future use.
char IP6_ADDR_STR[(43+1)]
A buffer for an IPv6 address string.
uint32_t supp_modes
bit mask of modes supp. for this string type, see STR_MODE_MASKS
XMR timing metrics for a particular source, with index.
uint32_t read_bytes
Number of bytes read.
int16_t phase
-MAX_SYNTH_PHASE..+MAX_SYNTH_PHASE; >0 -> pulses later
uint8_t type
See MBG_LICENSE_BASE_TYPES.
uint32_t idx
index, 0..PTP_UC_MASTER_CFG_LIMITS::n_supp_master-1
PTPv1 parent dataset containing information about the master (parent) of the device.
uint16_t number_ports
number of PTP ports on the device
uint32_t mgmtPerSecTx
Management message Tx counter.
uint8_t reserved_1
Future use and padding, currently 0.
#define PTP_SUBDOMAIN_NAME_LENGTH
uint16_t reserved_2
Future use.
uint32_t td_neg_limit
min. time deviation limit, 1/MBG_IMS_FDM_LIMITS::td_scale s units
uint16_t grandmaster_sequence_number
uint32_t supp_epochs
supported epochs, see MBG_GPIO_VIDEO_EPOCH_MASKS
Query MBG_NET_INTF_LINK_INFO by its index.
uint32_t announceMsgPerSecRx
Accepted Announce message Rx counter.
int8_t clock_accuracy
see PTP_CLOCK_ACCURACIES
uint8_t supp_versions
See MBG_SNMP_VERSION_MSKS.
MBG_TRANSACTION_TYPES
Type of upcoming transaction sequence.
MBG_GPIO_STUDIO_CLOCK_OUT_SETTINGS studio_clk_out
if MBG_GPIO_SETTINGS::type is MBG_GPIO_TYPE_STUDIO_CLOCK_OUT
Baud rate not supp by given port.
POUT_SETTINGS pout_settings
uint32_t supp_freq
bit mask of supported fixed frequencies, see MBG_GPIO_FIXED_FREQ_MASKS
XBP_DEVICE_STATES
Possible states of an XBP device.
uint8_t flags
See MBG_SERVICE_INFO_MSKS.
uint8_t masterLockingStatus
used to receive full TimeMon Status structure
Simple Network Time Protocol (sntp)
Client settings of an NTP device.
see XMR_STATS_FLAG_BIT_AUTO_BIAS_VALID
a leap second is being announced
uint8_t wday
reserved, currently always 0
10 MHz fixed frequency output.
reference time signal not settled
uint16_t flags
Currently reserved, always 0.
send a burst of eight packets at each polling cycle
entering normal operation
uint32_t supp_flags
supported NTP flags, see NTP_FLAG_MASKS
uint8_t mode
Driver specific "mode" ::FIXME Flag to enable "mode"?
int16_t valid
flag data are valid
MBG_GPIO_CFG_LIMIT_FLAG_BITS
GPIO limits flag bits used to define MBG_GPIO_CFG_LIMIT_FLAG_MASKS.
Real physical network interface.
Configuration settings for a HaveQuick input or output.
NTP_REFCLK_CFG_FLAGS
Enumeration of NTP refclock config flags.
See MBG_IO_PORT_OP_MODE_DISABLED. Other bits should be 0 in this case.
enable B8ZS encoding (T1 mode only)
double alpha_2
Ionosph. Corr. Coeff. Alpha 2 [sec/deg^2].
uint8_t max_symm_keys
number of available symm keys that can be generated, see NTP_SYMM_KEY_INFO_IDX
XMR_HOLDOVER_STATUS and associated types supported
Current settings and general capabilities of a specific unicast master.
PTP_UC_MASTER_INFO info
capabilities and current settings
uint32_t ucaps
Bit mask for active user captures.
see NTP_SYS_STATE_SUPP_SYS_ASSOC
impossible to lock to external 1 PPS reference
uint8_t announce_receipt_timeout
shall be an integral multiple of MBG_PTP_V2_PORT_DATASET::log_announce_interval
double alpha_1
Ionosph. Corr. Coeff. Alpha 1 [sec/deg].
see MBG_GPIO_DEPENDS_ON_ASS_IO_IDX
the user is disabled, because the max number of login fails has been exceeded
Query MBG_NET_INTF_ROUTE_INFO by its index.
uint16_t reserved_2
reserved, currently 0
Almanac parameters incomplete.
uint32_t reserved_3
Future use.
uint8_t bg_colour
Background colour of the IO ports, see MBG_IO_PORT_BG_COLOURS.
uint16_t drv_flags_enable
Enable/disable driver specific flags, see NTP_FUDGE_FLAG_NUMBERS.
Handshake mode not supp by given port.
Device has ports at the front side.
uint16_t reserved
Currently reserved, unused, always 0.
Supports the GPS_UCAP_NET_GLB_INFO and GPS_UCAP_NET_RECV_INFO_IDX commands, see User Captures via Net...
NTP_CPU_TYPES
Enumeration of CPU types using NTP.
Information on an XBP node with specific index.
uint32_t flags
currently unused, always 0
double crs
+- Sine Corr. Term to Orbit Radius [m]
MBG_MAC_ADDR broadcast
Physical broadcast address.
supports MBG_OPT_SETTINGS
SMPTE274M-6 1080i at 50 Hz.
MBG_USER_PERM_BUF cfg_read_perm
config read permission configuration, see MBG_USER_PERM_BUF and MBG_USER_PERMS
see PTP_FLAG_TIMESCALE_IS_PTP
uint8_t ssm
synchronization status message, if supported by signal source
uint32_t reserved_2
currently reserved, unused, always 0
uint32_t flags
see XMR_INST_FLAG_BIT_MASKS
uint16_t num_ufus
Number of available UFUs.
uint32_t reserved_1
Future use.
uint32_t reserved_2
Future use.
uint32_t reserved2
reserved, currently always 0
VLF/LF radio (WWVB, DCF77, etc.)
NTP supports cryptostats.
[R/-] supports PTPv1 MASTER role
see MBG_GNSS_FLAG_SAT_INFO_IDX_SUPP_SER
uint16_t sys_peer
Index of the current system peer.
uint32_t sec
the second of that week
delete second 23:59:59 of the current day
uint16_t supp_triggers
See MBG_MONITORING_TYPE_MSKS.
ref type cfg'd for this level is not supported
RI_FEATURES features
optional features, see GPS_FEATURE_MASKS
GPS_BUILTIN_FEATURE_BITS
Enumeration of classifiers and built-in features.
Code locked and time synchronized.
see PTP_PRESETS_TELECOM_PHASE
uint8_t priority_2
priority 2 attribute for the local clock
see MBG_GPIO_VIDEO_HD_FORMAT_1080_I_50Hz
MBG_TIME_SCALE_SETTINGS max_settings
number of scales, all supported flags
see GBIT_LINK_COPPER_FORCE_OR_IS_SLAVE
SYNTH_STATES
Enumeration of synthesizer states.
supports association ID, see NTP_PEER_STATE::ass_id
int16_t grandmaster_variance
peer shall be treated as a pool server
1) MBG_TLV_TYPE_BLOB => MBG_LICENSE_LIMITS, see License information
uint16_t reserved_2
reserved, currently 0
uint16_t n_supp_intf_addr
max. number of supported interface addresses, see MBG_NET_INTF_ADDR_SETTINGS_IDX, MBG_NET_INTF_ADDR_I...
Supports tainted config structures, see Tainted config.
Output is normally always 'off', or always 'on', if flag POUT_INVERTED is set.
A GPIO port's current settings and limits.
uint32_t idx
port index, 0..MBG_GPIO_CFG_LIMITS::num_io-1
[R/-] PTP Config has extended supp_flags
NTP_GLB_STATS_MASKS
Flag masks associated with NTP_GLB_STATS_FLAGS.
Supports database(s), see Database(s).
impossible to lock to GPS
See MBG_LICENSE_TIME_MONITOR_MEMBER_MAX_PTPV2_CLIENTS.
uint8_t reserved
reserved, currently always 0
int32_t root_disp
[us] Total dispersion to the system peer
see MBG_GPIO_FIXED_FREQ_48kHz
see MBG_GPIO_STUDIO_CLOCK_SCALE_8
Indicate there are unknown files (older FW scans newer files)
number of supported presets
uint8_t delay_mech
see PTP_DELAY_MECHS
uint32_t reserved1
reserved, currently always 0
uint16_t reserved_1
Future use.
MBG_IO_PORT_SETTINGS_U data
Data union for settings' type.
SCU_STAT_MASKS
Bit masks used to check the SCU EPLD status.
uint16_t GPS_CMD
The type of a GPS command code.
uint32_t reserved
reserved for future use, currently always 0
Firmware reset to factory defaults.
oscillator control loop not settled
MBG_TLV_TYPE type
One of the MBG_TLV_TYPES or MBG_TLV_FEAT_TYPES depending on the type of message.
both serial ports on, use with ENABLE_FLAGS::serial
ITU_SSM_CODES
ITU-T SSM codes acc. to Recommendation G.781.
uint16_t steps_removed
number of communication paths between local clock and grandmaster
uint8_t ptp_prot_version
PTP protocol version, 1, or 2, usually 2 for v2.
uint32_t reserved_5
Reserved, currently 0.
the timescale is PTP standard, not arbitrary
MBG_IP_ADDR ref_id
Reference ID of the current system peer, see MBG_IP_ADDR.
uint8_t avg
Specify the minimum average interpacket spacing in log2 s.
uint16_t n_supp_intf_link
max. number of supported physical network interfaces (links), see MBG_NET_INTF_LINK_SETTINGS_IDX, MBG_NET_INTF_LINK_INFO_IDX
MBG_GPIO_FREQ_IN_SETTINGS freq_in
if MBG_GPIO_SETTINGS::type is MBG_GPIO_TYPE_FREQ_IN
Specific output settings and limits.
frequency set from frequency file
String type index exceeds num supp by device.
TM_GPS tm_disconn
time of antenna disconnect
see NTP_RESTR_FLAG_LIMITED
uint8_t num_dns_srvr
number of configured DNS servers, see MBG_IP_ADDR_IDX
permission to read/change the user password
56000baseLR4 Full Duplex (56 GBit/s)
uint8_t avg_min
Minimum value for avg.
see MBG_GPIO_BITS_T1_FRAMED
double af0
+- Clock Correction Coefficient 0 [sec]
uint8_t type
Restriction type, see NTP_RESTR_TYPES.
uint16_t reserved_3
Future use.
Input signal is avail right now.
uint8_t value
the parameter value
uint32_t supp_protos
Supported transfer protocols, see MBG_UCAP_NET_TRANSF_PROTO_MASKS.
MBG_OPT_FLAGS
Bit masks according to MBG_OPT_BITS.
double OMEGA0
+- Longit. of Asc. Node of orbit plane [rad]
Configuration of a GPIO as BITS output module.
MBG_TAINTED_CFGS
Array positions in MBG_TAINTED_CFG::tainted_cfgs.
uint32_t flags
Flags, see MBG_IMS_FDM_FLAG_MASKS.
uint32_t reserved_2
Future use.
see XMR_STATS_FLAG_BIT_STEP_DETECTED
GPS_MODEL_CODES
Known device ID codes for RECEIVER_INFO::model_code.
See MBG_LICENSE_NTP_MEMBER_MAX_RPS.
uint16_t flags
see XMR_SETTINGS_FLAG_MSKS and XMR_EXT_SRC_INFO::supp_flags
uint32_t reserved_1
currently reserved, unused, always 0
see MBG_IMS_FDM_LINE_FREQ_50HZ
uint32_t supp_flags
bit mask of supported flags, see MBG_GPIO_BITS_OUT_FLAG_MASKS
this ref source has low jitter
MBG_PTP_V2_TIME_PROPERTIES_DATASET_FLAGS flags
flags field, see MBG_PTP_V2_TIME_PROPERTIES_DATASET_FLAGS
See MBG_IO_PORT_SRC_CONFIGURABLE.
uint16_t parent_last_sync_sequence_number
uint8_t reserved
reserved, currently always 0
uint8_t ptp_role
one of the supported PTP roles, see PTP_ROLES
see MBG_NET_INTF_LINK_BOND_MODE_ACTIVEBACKUP
PTP_V1_DEFAULT_DATASET_FLAGS_MASKS
PTPv1 default dataset flag masks used with MBG_PTP_V1_DEFAULT_DATASET::flags.
uint8_t ssm
ssm for E1 mode, 0..N_GPIO_SSM_VALS-1
MBG_DATABASE_SETTINGS::dbname is valid
uint32_t reserved
Reserved, currently always 0.
see NTP_FLASH_STAT_PKT_AUTH
MBG_DATABASE_SETTINGS_FLAG_MSKS
See NTP_GLB_STATS_FLAG_CLOCKSTATS.
MBG_LICENSE_BASE base
See MBG_LICENSE_BASE.
distance threshold exceeded
uint8_t grasp_col
Column position of the device grasp, consider MBG_IO_PORT_MSK_NO_GRASP.
NTP supports "discard" rate limiting.
uint16_t event_port_address
uint16_t mode
Mode of operation, see RECEIVER_MODES.
Configuration of a GPIO as studio clock output module.
Only one of the supported GNSS systems can be used at the same time.
uint32_t flags
reserved, currently always 0
int8_t mday
day of month, 1..31
General GPIO config info to be read from a device.
MBG_TLV_UID tlv_type
"Subtype" identifying current TLV, see MBG_TLV_TYPES
This default restriction only applies to IPv6.
MBG_IP_ADDR_PORT addr
Destination IP and port address of the network receiver, see MBG_IP_ADDR_PORT.
uint8_t slot_type
See XBP_NODE_INFO::slot_type, or MBG_OWN_EVENT_SLOT_TYPE.
MBG_GPIO_DIGITAL_AUDIO_TYPE_MASKS
Bit masks associated with MBG_GPIO_DIGITAL_AUDIO_TYPES.
int8_t stratum
Stratum number to be fudged; -1 if unspecified and thus default is to be used.
T_GPS t0t
Reference Time UTC Parameters [wn|sec].
uint32_t reserved_2
reserved, currently not used
MBG_GPIO_INFO info
limits and current settings of this GPIO port
uint32_t MBG_TLV_TYPE
A data type to hold one of the MBG_TLV_TYPES or MBG_TLV_FEAT_TYPES.
uint32_t reserved1
reserved, currently always 0
uint8_t n_com_ports
number of on-board serial ports
MBG_USER_STATUS status
status, see MBG_USER_STATUS
uint32_t reserved0
reserved, currently always 0
MBG_TLV_DATA data
See MBG_TLV_DATA.
1) MBG_TLV_TYPE_FILE => Encrypted license file as data blob
NTP_SYNC_SRC_BITS
Enumeration of NTP synchronization source bits.
A generic structure used to specify FDM limits.
uint16_t mode
Mode of operation, see POUT_MODES.
uint32_t reserved_5
Reserved for future use, currently 0.
PTP_NW_PROT_MASKS
Bit masks for enumerated protocols possibly used with PTP.
uint32_t reserved_2
Currently reserved, unused, always 0.
NTP_FLASH_STAT_FLAG_MASKS
Flag masks for NTP_FLASH_STAT_FLAGS.
src is allowed to operate as zero asymmetry master
see PTP_NW_PROT_DEVICE_NET
A structure used to store extended device features.
uint16_t model_code
One of GPS_MODEL_CODES.
the announced leap second is negative
Network Time Protocol daemon (ntpd)
Supports extended revision information, see Extended system information.
Port is output like 10Mhz.
XMR_EXT_SRC_FEAT_FLAG_BITS
XMR source feature flag bits.
has simple LAN IPv4 interface, superseded by GPS_FEAT_NET_CFG
NANO_TIME_64 time1
Driver specific.
see HQ_FLAG_SIGNAL_INVERTED
Supports commands GPS_REGISTER_PUSH_MSGS and GPS_UNREGISTER_PUSH_MSGS.
uint8_t reserved_1
Future use.
time difference exceeds error limit
#define IP6_ADDR_STR_SIZE
Buffer size required to store an IPv6 address string.
current second is leap second
uint32_t reserved_4
reserved, currently 0
Query MBG_NET_INTF_ADDR_SETTINGS by its index.
#define MBG_MAX_USER_NAME_LEN
IFLAGS_BIT_MASKS
Bit masks used with IRIG_SETTINGS::flags.
STR_MODES
Enumeration of modes supported for time string transmission.
XMR_STATS_FLAGS_BITS
Enumeration of bits used to define XMR_STATS_FLAGS_MSKS.
Originally Shipped Version.
uint8_t L2code
code on L2 channel [—]
uint8_t reserved_1
reserved, currently always 0
indicates 4 power supplies instead of 2
uint32_t supp_types
supported types, see MBG_GPIO_VIDEO_SYNC_TYPE_MASKS
MBG_NET_INTF_LINK_TYPES
Network interface link type bits.
Structure that represents a timestamp in NTP Short Format.
int32_t dac_val
current DAC value, positive or negative
XMR statistics for a particular source, with index.
MBG_GPIO_STUDIO_CLOCK_BASE_FREQ_MASKS
Bit masks associated with MBG_GPIO_STUDIO_CLOCK_BASE_FREQS.
SMPTE296M-3 720p at 50 Hz.
marks a server as not to be selected for time synchronization
MBG_GPIO_VIDEO_SYNC_OUT_SETTINGS video_sync_out
if MBG_GPIO_SETTINGS::type is MBG_GPIO_TYPE_VIDEO_SYNC_OUT
double tgd
+- estimated group delay differential [sec]
Antenna is disconnected, tm_reconn and delta_t not yet set.
uint32_t reserved1
reserved, currently always 0
int16_t year
year number, 0..9999
uint8_t source
MBG_IO_PORT_SRCS
uint8_t domain_number
domain attribute of the local clock
supports headway, see NTP_PEER_STATE::headway
long wave receiver. e.g. DCF77 AM, WWVB, MSF, JJY
double cuc
+- Cosine Corr. Term to Arg. of Latitude [rad]
uint32_t supp_limits
supported ITU limit masks for BITS signal see ITU_LIMIT_MASKS
number of predefined fixed frequencies
A generic structure used to hold a GPIO port's settings.
XBP_NODE_INFO node_info
RECEIVER_INFO of the device behind this node
uint32_t supp_flags
see MBG_NET_INTF_ADDR_MASKS
Only use this for MBG_IO_PORT_SETTINGS::source if MBG_IO_PORT_SETTINGS::op_mode is MBG_IO_PORT_OP_MOD...
uint32_t ass_if_index
Index of the associated interface link, see MBG_NET_INTF_LINK_SETTINGS::if_index. ...
MBG_GPIO_SIGNAL_SHAPES
Enumeration of known signal shapes.
see XMRSF_BIT_IS_PHASE_SRC
uint8_t reach
Shift register for the last 8 polling intervals.
MBG_IMS_FDM_OUTPUT_SETTINGS settings
uint32_t reserved_1
Reserved for future use, currently 0.
Framing index exceeds num supp by device.
see MBG_GPIO_BITS_E1_FRAMED
number of known flag bits
enable Bit for output MUX, set if enabled
Output signal generated by the programmable frequency synthesizer.
NTP_MODE_BITS
Enumeration of NTP mode bits.
see GBIT_LINK_COPPER_PREFER_MASTER
uint32_t syncMsgRx
Accepted Sync message Rx counter.
PTP_STATE_FLAG_MASKS
Flags masks used with PTP_STATE::flags.
Windows time service (w32time)
MBG_IO_PORT_SRCS
Port type sources.
uint16_t reserved_2
Reserved for future use, currently 0.
uint8_t major_version
Major version number.
see NTP_FLASH_STAT_PEER_UNREACH
uint32_t upper_bound
sync state set to false if above this limit [ns]
MBG_DATABASE_SETTINGS::password is valid
double beta_2
Ionosph. Corr. Coeff. Beta 2 [sec/deg^2].
MBG_GPIO_DIGITAL_AUDIO_OUT_SUPP digital_audio_out
if MBG_GPIO_SETTINGS::type is ::;MBG_GPIO_TYPE_DIGITAL_AUDIO_OUT
uint32_t supp_bond_modes
see MBG_NET_INTF_LINK_BOND_MODE_MASKS
MBG_TLV_UID uid
Unique ID identifying following TLVs, 0 if empty/not set.
Quality unknown, existing synchronization network.
uint32_t u32
dummy to force at least 32 bit alignment
On board time set externally.
HAVEQUICK_SETTINGS settings
current settings
uint32_t idx
sensor index, 0..MBG_IMS_STATE::num_sensors-1
accept static bias correction from zero asymmetry master
Configuration settings for a single programmable pulse output.
uint32_t flags
reserved, currently always 0
see USER_STAT_DISABLED_ON_EXP
int32_t milli_phase
phase [1/1000 degree units], see MBG_GPIO_FREQ_OUT_SUPP::milli_phase_max
supports precision indication, see NTP_SYS_STATE::precision
UFU flashing is in progress.
The value in XMR_STATS::auto_bias is valid.
see MBG_NET_INTF_LINK_OPT_CAN_AUTONEG
PTP_PORT_IDENTITY port_identity
identity of the local port, see PTP_PORT_IDENTITY
codes B1xx, AFNOR, IEEE1344
Structure that represents the current system status of an NTP device.
src can be used as a trusted src for spoofing detection
the port is currently slave
No other fields valid since antenna has not yet been disconnected.
initial frequency training mode
100baseT Full Duplex (100 MBit/s)
VST_DATA_TYPES
Known common VST data types.
Locally generated, e.g. on (carrier) board.
uint32_t supp_formats
supported video formats, see MBG_GPIO_VIDEO_FORMAT_MASKS
uint32_t supp_flags
supported NTP flags, see NTP_FLAG_MASKS
10 MHz output is always disabled
see MBG_GPIO_STUDIO_CLOCK_SCALE_16
supports interleave delay, see NTP_PEER_STATE::xleave
uint16_t BVAR_STAT
Status flags of battery buffered data.
[R/-] supports TSU reset via register cmd
PCPS_GEN_IO_TYPES
Data types used with GEN_IO_INFO::type.
uint8_t frequency_traceable
set, if the frequency determining the timescale is traceable to a primary reference ...
Analog output reflects time deviation.
uint8_t timeout
In seconds.
MBG_GNSS_MODE_INFO_FLAG_MASKS
Flag masks used with MBG_GNSS_MODE_INFO::flags.
struct NTP_PEER_STATE NTP_REFCLK_STATE
[R/-] supports the NTP HW time stamping in Master mode
in holdover mode after previous synchronization
uint8_t port_idx
Index of the associated IO port, or MBG_INV_EVENT_PORT.
see MBG_NET_GLB_SUPP_BONDING
uint32_t supp_stats
See NTP_GLB_STATS_MASKS.
PTPv2 time properties dataset.
MBG_GPIO_SIGNAL_SHAPE_MASKS
Bit masks associated with MBG_GPIO_SIGNAL_SHAPES.
Port is input like PPS In.
double beta_1
Ionosph. Corr. Coeff. Beta 1 [sec/deg].
uint8_t communication_technology
Meinberg device tree describes e.g. front connectors.
uint8_t supp_base_freqs
supported base frequencies, see MBG_GPIO_STUDIO_CLOCK_BASE_FREQ_MASKS
number of compensation values
XMR_INST_FLAGS
Enumeration of flag bits used with XMULTI_REF instances.
EGNOS, European Geostationary Navigation Overlay Service.
see XMRIF_BIT_HOLDOVER_STATUS_SUPP
supports precision indication, see NTP_PEER_STATE::precision
IP4_ADDR ip_addr
the IP address
String mode index exceeds num supp by device.
see MBG_GPIO_BITS_ERR_LOF
Time scale configuration settings.
uint32_t flags
See MBG_FW_FLAG_MSKS.
uint32_t reserved_1
Currently reserved, always 0.
uint8_t poll_intv_min
minimal supported NTP polling interval
This default restriction only applies to IPv4.
NTP refclocks not configurable.
output level can't be inverted, thus POUT_INVERTED is not supported for this output ...
See MBG_IO_PORT_SRC_ASSOC_CLOCK.
uint32_t supp_flags
a bit mask of supported features, see PTP_CFG_FLAG_MASKS
Supported options of a video type GPIO output.
Slot for processing units.
MBG_IMS_SENSORS
IMS sensor types.
uint8_t poll_intv_max
maximum supported NTP polling interval
uint32_t frac
fractional part, binary (0x80000000 –> 0.5, 0xFFFFFFFF –> 0.9999999...)
Firmware has been activated.
see MBG_EXT_SYS_INFO_BIT_OS_TYPE
MBG_LICENSE_TIME_MONITOR_MEMBER_MSKS
Bit masks of Sync Monitor license specific members.
Supports power control, see Definitions for power control API.
NTP refclock specific settings.
MBG_USER_SETTINGS settings
PTP state changed to UNCALIBRATED.
uint8_t reserved_0
reserved, currently always 0
modulated (G143 is undefined, SBS not supported with Gxxx)
1) MBG_TLV_TYPE_BLOB => Unified Firmware Update (UFU) file, see mbg_ufu.h
uint8_t n_outputs
number of outputs per module
uint8_t parent_clock_accuracy
clock accuracy of the parent node, see PTP_CLOCK_ACCURACIES
Device has ports at the rear side.
Current settings and general capabilities of a programmable pulse output.
MBG_IO_PORT_STATUS_BITS
Port Type Status Bits.
uint32_t reserved_3
reserved, currently 0
XMR_STATS_FLAGS_MSKS
Flag bit masks used with XMR_STATS::flags.
NTP_TSTAMP sys_time
Current system time, see NTP_TSTAMP.
uint8_t sec_level
See MBG_SNMP_V3_SEC_LEVELS.
see MBG_UCAP_NET_TRANSF_MODE_UNKNOWN
uint8_t release_candidate
Release candidate revision information.
uint8_t peer_reach_stat
Current reach status of the peer, see NTP_REACH_STAT_BITS.
uint16_t fpga_type
See MBG_EXT_SYS_INFO_FPGA_TYPES.
see MBG_GPIO_STUDIO_CLOCK_BASE_FREQ_48KHZ
uint16_t reserved_2
reserved, currently always 0
Status information on a single GPIO port.
uint8_t max_v3_settings
Only valid if MBG_SNMP_GLB_INFO::supp_versions contains MBG_SNMP_VERSION_MSK_V3.
uint32_t reserved_3
Future use.
See MBG_IO_PORT_SRC_CLK2.
see POUT_BIT_NOT_INVERTIBLE, POUT_INVERTED
See NTP_GLB_STATS_FLAG_FILEGEN.
uint8_t ptp_proto_version
PTP protocol version, 1, or 2, usually 2 for v2.
uint16_t value_dict_entries
Number of entries in value dictionary, see MBG_EVENT_VALUE_IDX.
PTP_PRESETS_MASKS
Flag masks used with PTP_CFG_INFO::supp_opt_ext.
number of known optional extensions
MBG_HOSTNAME receiver_addr
uint8_t access_type
See MBG_SNMP_ACCESS_TYPES, ignore in trap settings.
10000baseKR Full Duplex (10 GBit/s)
See MBG_IO_PORT_SRC_STATIC.
uint32_t trans_bytes
Number of bytes transferred so far related to this TLV type.
MBG_GPIO_FIXED_FREQS
Enumeration of predefined fixed frequencies.
IPV6_MULTICAST_SCOPES
Possible IPv6 Multicast Scopes.
const char * name
the parameter name
insert second after 23:59:59 of the current day
int8_t curr_prio
current priority level, 0..XMULTI_REF_INSTANCES::n_xmr_settings, or XMR_PRIO_LVL_UNSPEC ...
GPS_OSC_TYPES
Known oscillator types used with RECEIVER_INFO::osc_type.
General NTP peer settings limits to be read from a device.
uint32_t supp_types
supported digital audio types, see MBG_GPIO_DIGITAL_AUDIO_TYPE_MASKS
See MBG_IO_PORT_FLAG_REAR_PORTS.
SCU_CTRL_MASKS
Bit masks used to control the SCU EPLD.
#define MAX_XFEATURE_BYTES
Array size required to store all extended features.
uint32_t rsvd_0
reserved, currently always 0
NTP_FLAGS
Enumeration of global NTP flags.
number of defined base frequencies
int8_t precision
Precision of the system clock (2^precision)
uint32_t reserved_1
Future use.
CAL_REC_IRIG_RX_COMP (read/write)
[R/-] PTPv2 common dataset structures (see IEEE1588-2008, chapter 8.2) can be queried ...
uint32_t reserved
reserved, currently always 0
Output switched on if receiver position verified (condition nav_solved).
see NTP_SYS_STATE_SUPP_FREQ
supports Time Code for SD Black Bursts
codes B0xx, AFNOR DC, IEEE1344 DC
MBG_USER_PERM_BUF stat_read_perm
current status read permissions, see MBG_USER_PERM_BUF and MBG_USER_PERMS
uint32_t reserved_1
currently reserved, unused, always 0
See MBG_DATABASE_SETTINGS_FLAG_ENABLE.
state of time sync signal clk_2
Generic state of an IMS sensor.
uint32_t flags
See NTP_GLB_STATS_MASKS.
MBG_LNE_PORT_SETTINGS settings
LNE settings.
NTP_PEER_SEL_STATUS_BITS
Enumeration of NTP peer selection status.
Common license information.
uint32_t supp_flags
supported flags, see MBG_USER_CFG_FLAG_MASKS
MBG_NET_INTF_ADDR_SETTINGS settings
see MBG_NET_INTF_ADDR_SETTINGS
#define N_NTP_SYMM_KEY_MAX_IP_ADDR
uint8_t static_hold_threshold
MBG_IP_ADDR ip
IP address associated with this interface.
uint8_t opt_ext
optional configuration extension, see PTP_OPT_EXTS
PTP_HW_FEAT_BITS
Bits used to define PTP_HW_FEAT_MASKS.
Peer-to-Peer (in PTP2 specs: 0x02)
Configuration settings for a single LNE port.
uint8_t host_poll
Host NTP polling interval.
uint8_t enable
Generally enable / disable orphan mode.
int16_t ann_intv
log2 of the announce interval [s]
Unknown NTP implementation.
uint32_t reserved_3
Reserved, currently 0.
uint8_t slot_id
slot number on the chassis
double alpha_3
Ionosph. Corr. Coeff. Alpha 3 [sec/deg^3].
uint16_t n_xmr_settings
number of XMULTI_REF_INFO_IDX or XMULTI_REF_STATUS_IDX which can be retrieved
uint32_t supp_modes
Supported modes, see MBG_LED_MODE_MASKS.
uint8_t osv_fw
Index of OSV firmware.
uint8_t use_alternate_multicast_address
[R/-] supports the configurable usage of the Alternate Time Offset Indicator TLV
double A0
+- Clock Correction Coefficient 0 [sec]
uint32_t numMsgPerSec
Number of all messages per second (TX/RX)
uint16_t nw_prot
see PTP_NW_PROTS
WDT_OK set to zero if watchdog expired.
IEC/IEEE FDIS 61850-9-3, only if PTP_MSK_OPT_EXT_6185093 is set.
uint32_t reserved_0
reserved, currently always 0
Current settings and general capabilities of an LED.
Additional parameters for Telecom8275.1 profile.
uint32_t reserved_3
Future use.
uint16_t port
Remote host port.
[R/-] indicates that PTP_CFG_CAN_BE_MULTICAST_SLAVE flag is supported and can be checked ...
A GPIO port's current settings and limits, plus port index.
MBG_MAC_ADDR mac_addr
The MAC address assigned to this port.
Variable frequency output.
uint16_t reserved_1
Currently reserved, unused, always 0.
NTP_SYMM_KEY_HASH_MASKS
Flag masks associated with NTP_SYMM_KEY_HASHES.
uint32_t reserved_3
Future use.
ITU limits violated (valid if device has XMR_METRICS)
NTP symm key info, with index.
TLV structure containing information on current TLV transaction and its current data.
CAL_REC_HDR hdr
data header
NANO_TIME max_limit
if not 0, the max. allowed value for SHS_SETTINGS::err_limit and SHS_SETTINGS::warn_limit ...
uint32_t reserved_0
reserved, currently not used
GBIT_LINK_STATUS
Link status for SyncE on a 1000BASE-T interface.
uint16_t model_code
identifier for receiver model, see GPS_MODEL_CODES
uint16_t sys_assoc
Association ID of the current system peer, do not use NTP_SYS_STATE::sys_peer if this is supported...
uint8_t impl_type
NTP implementation type, see NTP_IMPL.
MBG_PWR_STATES
Device power states.
POUT_IF_SYNC_ONLY is supported for this output
MBG_GPIO_DIGITAL_AUDIO_TYPES
Enumeration of types used with GPIO type digital audio outputs.
MBG_GPIO_STUDIO_CLOCK_FLAGS
Enumeration of flags used with studio clock type GPIO outputs.
MBG_SNMP_V3_AUTH_PROTOCOLS
configured as unused input
uint32_t reserved_4
Reserved, currently 0.
select bit for output MUX, ( clk_1 = 0 )
uint32_t mgmtErr
Management error counter (rx)
see MBG_NET_INTF_LINK_BOND_MODE_8023AD
MBG_LICENSE_PTPV1_MEMBERS
Bits used to define MBG_LICENSE_PTPV1_MEMBER_MSKS.
supports standard values of NTP_PEER_STATE, all fields except below and reserved
PTP_UC_MASTER_SETTINGS settings
current settings
int32_t root_delay
[us] Total roundtrip delay to the system peer
uint8_t num_dbs
Number of configurable databases.
See MBG_LICENSE_PTPV2_MEMBER_MAX_UCLIENTS.
[R/W] supports hybrid mode in master roles
see MBG_NET_GLB_SUPP_EXT_ROUTING
must be set to enable remote operation
Save database (cyclically) to a persistent storage.
The time of day including hundredths of seconds.
A 1 PPS signal with a fixed 20 us pulse length.
uint32_t signallingPerSecRx
Accepted Signalling message Rx counter.
number of supported sensor types
the user shall be warned about upcoming password expiration
uint32_t reserved_2
Future use.
Additional parameters for SMPTE ST 2059-2 profile.
double idot
+- Rate of Inclination Angle [rad/sec]
see NTP_SYS_STATE_SUPP_ROOT_DISP
See MBG_IO_PORT_FLAG_HORIZONTAL_LAYOUT.
uint8_t reserved_2
reserved, currently always 0
MBG_EXT_SYS_INFO_OS_TYPES
MBG_GPIO_VIDEO_OUT_SUPP video_out
if MBG_GPIO_SETTINGS::type is MBG_GPIO_TYPE_VIDEO_OUT
10baseT Full Duplex (10 MBit/s)
uint32_t reserved_3
reserved, currently unused and always 0
1000baseT Half Duplex (1 GBit/s)
uint8_t label_col
Column position of the device label, consider MBG_IO_PORT_MSK_NO_LABEL.
other (IEEE 1588, openntp, crony, etc.)
Input signal is currently not avail, but has been avail before.
uint16_t flags
reserved, currently always 0
MBG_SNMP_V12_SETTINGS settings
uint32_t reserved_1
currently reserved, unused, always 0
uint32_t length
Payload data length of MBG_DATABASE_CMD::payload.
[R/W] supports hybrid mode in slave roles
Information on a specific supported string format.
NTP supports misc options (e.g. tinker, driftfile, orphan mode, etc...)
see MBG_IMS_FDM_STATE_FLAG_BIT_TD_OVERFLOW
uint32_t reserved_2
Future use.
int16_t status
current status of antenna, see ANT_STATUS_CODES
number of defined video formats
double sqrt_A
Square Root of semi-major Axis [sqrt(m)].
On request '?' only, same as STR_ON_REQ, COM0 and COM1.
A structure used to specify a variable frequency.
RSC device, supersedes XPORT.
NTP supports specifying trusted symmetric keys.
uint32_t ass_if_index
Index of the associated interface link, see MBG_NET_INTF_LINK_SETTINGS::if_index. ...
uint16_t reserved_1
reserved for future use, currently unused and always 0
uint32_t reserved_2
currently reserved, unused, always 0
Input signal has NEVER been avail.
Link (physical interface) specific settings, flags and supported features.
License supports upgrading / modifying.
int64_t offset
[ns] filter offset to this NTP peer
Reference source configuration for a specific priority level.
Organization-Local scope.
LAN interface is a special PTP interface.
Settings, features and flags for receivers of user captures via network.
the number of known modes
MBG_DATABASE_INFO_FLAG_MSKS
uint32_t flags
see PTP_STATE_FLAGS
uint8_t max_fws
Maximum installable firmwares.
Client settings info of an NTP device.
uint32_t reserved_5
Reserved for future use, currently 0.
uint8_t slot_type_id
ID depending on the XBP_NODE_INFO::slot_type, i.e. 1 for CLK1.
End-to-End (in PTP2 specs: 0x01)
MBG_IMS_FDM_OUTPUT_MODES
Enumeration of known output modes.
Kernel (not necessarily Linux)
NANO_TIME_64 t_ref
Current reference time.
uint8_t reserved
Reserved field to yield even structure size.
allow user to login more than once (i.e. via TCP & Web)
uint32_t timestamp
time stamp when the record was taken, UTC, seconds since 1970
Only used as action trigger on a remote site, expects no data.
uint32_t reserved_4
Reserved for future use, currently 0.
IOD IODE2
Issue of Data, Ephemeris (Subframe 2)
see PTP_ROLE_MULTICAST_MASTER
DAC_VAL dac_cal
Oscillator calibration DAC value ( see OSC_DAC_RANGE, OSC_DAC_BIAS )
uint8_t reserved_0
Currently reserved, unused, always 0.
MBG_GPIO_VIDEO_OUT_SETTINGS video_out
if MBG_GPIO_SETTINGS::type is MBG_GPIO_TYPE_VIDEO_OUT
uint32_t reserved_2
Future use.
MBG_IMS_FDM_STATE_FLAG_MASKS
Bit masks used with MBG_IMS_FDM_STATE::flags.
uint8_t log_grp_role
Logical group role (i.e. bond master, bond slave), see MBG_IO_PORT_GRP_ROLE_BITS. ...
see MBG_GPIO_VIDEO_OUT_HAS_TC_SD
see NTP_SYS_STATE_SUPP_STD
Antenna has been disconnect, and receiver sync. after reconnect, so all fields valid.
Time deviation overflow occurred.
the number of defined sources, must not exceed MAX_N_MULTI_REF_TYPES
[R/-] PTPv1 common dataset structures can be queried
XMR source provides XMR_METRICS.
GBIT Linkup on SFP interface.
uint32_t maxNumUcConn
Maximum Number of Unicast client connections (due to licence or CPU performance)
uint8_t gnss_type
GNSS type as enumerated in MBG_GNSS_TYPES.
MBG_SNMP_V3_SETTINGS v3_settings
MULTI_REF_STATUS_BITS
Enumeration of multi ref status bits.
The GNSS_SV_STATUS_IDX structure is supported by the device.
uint16_t peer_status_flags
Peer status flags, see NTP_PEER_STATUS_FLAG_MASKS.
A structure used to query current TLV capabilities.
MBG_HOSTNAME gm_host
grandmaster's hostname or IP address
uint8_t protocol
See MBG_SYSLOG_PROTOCOLS.
time scale configured to return GPS time
simultanous multicast and unicast master
Bonding interface, which acts as bonding master.
uint8_t chassis_id
chassis ID, 0 if installed on the backplane
A structure used to store user channels.
uint32_t mtu
Max. packet size in bytes.
uint16_t flags
reserved currently 0
use a trusted source for consistency check and spoofing detection
uint8_t str_type
index of the supported time string formats, see STR_TYPE_INFO_IDX
TM_STATUS_EXT clk_status_1
status of first clock
A structure used to store compensation values.
uint8_t domain_number
the PTP clock domain number, 0:3
see USER_SCOPE_CONFIG_WRITE
MBG_EVT_IDS
Enumeration of event IDs.
uint8_t peer_sel_stat
Current selection status of the peer, see NTP_PEER_SEL_STATUS_BITS.
int32_t dac_val_max
max. possible DAC Value, positive or negative
uint32_t fd_neg_limit
min. frequency deviation limit, 1/MBG_IMS_FDM_LIMITS::fd_scale Hz units
uint8_t mode
Transfer mode, see MBG_UCAP_NET_TRANSF_MODE.
supports combined jitter, see NTP_SYS_STATE::sys_jitter
MBG_LICENSE_PTPV2 license
NTP_ORPHAN_MODE_MSK
Flag masks associated with NTP_ORPHAN_MODE_FLAGS.
XMR_INST_FLAG_BIT_MASKS
Bit masks associated with XMR_INST_FLAGS.
Device supports command GPS_FDM_SET_TD.
uint8_t tc_line0
first time code line location, valid lines: 6-22
PTP_PRESETS
Enumeration of PTP cfg presets used with PTP_CFG_SETTINGS::selected_presets.
MBG_MAC_ADDR mac_addr
Physical hardware address.
uint32_t type
digital audio type, see MBG_GPIO_DIGITAL_AUDIO_TYPES
see BVAR_BIT_IONO_INVALID
see NTP_PEER_STATE_SUPP_JITTER
uint16_t svs_in_view
Num. of satellites that should be visible above the horizon.
uint32_t flags
flags, see MBG_USER_MNGMNT_FLAG_MASKS
uint8_t num_trusted_keys
number of activated symm keys
uint32_t fw_id
firmware identification
A calendar date including full year number.
TM_GPS_STATUS_BITS
Status flag bits used to define TM_GPS_STATUS_BIT_MASKS.
uint32_t base_freq
base frequency, see MBG_GPIO_STUDIO_CLOCK_BASE_FREQS
uint8_t mode
XMR/holdover mode, see XMR_HOLDOVER_STATUS_MODES.
uint16_t mode_param
Optional parameter depending on the mode, see POUT_MODES_PARAM_MASKS.
uint16_t ANT_CABLE_LEN
A data type used to configure the length of an antenna cable [m].
IOD IODE3
Issue of Data, Ephemeris (Subframe 3)
transmission via manycast, point to multipoint
uint8_t enable
Generally enable / disable leapfile.
MBG_DATABASE_SETTINGS::port is valid
#define MBG_MAX_HOSTNAME_LEN
The maximum length of a fully qualified host/domain domain name (FQDN)
NTP shared memory driver.
See MBG_DATABASE_MEMBER_DBNAME.
MBG_GNSS_MODE_SETTINGS gnss_settings
MBG_IP_ADDR_PORT dst_addr
Destination address of the NTP peer, see MBG_IP_ADDR_PORT.
uint32_t pDlyFollowUpRx
Accepted PDelay Follow-Up message Rx counter.
uint32_t followUpMsgPerSecTx
Follow-up message Tx counter.
Attachment Unit Interface (AUI), externel transceiver.
DCLS (G007 is undefined, SBS not supported with Gxxx)
uint32_t reserved_1
reserved, currently always 0
number of supported roles
uint8_t minor_version
Minor version number.
this ref source is on extension card
state of time sync signal clk_1
BVAR_FLAGS
Bit masks associated with BVAR_FLAG_BITS.
NTP_MISC_ORPHAN_MODE_SETTINGS settings
See NTP_MISC_ORPHAN_MODE_SETTINGS.
SHS_SETTINGS settings
current configuration settings
Firmware has been deleted.
uint8_t L2flag
L2 P data flag [—].
uint32_t pDlyFollowUpPerSecRx
Accepted PDelay Follow-Up message Rx counter.
max. Glonass satellite number (64 + sat slot ID)
see NTP_SYS_STATE_SUPP_SYS_JITTER
MBG_GPIO_BITS_FORMAT_MASKS
Bit masks associated with MBG_GPIO_BITS_FORMATS.
MBG_LED_MODE_MASKS
Bit masks associated with LED modes.
uint8_t min
Specify the minimum interpacket spacing (guard time) in seconds.
uint16_t cur_restrs
Number of currently configured restrictions.
see NTP_PEER_STATE_SUPP_XLEAVE
A structure to used to query the current configuration and capabilities of a PTP port.
MBG_SERVICE_SETTINGS settings
See NTP_GLB_STATS_FLAG_PEERSTATS.
MBG_NET_INTF_LINK_BOND_MODE_MASKS
Network interface link bonding mode masks.
user shall be forced to change the password on password warning
Identifier for a reference source.
uint16_t core_mod_type
See MBG_EXT_SYS_INFO_CORE_MOD_TYPES.
uint16_t parent_log_variance
NTP_TSTAMP ref_time
Last time the system time has been adjusted, see NTP_TSTAMP.
number of known signal shapes
uint32_t dlyReqMsgTx
Delay request message Tx counter.
Supported options for digital audio output.
See MBG_IO_PORT_OP_MODE_ALWAYS.
uint32_t supp_flags
reserved, currently always 0
NTP_TRUSTED_KEY_INFO info
uint32_t flags
flags, see MBG_GPIO_STUDIO_CLOCK_FLAGS
uint32_t reserved1
reserved, currently always 0
uint8_t state
The device state, see XBP_DEVICE_STATES.
char TZ_NAME[6]
The name of a time zone.
uint16_t status
status flags, see TM_GPS_STATUS_BIT_MASKS
BVAR_FLAG_BITS
Enumeration of flag bits used to define BVAR_FLAGS.
transmission automatically if minute changes
PTP_UC_MASTER_SETTINGS settings
specification for the unicast master with that index
Clock 2 fixed (CPU board only)
uint32_t flags
reserved, don't use, currently 0
uint8_t reserved
reserved, don't use, currently always 0
listening for PTP packets
uint8_t two_step
indicates, whether the clock is a two-step clock
see MBG_GPIO_VIDEO_SD_FORMAT_PAL
XMR_STATS stats
XMR statistics of the particular source.
uint8_t reserved_0
Currently reserved, unused, always 0.
double XYZ[N_XYZ]
A position in cartesian coordinates.
Ionospheric correction parameters.
uint32_t reserved_3
reserved, currently not used
uint32_t flags
reserved, currently always 0
IEEE C37.238 profile extension, only if PTP_MSK_OPT_EXT_POWER is set.
#define MAX_MBG_TLV_FEAT_BYTES
Array size required to store up to MAX_MBG_TLV_FEAT_TYPES bits.
MBG_LICENSE_TIME_MONITOR_MEMBERS
Bits used to define MBG_LICENSE_TIME_MONITOR_MEMBER_MSKS.
timeout after GPS reception has stopped
uint32_t reserved_4
reserved, currently 0
uint32_t supp_flags_broadcast
supported flags for broadcast associations
uint32_t freq_resolution
frequency resolution [Hz], unspecified if 0
double alpha_0
Ionosph. Corr. Coeff. Alpha 0 [sec].
A structure used to report the synthesizer state.
uint16_t supp_flags
indicates which flags are supported by XMULTI_REF_SETTINGS::flags, see XMR_SETTINGS_FLAG_MSKS ...
uint16_t n_supp_intf_route
max. number of supported interface routes, see MBG_NET_INTF_ROUTE_SETTINGS_IDX, MBG_NET_INTF_ROUTE_IN...
uint16_t log_variance
PTP offset scaled log variance representing the time stability.
MBG_GPIO_VIDEO_SYNC_TYPES
Enumeration of types used with video sync GPIO outputs Depends on configured video output...
uint16_t id
Configurable key id (1..65534)
MBG_VLAN_CFG vlan_cfg
VLAN configuration.
Per minute, same as STR_PER_MIN, COM0 and COM1.
Specific FDM settings and limits.
uint16_t ufu_idx
0...MBG_FW_INFO::num_ufus-1
MBG_NET_INTF_LINK_INFO info
see MBG_NET_INTF_LINK_INFO
MBG_EVENT_SETTINGS settings
See MBG_EVENT_SETTINGS.
uint8_t stratum
Current stratum level of the system.
1000baseT Full Duplex (1 GBit/s)
PTP_CLOCK_ID gm_id
identifier ot the upstream time source
uint16_t n_sv_status
Number of GNSS_SV_STATUS_IDX structures that can be read (only if MBG_GNSS_FLAG_MSK_HAS_SV_STATUS) ...
see MBG_IMS_STATE_FLAG_BIT_HAS_FDM
uint8_t out_enb_state
e.g. bit 0 is set if corresponding output 0 is enabled, etc.
uint32_t reserved_1
Future use.
Index structure for PTPv2 port dataset.
MULTI_REF_STATUS_BIT_MASKS
Bit masks associated with MULTI_REF_STATUS_BITS.
uint32_t reserved_1
Reserved for future use, currently 0.
uint8_t severity
See MBG_EVENT_SEVERITIES.
uint16_t flags
currently reserved, always 0
Current mode cannot be determined.
Framed data stream output.
A structure used to transmit information on date and time.
PTP_CLOCK_ID clock_identity
HAVEQUICK_FORMATS
Enumeration of HaveQuick formats.
ITU_LIMITS
Enumeration of ITU limit masks.
String type not supp by given port.
uint8_t access_type
See MBG_SNMP_ACCESS_TYPES, ignore in trap settings.
double OMEGADOT
+- Rate of Right Ascension [rad/sec]
Index structure for PTPv1 port dataset.
int16_t delay_req_intv
delay request interval [log2 s]
SMPTE ST 2059-2 profile extension.
transmission automatically if required, e.g. on capture event
uint32_t reserved
reserved, currently always 0
uint8_t n_ucaps
number of user time capture inputs
[R/-] PTP_FLAG_UTC_VALID bit in PTP_STATE::flags is supported
MBG_SYSLOG_SETTINGS settings
See MBG_SYSLOG_SETTINGS.
GNSS_SV_STAT_QUALITY_INDS
Bits 23 to 31 are reserved.
interleave error (recovered)
uint8_t gnss_type
GNSS type as enumerated in MBG_GNSS_TYPES.
both pulses P_SEC and P_MIN on, use with ENABLE_FLAGS::pulses
multiple XMRS instances of the same ref type supported (XMULTI_REF_INSTANCES)
uint16_t dest_port
receiver destination port, 162 by default
MBG_DATE_TIME on
date and time to switch on
see USER_STAT_PASSWORD_WARN
MBG_GPIO_BITS_OUT_FLAGS
Enumeration of flags used with BITS type GPIO outputs.
uint32_t reserved_2
Reserved, currently 0.
see HQ_FMT_STANAG4372_SATURN_2
uint8_t priority_2
priority 2
int16_t delay_req_intv_min
log2 of minimum delay request interval [s]
Supports MBG_IO_PORT_ANT_SETTINGS::ant_cab_len.
PTP_PORT_STATES
Possible states of a PTP port.
uint8_t num_intf_route
number of configured interface routes, see MBG_NET_INTF_ROUTE_INFO_IDX
MBG_IP_ADDR ref_id
Reference ID of the NTP peer, see MBG_IP_ADDR.
see MBG_UCAP_NET_TRANSF_MODE_ON_REQ
MBG_GPIO_VIDEO_EPOCHS
Enumeration of epochs used with video type GPIO outputs.
discarded as not valid (TEST10-TEST13)
DNS name could not be resolved.
uint32_t supp_flags
supported flags, see MBG_USER_MNGMNT_FLAG_MASKS
uint32_t reserved_0
Reserved, currently always 0.
uint32_t flags
see PORT_INFO_FLAGS
uint32_t reserved_2
Reserved for future use, currently 0.
MBG_IMS_FDM_LINE_FREQ_MASKS
Bit masks corresponding to defined line frequencies.
uint32_t dlyReqMsgRx
Accepted Delay request message Rx counter.
supports IRIG control bits (MBG_IRIG_CTRL_BITS)
uint16_t reserved_2
Reserved, currently always 0.
has pulse per second output
NTP_ROLES
Enumeration of known NTP roles.
Supports MBG_IO_PORT_ANT_SETTINGS::tr_dist.
double af0
+- Clock Correction Coefficient 0 [sec]
Generic state of an IMS device.
specifies the association as preemptable rather than the default persistent
LNE_PORT_FLAG_BITS
LNE port flag bits.
uint8_t prefix
Number of subnet mask bits for CIDR notation, e.g. 24 for /24.
IRIG msg contains inconsistent data.
uint32_t supp_flags
Supported NTP peer state values, see NTP_PEER_STATE_SUPP_FLAG_MASKS.
IRIG_SETTINGS settings
current settings
unknown or unspecified signal shape
MBG_SNMP_V3_SETTINGS settings
uint8_t num_cols
Number of port columns this device supports.
new NIST leapseconds file needed
NTP_SYMM_KEY_SETTINGS settings
double OMEGA0
+- Longit. of Asc. Node of orbit plane [rad]
int8_t log_min_delay_req_interval
minimum delay request interval for this port
see MBG_IMS_FDM_LINE_FREQ_AUTO
uint16_t flags
see MBG_IP4_FLAG_MASKS
uint32_t supp_flags_server
supported flags for unicast associations
see POUT_BIT_FIXED_PULSE_LEN
uint8_t utc_offset_valid
set, if the current UTC offset is known to be correct
uint16_t serial
EF_OFF or EF_SERIAL_BOTH
see NTP_REFCLK_TYPE_TRUETIME
Reference source capabilities and current configuration.
MBG_XFEATURE_BITS
Enumeration of defined extended features.
Video signal output (PAL, NTSC, ...)
ITU-T G.8275.2 profile extension, only if PTP_MSK_OPT_EXT_TELECOM_PTS is set.
uint8_t cpu_type
Processor type, see NTP_CPU_TYPES.
uint8_t reserved
Future use.
uint32_t files
Single file (list) flags, See MBG_FW_FILE_MSKS.
Slot for reference clocks.
GNSS_SV_STATUS gnss_sv_status
A GPIO port's current settings, plus port index.
uint16_t flags
see MBG_IP4_FLAG_MASKS
uint8_t conn_type
See MBG_IO_PORT_CONN_TYPES.
General license information to be read from a device.
uint16_t GEN_IO_INFO_TYPE
uint32_t XMR_HOLDOVER_INTV
XMR holdover interval, or elapsed holdover time, in [s].
GPS is in warm boot mode.
uint32_t time_offset_ns
estimated time offset in holdover operation
see NTP_RESTR_FLAG_NTPPORT
NTP client only (ntpdate)
supported limits for qualtity metrics
DAC_VAL osc_dac_cal
disciplination value of the oscillator
MBG_PTP_V1_PORT_DATASET port_dataset
see MBG_PTP_V1_PORT_DATASET
number of known port states
MBG_EXT_SYS_INFO_FPGA_TYPES
Supported options of a BITS GPIO input.
uint32_t flags
see SHS_FLAG_MASKS
MBG_UCAP_NET_SUPP_FLAG_MASKS
Masks for supported flags used with MBG_UCAP_NET_GLB_INFO::supp_flags.
Configuration of a GPIO as video output module.
uint32_t pDlyReqMsgPerSecTx
PDelay Request message Tx counter.
uint32_t stat_flags
see GNSS status flags encoding
IEEE 802.1AS -like profile, only if PTP_MSK_OPT_EXT_8021AS is set.
see MBG_NET_INTF_LINK_TYPE_VLAN
uint8_t slot_type_id
See XBP_NODE_INFO::slot_type_id, or MBG_OWN_EVENT_SLOT_TYPE_ID.
MBG_HOSTNAME receiver_addr
Fixed (wired) clock from back plane (e.g. refclock 1 in M500 IMS)
NTP_TSTAMP rec_time
Current system time of the NTP peer, see NTP_TSTAMP.
max. number of active Glonass satellites
uint8_t ntp_role
one of the supported NTP roles, see NTP_ROLES
MBG_NET_INTF_ADDR_MASKS
Network interface address masks.
PTP state changed to SLAVE.
uint16_t epld_control_value
control value, determines value of bits to be changed, see SCU_CTRL_MASKS
int8_t log_announce_interval
announce interval to be used by this port
uint16_t idx
port index, 0..RECEIVER_INFO::n_com_ports-1
Global configuration info of an NTP device (client/server)
Limits to be considered when specifying PTP unicast masters.
uint32_t supp_flags
See NTP_MISC_MSKS.
uint32_t flags
see MBG_NET_INTF_ADDR_MASKS
PTP state changed to LISTENING.
int8_t log_sync_interval
mean sync interval to be used for multicast messages
no satellites can be received though antenna not failing
Power Line Time is locked.
NTP_SYMM_KEY_HASHES
Enumeration of NTP supported symmetric key hashing algorithms.
device supports user level configuration, otherwise user levels are static
uint32_t flags
see PTP_V1_PARENT_DATASET_FLAGS_MASKS
POUT_INFO_FLAG_MASKS
Flag bit masks used with POUT_INFO::flags.
see MBG_NET_INTF_ADDR_BIT_DHCP4
include authentication fields encrypted using the autokey scheme
General TLV data structure.
uint8_t num_v3_settings
Number of configured v1/v2 trap receivers, see MBG_SNMP_V12_TRAP_INFO_IDX.
uint8_t num_services
Current number of supported services.
leap second armed from file or autokey
uint16_t last_general_event_sequence_number
uint32_t flags
reserved, currently always 0
indicates that this output depends on GPIO with MBG_GPIO_SETTINGS::ass_io_idx and may not be configur...
Flags not supp by device.
uint16_t type
type of LAN interface, see LAN_IF_TYPES
uint8_t timestr_ports
bit mask of COM ports supported for mode POUT_TIMESTR, see MAX_POUT_TIMESTR_PORTS ...
see MBG_GPIO_VIDEO_TC_MODE_NONE
[R/W] PTP can be used in slave mode although not in slave capable slot
POUT_INFO_FLAG_BITS
Flag bits used to define POUT_INFO_FLAG_MASKS.
NANO_TIME reserved_0
currently reserved, unused, always 0
See MBG_FW_FILE_VERSION_TXT.
uint32_t flags
Flags, see MBG_IMS_FDM_STATE_FLAG_MASKS.
uint32_t reserved_1
reserved, currently always 0
see MBG_GPIO_SIGNAL_SHAPE_SINE
MBG_SYSLOG_SETTINGS settings
see POUT_BIT_INVERTED, POUT_NOT_INVERTIBLE
Satellite information for a particular GNSS type.
Vertical Interval Time Code.
XMR source provides coasting mode.
PTP_PORT_ID gm_port_id
use target port ID of master port (e.g. 135) or PTP_PORT_ID_WILDCARD
uint8_t grasp_row
Row position of the device grasp, consider MBG_IO_PORT_MSK_NO_GRASP.
uint32_t pDlyRespMsgTx
PDelay Response message Tx counter.
MBG_GPIO_DIGITAL_AUDIO_FLAG_MASKS
Bit masks associated with MBG_GPIO_DIGITAL_AUDIO_FLAGS.
uint32_t flags
unused, currently always 0 (should be named MBG_GNSS_MODE_SETTINGS_FLAG_MASKS)
uint32_t reserved
reserved, currently always 0
Clock resolution information.
if sync'ed after reset
remote mode, XMR switching done by external command/control
ICODE_TX_CODES
Known IRIG TX code formats.
oscillator supply current in val/exp, output state in flags
uint8_t peer_evt_cnt
Number of events, since the last time the event code changed.
discarded by table overflow (not used)
Slave port in group, i.e. non-configurable port of LIU.
transition is currently active, slewing in progress
pure IEEE1588-2008 (PTPv2) with P2P
See MBG_IO_PORT_FLAG_REAR_PORTS.
uint16_t idx
port index, 0..MBG_GPIO_CFG_LIMITS::num_io-1
A timestamp with nanosecond resolution.
uint8_t reserved_7
Reserved, currently always 0.
see NTP_PEER_STATE_SUPP_REACH_STAT
int32_t dac_val_min
min. possible DAC Value, positive or negative
see MBG_GPIO_STUDIO_CLOCK_SCALE_4
uint16_t good_svs
Num. of satellites that can currently be received and used.
uint32_t supp_ntp_roles
supported NTP roles, see NTP_ROLE_MASKS
POUT_SUPP_DCF77_UTC is supported for this output
see MBG_GPIO_STUDIO_CLOCK_SCALE_128
PTP_V1_PARENT_DATASET_FLAGS_MASKS
PTPv1 parent dataset flag masks used with MBG_PTP_V1_PARENT_DATASET::flags.
int32_t phase_offset
Phase offset in [ns].
see XMRSF_BIT_IS_TIME_OF_DAY_SRC
#define MBG_MONITORING_STR_SIZE
send a burst of eight packets at the first polling cycle
uint8_t sa_bits
sa bits group carrying SSM, MIN_SA_BITS_GROUP..MAX_SA_BITS_GROUP
MBG_IO_PORT_GRP_ROLE_BITS
Physical or logical group role bits.
uint16_t reserved_1
Future use and padding, currently 0.
uint32_t supp_port_types
see MBG_NET_INTF_LINK_PORT_TYPE_MASKS
An IPv4 or IPv6 network address, plus index.
Supports firmware management, see Firmware Management.
uint8_t instance
Refclock instance of the specified type. Usually up to 4 instances of the same type are supported by ...
for RX ignore, for TX don't generate TFOM flag
uint32_t dlyRespMsgPerSecRx
Accepted Delay response message Rx counter.
STR_TYPE_INFO str_type_info
uint32_t reserved_1
Future use.
TM_GPS tm_reconn
time of antenna reconnect
uint32_t reserved_1
currently unused
MBG_NET_INTF_LINK_SETTINGS settings
See MBG_IO_PORT_SRC_CLK1.
#define MAX_USER_CHANNEL_BYTES
MBG_GPIO_FREQ_OUT_SUPP freq_out
if MBG_GPIO_SETTINGS::type is MBG_GPIO_TYPE_FREQ_OUT
see NTP_PEER_STATE_SUPP_DISP
Configuration settings for a specific programmable pulse output.
uint32_t reserved_5
Reserved for future use, currently 0.
uint8_t version_number
PTP version in use on the port.
specifies a symmetric-active association should be used with this server
uint16_t reserved
currently unused, always 0
#define MAX_IO_PORT_STATUS_BYTES
Array size required to store all status bits.
MBG_SNMP_V12_SETTINGS v12_settings
1) MBG_TLV_TYPE_BLOB => MBG_LICENSE_NTP_IDX, see License information
uint8_t reserved_1
Future use.
Structure for monitoring event settings.
uint32_t supp_members
MBG_EXT_SYS_INFO_MSKS
int32_t clk_jitter
[us] Jitter of the clock
SMPTE_SYSTEM_FRAME_RATES
SMPTE System Frame Rates according to SMPTE ST 2059-2.
int16_t DNt
The day number at the end of which a leap second occurs.
Structure containing state information while reading TLV data.
time difference exceeds warning limit
support symmetric key authentication (MD5)
[R/-] can automatically become multicast master or slave, see PTP_CFG_CAN_BE_MULTICAST_AUTO ...
local timecode (IRIG, LOCAL driver, etc.)
Structure used to retrieve the number of records for a given type.
IEEE C37.238-2011 profile extension.
MBG_GNSS_TYPES
An enumeration of known satellite navigation systems.
has multiple input sources with priorities, superseded by GPS_FEAT_XMULTI_REF
see MBG_GPIO_VIDEO_HD_FORMAT_1080_I_59_94Hz
variable input signal via GPIO
MBG_NET_INTF_ADDR_BITS
Network interface address bits.
VHF/UHF radio/satellite (GPS, Galileo, etc.)
Modules (rows and columns) are layouted horizontally.
int16_t valid
flag data are valid
set in addition to TM_BIT_LS_ANN if leap sec is negative
MBG_IO_PORT_TYPES
IO Port types.
A structure used to configure optional settings.
uint8_t enable
Enable / disable writing a driftfile.
uint8_t clk0_info
reference clock 0 type
XMULTI_REF_SETTINGS settings
the settings configured for this level
LNO_STATE_FLAG_BITS
Flags used with LNO_STATE::flags.
Switch 'on' or 'off' at the times specified in POUT_DATA::tm.
NTP specific license information.
uint32_t flags
holdover status flags, see XMR_HOLDOVER_STATUS_FLAG_MASKS
uint16_t idx
0..MBG_LED_LIMITS::num_leds-1
uint32_t announceMsgPerSecTx
Announce message Tx counter.
uint32_t flags
see MBG_GPIO_CFG_LIMIT_FLAG_MASKS
uint32_t supp_modes
Supported transfer modes, see MBG_UCAP_NET_TRANSF_MODE_MASKS.
int16_t MBG_REF_OFFS
A data type used to configure the ref offset.
Supports commands which have been added in stage 2.
uint8_t minpoll
Minimum polling interval, [log2 seconds], 0 if unused/unspecified.
MBG_UCAP_NET_SUPP_FLAGS
Supported flags for user captures via network.
uint32_t flags
Reserved, currently 0.
see MBG_GPIO_VIDEO_OUT_HAS_NO_FREE_CONF
MBG_UCAP_NET_RECV_INFO info
see MBG_UCAP_NET_RECV_INFO
NTP_ROLE_MASKS
Flag masks associated with NTP roles.
uint16_t feat_flags
see XMR_EXT_SRC_FEAT_FLAG_MSKS
UTC ref offset not configured
uint16_t flash_stat_flags
Flash status flags, see NTP_FLASH_STAT_FLAG_MASKS.
invalid header or stratum
uint16_t idx
0..MBG_NET_GLB_CFG_SETTINGS::num_intf_route-1
MBG_USER_MNGMNT_FLAG_MASKS
Global settings, features and flags for user captures via network.
uint16_t supp_num_events
Supported number of events. See MBG_EVENT_TYPES.
double M0
+- Mean Anomaly at Ref. Time [rad]
see NTP_PEER_STATUS_CONFIG
uint32_t pDlyFollowUpTx
PDelay Follow-Up message Tx counter.
uint8_t align_rule_idx
Index of the MBG_IO_PORT_INFO_IDX this port shall be optically aligned to.
uint8_t num_peers
number available peers
Twisted Pair (TP) copper cable.
MBG_TIME_SCALE_MASKS
Bit masks for known time scales.
uint32_t reserved_2
Future use.
MBG_IMS_FDM_OUTPUT_SETTINGS settings
current settings
MBG_GPIO_BITS_ERRS
Enumeration of BITS input error conditions.
uint16_t monitor_max
Maximum value for min.
see XMR_HLDOVR_BIT_IN_HOLDOVER
NTP_REACH_STAT_BITS
Enumeration of NTP peer reach status.
Link (physical interface) specific settings, plus index.
uint16_t idx
the priority level index (highest == 0), 0..XMULTI_REF_INSTANCES::n_xmr_settings-1 ...
uint16_t svs_in_view
Numb. of satellites that should be visible above the horizon.
uint8_t sys_rec_evt
Most recent event message, see NTP_SYS_EVT_BITS.
uint32_t dlyRespMsgRx
Accepted Delay response message Rx counter.
XMULTI_REF_STATUS status
status information
see PORT_INFO_FLAG_BIT_PORT_INVISIBLE
uint32_t storage_size
Storage size in MB.
uint8_t dflt_clk_class_unsync_warm
Information on a specific XBP node.
see MBG_GPIO_SIGNAL_SHAPE_SQUARE
MBG_UCAP_NET_TRANSF_PROTO
Transfer protocol for user captures via network.
Configuration of a GPIO digital audio output.
int32_t offs
standard offset from UTC to local time [sec]
GBIT_LINK_COPPER_MODES
Link modes for SyncE on a 1000BASE-T interface.
uint32_t subdomain_address
see LNE_PORT_FLAG_BIT_IS_SFP
Supported options for a variable frequency GPIO input.
uint32_t announceMsgTx
Announce message Tx counter.
MBG_IP4_FLAG_BITS
Enumeration of flag bits used with IP4_SETTINGS::flags and LAN_IF_INFO::flags.
See NTP_GLB_STATS_FLAG_CRYPTOSTATS.
uint16_t supp_hashes
See NTP_SYMM_KEY_HASH_MASKS.
MBG_NET_INTF_LINK_TYPE_MASKS
Network interface link type masks.
MBG_GPIO_FREQ_OUT_SETTINGS freq_out
if MBG_GPIO_SETTINGS::type is MBG_GPIO_TYPE_FREQ_OUT
uint8_t tdev_scale
scale factors of TDEV
int32_t freq
[ppb] Frequency offset relative to hardware clock
number of available sources exceeds what can be handled
support eXtended features, see Extended feature definitions
XMR_SETTINGS_FLAG_MSKS
Bit masks used with XMULTI_REF_SETTINGS::flags and XMR_EXT_SRC_INFO::supp_flags.
Video sync signal output (H-Sync, V-Sync, ...)
uint32_t supp_flags_manycastclient
supported flags for manycast client associations
Configuration of a GPIO fixed frequency output.
uint32_t lower_bound
sync state set to true if below this limit [ns]
Current configuration of an SHS controller.
uint32_t mode
mode, see MBG_IMS_FDM_OUTPUT_MODES
see MBG_NET_INTF_LINK_OPT_CAN_SET_MAC
Indicates, that the password has been changed and needs to be crypted.
see USER_SCOPE_CONFIG_READ
uint32_t fixed_altitude_variance
see MBG_GPIO_VIDEO_SD_FORMAT_PAL_M
uint32_t reserved_6
Reserved for future use, currently 0.
HAVEQUICK_FORMAT_MASKS
Bit masks associated with the enumerated HaveQuick formats.
one or both time sources disconnected
T_GPS t0a
Reference Time Almanac [sec].
General info on supported XMR sources and instances.
state of power supply 3 monitoring input
uint16_t supp_refclk_types
See NTP_REFCLK_TYPE_MSKS.
only if PTP_MSK_OPT_EXT_TELECOM_PHASE is set
uint16_t max_restrs
Number of maximum supported restrictions.
see IFLAGS_BIT_TX_GEN_LOCAL_TIME
uint32_t flags
Flags, see MBG_IO_PORT_INFO_MASKS.
MBG_UCAP_NET_TRANSF_MODE
Transfer mode for user captures via network.
uint32_t supp_members
See MBG_LICENSE_PTPV2_MEMBER_MSKS.
see MBG_GPIO_STUDIO_CLOCK_BASE_FREQ_44_1KHZ
manycast shall be used on the given multicast address to discover peers
uint32_t num_levels
current number of users
uint16_t unreach
Counter for the number of unsuccessful polling intervals.
MBG_GPIO_FIXED_FREQ_OUT_SUPP ff_out
if MBG_GPIO_SETTINGS::type is MBG_GPIO_TYPE_FIXED_FREQ_OUT
NTP_PEER_STATUS_FLAG_MASKS
Flag masks for NTP_PEER_STATUS_FLAGS.
access denied (kiss code DENY)
GNSS_SV_STAT_HEALTH_CODES
Health indicators used with GNSS_SV_STATUS::stat_flags.
uint32_t reserved_1
Future use.
UTC correction has been made
MBG_EXT_SYS_INFO_BITS
Bits used to define MBG_EXT_SYS_INFO_MSKS.
MBG_DEBUG_STATUS_BITS
Enumeration of flag bits used for debug status.
MBG_GPIO_LIMITS gpio_limits
MBG_LICENSE_BASE base
See MBG_LICENSE_BASE.
see MBG_IMS_FDM_STATE_FLAG_BIT_SYNC_AFTER_RESET
[R/W] supports one-step mode in master roles
uint8_t n_supp_pref_peers
maximal number of configurable preferred ref sources
uint16_t reserved_2
Reserved, currently 0.
Network host or domain name, plus index.
uint32_t idx
port index, 0..MBG_GPIO_CFG_LIMITS::num_io-1
Supports additional SNMP configuration (i.e. via script)
General LED info to be read from a device.
uint32_t reserved
Future use.
Direct attach SFP+ connection.
See MBG_IO_PORT_SRC_ACTIVE_CLOCK.
uint8_t reserved_0
reserved, currently always 0
number of known line frequencies
NTP_REFCLK_TYPES
Enumeration of supported refclock types.
MBG_IO_PORT_OP_MODE_MSKS
Masks for MBG_IO_PORT_OP_MODE_BITS.
external 1 PPS signal not available
MBG_GPIO_LIMITS limits
limits of this GPIO port
See MBG_IO_PORT_GRP_ROLE_NONE.
Structure for monitoring event info.
uint8_t osc_type
type of installed oscillator, see GPS_OSC_TYPES
ICODE_RX_CODES
Known IRIG RX code formats.
int16_t delay_req_intv_min
log2 of minimum delay request interval [s]
uint32_t reserved_4
Reserved for future use, currently 0.
uint32_t reserved
reserved, currently always 0
[R/-] PTP device supports software NTP daemon in parallel to PTP
uint16_t supp_flags
mask of flags supported in settings, see HAVEQUICK_FLAG_MASKS
supports root delay to syspeer, see NTP_SYS_STATE::root_delay
see PTP_PRESETS_C37238_2017
MBG_IP4_FLAG_MASKS
Bit masks used with IP4_SETTINGS::flags and LAN_IF_INFO::flags.
see NTP_SYS_STATE_SUPP_CLK_WANDER
uint16_t port
UDP or TCP port.
MBG_GPIO_VIDEO_TC_MODES
Enumeration of time code modes used with video type GPIO outputs.
Decoder control loop is locked.
Almanac parameters of one specific satellite.
uint32_t reserved_2
Reserved, currently 0.
int8_t log_min_pdelay_req_interval
minimum peer delay request interval for this port
uint32_t idx
the index of the user
double crc
+- Cosine Corr. Term to Orbit Radius [m]
See NTP_GLB_STATS_FLAG_ENABLE.
uint8_t autoneg
Indicates, whether autonegotiation is enabled or disabled.
See MBG_FW_FLAG_UNERASABLE.
Port has physical carrier connection (e.g. BNC cable in BPE's case)
see NTP_SYMM_KEY_HASH_SHA1
uint32_t cmd
See MBG_DATABASE_CMDS.
Slot for MRI (multi reference input) cards.
Current settings and general capabilities of a serial port.
uint32_t reserved_2
currently reserved, unused, always 0
Supports service management, see Service Management.
see MBG_GPIO_FIXED_FREQ_1MHz
uint16_t flags
See MBG_DATABASE_SETTINGS_FLAG_MSKS.
see USER_STAT_DISABLED_ON_MAX_FAILS
uint32_t reserved
reserved, currently always 0
uint32_t reserved_3
reserved, currently always 0
uint8_t reserved_0
reserved, currently always 0
uint32_t reserved_4
Reserved for future use, currently 0.
Settings for receivers of user captures via network.
uint32_t signallingRx
Accepted Signalling message Rx counter.
uint32_t num_fails
current number of unsuccessful login attempts
MBG_USER_PERM_BUF cfg_read_perm
current config read permissions, see MBG_USER_PERM_BUF and MBG_USER_PERMS
uint32_t supp_ref
bit mask of supported sources, see MULTI_REF_TYPE_MASKS
uint32_t boots
Number of system/deamon restarts -> Ignore.
int32_t offs_dl
additional offset if daylight saving enabled [sec]
multicast master or slave (auto selection)
XMR_HOLDOVER_INTV elapsed
elapsed time in holdover mode, only valid if XMR_HLDOVR_MSK_IN_HOLDOVER is set
see MBG_NET_INTF_ADDR_BIT_DHCP6
going to switch to autonomous mode when XMR_HOLDOVER_STATUS::remote_watchdog reaches 0 ...
uint32_t format
signal format, see MBG_GPIO_BITS_FORMATS
uint8_t num_dns_srch_dom
number of configured DNS search domains, see MBG_NET_NAME_IDX
uint32_t reserved_6
Reserved for future use, currently 0.
MBG_IP_ADDR_PORT src_addr
Source address of the NTP peer, see MBG_IP_ADDR_PORT.
uint32_t idx
The index of the observed NTP peer.
uint32_t dlyReqMsgPerSecRx
Accepted Delay request message Rx counter.
MBG_NET_INTF_ADDR_INFO info
see MBG_NET_INTF_ADDR_INFO
uint8_t sys_sync_src
Current synchronization source, see NTP_SYNC_SRC_BITS.
uint32_t supp_opts
see MBG_NET_INTF_LINK_OPT_MASKS
Synchronous Ethernet, needs (external) ethernet interface.
T_GPS t0e
Reference Time Ephemeris [—].
A structure used to store port status bits.
uint8_t reserved_1
reserved, currently always 0
PTP state changed to FAULTY.
uint32_t reserved_2
Reserved for future use, currently 0.
MBG_USER_PERM_BUF stat_read_perm
status read permission configuration, see MBG_USER_PERM_BUF and MBG_USER_PERMS
uint8_t leap_ind
Leap indicator, see NTP_LI_BITS.
see MBG_GPIO_SIGNAL_SHAPE_UNSPECIFIED
int32_t previousJamLocalOffset
uint32_t flags
reserved, currently always 0
see MBG_GPIO_BITS_OUT_FLAG_HDB3
Configuration settings specifiying how to query a PTP unicast master.
MBG_GPIO_DIGITAL_AUDIO_OUT_SETTINGS digital_audio_out
if MBG_GPIO_SETTINGS::type is ::;MBG_GPIO_TYPE_DIGITAL_AUDIO_OUT
uint32_t flags
currently reserved, unused, always 0
User captures are transferred via UDP.
uint8_t active_fw
Index of currently active firmware.
int16_t valid
flag data are valid
remote disable for output MUX
see NTP_PEER_STATE_SUPP_PRECISION
uint8_t boc
boc for T1 mode, 0..0x1F //##++++++++++++++
generic current in val/exp, output state in flags
NTP_SYS_STATE_SUPP_FLAGS
Enumeration of supported NTP system state values.
uint32_t reserved
Possible future use.
IRIG input via fiber optics.
MBG_LNE_PORT_SETTINGS settings
Current LNE port settings.
uint32_t reserved_1
reserved, currently 0
uint8_t micro_version
Micro version number.
One of several sets of satellite information for a particular GNSS type.
MBG_IP_ADDR addr
see MBG_IP_ADDR
uint8_t state
state code as enumerated in SYNTH_STATES
MBG_USER_PERM_BUF cfg_write_perm
config write permission configuration, see MBG_USER_PERM_BUF and MBG_USER_PERMS
T_GPS t
time in GPS scale and format
oscillator not phase locked to PPS
Indicates, that this port shall be optically aligned to MBG_IO_PORT_INFO::align_rule_idx.
Date and time specification for switching operations.
uint8_t poll_intv_min
minimum supported NTP polling interval
See MBG_FW_FILE_MEINBERG_DTB.
PTP_UC_MSG_DURATION_LIMITS
Unicast PTP master message duration limits.
uint16_t proc_type
See MBG_EXT_SYS_INFO_PROC_TYPES.
see SHS_FLAG_BIT_DISB_SERIAL
see XMR_EXT_SRC_FEAT_FLAG_BIT_METRICS
the number of known baud rates
NANO_TIME_64 time2
Driver specific.
see MBG_NET_INTF_LINK_BOND_MODE_TLB
uint32_t reserved_1
reserved, currently always 0
uint16_t epld_control_mask
control mask, determines which bit is to be changed, see SCU_CTRL_MASKS
number of defined formats
see BVAR_BIT_RCVR_POS_INVALID
MBG_EVENT_SETTINGS settings
FIXED_FREQ_INFO fixed_freq
optional non-standard fixed frequency, may be 0 if not supported
uint32_t reserved_3
reserved, currently 0
int32_t offs_from_utc
local time offset from UTC [sec]
see NTP_FLASH_STAT_PKT_DENIED
NANO_TIME step_comp_val
current step compensation value
uint32_t reserved_2
Future use.
uint32_t used
current number of saved log entries
CSUM csum
checksum of the remaining bytes
Time zone / daylight saving parameters.
ref. clock is DCF77 PZF receiver
uint32_t reserved_2
reserved, currently always 0
PTP_CLOCK_ID grandmaster_identity
Identity of the grandmaster clock, see PTP_CLOCK_ID.
Enable, disable logging to database.
PORT_SETTINGS port_settings
MBG_GPIO_STUDIO_CLOCK_SCALE_MASKS
Bit masks associated with MBG_GPIO_STUDIO_CLOCK_SCALES.
MBG_USER_PERM_BUF supp_perms
supported user permissions
uint32_t feat_flags
Feature flags, see MBG_NET_GLB_CFG_INFO_MASKS.
uint8_t osc_flags
oscillator flags, actually not used and always 0
uint16_t URA
predicted User Range Accuracy
telephone modem (ACTS, PTB, etc.)
PTP state changed to MASTER.
uint8_t reserved_0
Currently reserved, unused, always 0.
uint8_t reserved_1
Stratum level when no ref source available.
uint16_t monitor_min
Maximum value for min.
time scale configured to return TAI
time difference not checked, eventually no limits configured
MBG_EVT_INFO info
optional event info, depending on event ID
uint16_t key_id
ID of symmetric authentication key.
uint32_t reserved_1
Reserved, currently always 0.
MULTI_REF_GPS or MULTI_REF_GRC can use XMULTI_REF_SETTINGS::bias
uint8_t reserved
reserved, currently always 0
uint16_t patch_lvl
Patch level number.
double e
Eccentricity [—].
uint32_t total_bytes
Number of all bytes including header(s) that are related to a TLV block transaction.
uint16_t idx
Index of the port dataset, 0..MBG_PTP_V1_DEFAULT_DATASET::number_ports - 1.
see PTP_ROLE_TIME_MONITOR
[R] supports SyncE and external signal multiplexer
uint32_t defaultSystemFrameRateNum
uint32_t flags
flags, currently always 0
see XMR_HLDOVR_BIT_TRANSITION_ENBD
Supports the GPS_CLK_RES_INFO command, see Clock resolution info.
uint8_t cmd
See MBG_FW_UFU_FLASH_CMDS.
IP6_ADDR ip6_addr
IPv6 address if MBG_IP_ADDR::type == MBG_IP_ADDR_TYPE_IP6.
user level for external authentication and as template for new users
uint32_t reserved_2
reserved, currently 0
state of daylight saving is going to change
has extended multiple input source configuration, supersedes GPS_FEAT_MULTI_REF
Configuration of a GPIO as studio clock output module.
uint32_t base_clk
Base clock of the internal time base [MHz].
uint32_t supp_flags
supported flags, see MBG_GPIO_FLAG_MASKS
uint8_t clock_class
PTP clock class representing the current sync status.
uint32_t flags
NTP flags, see NTP_FLAG_MASKS.
[R/-] supports unicast and multicast master role at the same time, see PTP_CFG_CAN_BE_BOTH_MASTER ...
see NTP_RESTR_FLAG_NOTRAP
A generic structure used to specify a GPIO port's limits.
supports XBP (eXtended Binary Protocol) API and structures, see eXtended Binary Protocol definitions ...
XBP_FEAT_BITS
Enumeration of bits used to define XBP_FEAT_MASKS.
transmission via broadcast, point to multipoint
Peer settings for NTP devices.
configured output signal enabled
number of known flag bits
XMR_HOLDOVER_STATUS_MODES
XMR holdover status modes.
uint16_t grandmaster_id_2017
Grandmaster ID defined in C.37.2017 is now 16 Bits.
Synthesizer configuration parameters.
uint32_t reserved
reserved, currently always 0
see MBG_IMS_FDM_FLAG_CAN_SET_TDEV
uint32_t flags
see SHS_FLAG_MASKS
uint32_t supp_ql_masks
see :ITU_LIMIT_MASKS
Slot for ESI (extended reference input) cards.
see POUT_BIT_IF_SYNC_ONLY, POUT_SUPP_IF_SYNC_ONLY
Satellite configuration and health parameters incomplete.
NANO_TIME auto_bias
current time automatic bias compensation
#define N_NTP_SYMM_KEY_LEN
T_GPS t0a
complete reference time almanac
int16_t exp
10s exponent of the sensor value
An IPv4 or IPv6 network address plus UDP or TCP port number.
the user supports the disabling after a number of login fails, see MBG_USER_SETTINGS::max_fails ...
time difference OK, below warning limit
Structure that represents the status of an NTP peer.
uint32_t followUpMsgPerSecRx
Accepted Follow-up message Rx counter.
Generic state of an IMS sensor, with sensor index.
int64_t scaled_nanoseconds
See MBG_DATABASE_MEMBER_HOST.
uint32_t reserved1
reserved, currently always 0
Sync Monitor specific license information.
see XMR_HLDOVR_BIT_TIME_OFFS_VALID
uint8_t num_types
See MBG_IO_PORT_TYPE_INFO.
Supports generic TLV API, see Meinberg TLV API definitions.
Supports additional network configuration (i.e. via script)
uint8_t num_leds
Number of supported LEDs, see MBG_LED_SETTINGS_IDX::idx and MBG_LED_INFO_IDX::idx.
Network interface address specific settings.
XMR_HOLDOVER_INTV interval
current holdover interval, only valid if XMR_HLDOVR_MSK_IN_HOLDOVER is set
uint8_t flags
reserved, don't use, currently always 0
Reference source capabilities and current configuration for a specific priority level.
values in field XMR_HOLDOVER_STATUS::time_offset_ns are valid
See MBG_IO_PORT_ANT_MEMBER_IGN_LOCK.
Supported options of a sync type GPIO output.
uint8_t reserved0
reserved, currently always 0
see NTP_FLASH_STAT_PKT_BOGUS
uint32_t seconds
seconds since NTP epoch, see NTP_SEC_BIAS
marks a server as preferred peer for time synchronization
Event can be sent cyclically.
uint32_t idx
node index, 0..XBP_NODE_LIMITS::node_count-1
MBG_SNMP_GLB_SETTINGS settings
ITU-T G.8275.1 profile extension, only if PTP_MSK_OPT_EXT_TELECOM_PHASE is set.
IOD IODC
Issue Of Data, Clock.
uint32_t tsu_secs
current seconds value of time stamp unit
see MBG_NET_INTF_LINK_OPT_CAN_PTP_HW_TS
uint16_t interval
[s], only if MBG_EVENT_SUPP_FLAG_INTERVAL is set in MBG_EVENT_INFO::supp_flags, else 0...
A Generic data field for programmable output settings.
int16_t sync_intv_min
log2 of minimum sync interval [s]
MBG_GNSS_MODE_INFO_FLAG_BITS
Flag bits used to define MBG_GNSS_MODE_INFO_FLAG_MASKS.
MBG_DATABASE_SETTINGS settings
See MBG_DATABASE_SETTINGS.
General NTP "discard" rate limiting limits to be read from a device.
uint8_t reserved_1
Future use.
MBG_SERVICE_STATUS status
uint8_t time_source
see PTP_TIME_SOURCES
uint32_t hw_type
Hardware type of interface (see MBG_NET_HW_TYPES)
#define MAX_XBP_CASC_LVL
Maximum XBP bus/controller cascading level.
uint32_t cur_bytes
Number of bytes in MBG_TLV::value.
uint32_t warn_days
number of days, after which the user shall be warned about an upcoming password expiration,
supports peer state events (NTP_PEER_STATE::peer_evt_cnt, NTP_PEER_STATE::peer_rec_evt) ...
uint32_t shape
selected signal shape, see MBG_GPIO_SIGNAL_SHAPES
Network host or domain name.
uint32_t reserved
Reserved, currently always 0.
uint32_t flags
reserved, currently always 0
IRIG msg could be decoded.
uint16_t supp_op_modes
See MBG_IO_PORT_OP_MODE_MSKS.
uint16_t reserved_2
Reserved, currently 0.
uint32_t supp_flags
indicates which flags are supported for SHS_SETTINGS::flags, see SHS_FLAG_MASKS
MBG_GPIO_VIDEO_SYNC_OUT_SUPP video_sync_out
if MBG_GPIO_SETTINGS::type is MBG_GPIO_TYPE_VIDEO_SYNC_OUT
IEC/IEEE FDIS 61850-9-3 Power Utility profile extension.
uint8_t domain_number
the PTP clock domain number, 0:3
AssistNow Offline orbit is used.
NANO_TIME bias
time bias, e.g. path delay
see PTP_NW_PROT_CONTROL_NET
see MBG_GPIO_STUDIO_CLOCK_SCALE_1_DIV_4
uint16_t idx
index of the sensor of this type
A buffer used to read raw IRIG data bits from an IRIG receiver.
10000baseR FEC (forward error correction) (10 GBit/s)
int16_t valid
flag data are valid
Status information on a specific GPIO port.
IRIG receiver delay compensation.
transmission via multicast, point to multipoint
uint32_t reserved_4
Reserved, currently 0.
see NTP_RESTR_FLAG_NOMODIFY
uint32_t td_scale
scale for MBG_IMS_FDM_LIMITS::td_neg_limit and MBG_IMS_FDM_LIMITS::td_pos_limit
uint8_t port_type
see MBG_NET_INTF_LINK_PORT_TYPES
uint8_t min_max
Maximum value for min.
modulated (G147 is undefined, SBS not supported with Gxxx)
see NTP_PEER_STATE_SUPP_ROOT_DELAY
see NTP_RESTR_FLAG_NOTRUST
uint16_t IOD
Issue-Of-Data code.
uint32_t supp_flags_multicast
supported flags for multicast associations
uint32_t reserved_0
reserved, currently always 0
discarded by intersection algorithm
MBG_IO_PORT_SETTINGS settings
the user can be removed (should not be set for root)
20000baseMLD2 Full Duplex (20 GBit/s)
MBG_SNMP_V12_TRAP_INFO info
MBG_BAUD_RATE_MASKS
Bit masks associated with baud rates enumerated in MBG_BAUD_RATE_CODES.
uint8_t timeout
In seconds.
Ionospheric correction parameters incomplete.
uint32_t hz
integral number [Hz]
PTPv1 default dataset containing global information about the device.
IEEE 802.1AS profile extension.
SCU_CLK_INFO_TYPES
Definitions for SCU_STAT_INFO::clk0_info and SCU_STAT_INFO::clk1_info.
int32_t root_disp
[us] Total dispersion to the system peer of the NTP peer
uint32_t supp_peer_flags
supported NTP flags for peers, see NTP_FLAG_MASKS
Supports additional NTP configuration (i.e. via script)
uint32_t pols
Pols which are used by this IO port, only if conn_type has more than 1 variable pol.
uint8_t state
See MBG_SERVICE_STATE.
the user is disabled, because the password has expired
XMULTI_REF_ID id
time source identifier
uint16_t year
including century
uint16_t HEALTH
an SV's 6 bit health code
uint32_t reserved
reserved, currently always 0
supports reading raw IRIG input data (MBG_RAW_IRIG_DATA)
see MBG_EXT_SYS_INFO_BIT_CORE_MOD_REV
MBG_GPIO_SETTINGS settings
current settings
uint32_t numUcConn
Number of current Unicast client connections.
#define MBG_TAINTED_CFG_BYTES
MBG_EVT_LVLS
Enumeration of event severity levels.
uint8_t grandmaster_id
[PTP_POWER_PROFILE_GM_ID_MIN..PTP_POWER_PROFILE_GM_ID_MAX]
Current settings and general capabilities of a unicast master.
the number of known status flags
see XMR_HLDOVR_BIT_IN_TRANSITION
uint32_t announceMsgRx
Accepted Announce message Rx counter.
uint32_t flags
NTP flags, see NTP_FLAG_MASKS.
uint16_t n_supp_dns_srvr
max. number of supported DNS server addresses, using MBG_IP_ADDR_IDX records
10000baseT Full Duplex (10 GBit/s)
uint32_t MBG_TLV_UID
A data type used to hold a unique ID (UID) for a TLV transaction.
uint8_t type
Type of the route entry, see MBG_NET_INTF_ROUTE_TYPES.
MBG_COM_CFG_STATUS_BITS
Flag bits used to mark individual PORT_SETTINGS fields.
PTP_V1_PORT_DATASET_DATASET_FLAGS
PTPv1 port dataset flags.
NANO_TIME mean_path_delay
HEALTH health
health indication of transmitting SV [—]
MBG_NET_INTF_ROUTE_INFO info
see MBG_NET_INTF_ROUTE_INFO
uint32_t reserved_2
Reserved, currently always 0.
XBP_FEAT_MASKS
XBP feature masks used with XBP_LIMITS::features.
uint32_t flags
see PTP_V1_TIME_PROP_DATASET_FLAGS_MASKS
uint32_t supp_opt_ext
a bit mask of supported optional extensions, see PTP_OPT_EXT_MASKS
uint16_t reserved_1
Future use.
#define MBG_TAINTED_CFG_FLAG_BYTES
uint32_t TM_STATUS_EXT
Type of an extended TM status which is mainly used inside the firmware.
char MBG_HOSTNAME[256]
A buffer for a fully qualified domain name (FQDN) or a numeric IP address string. ...
Signal detected but unusable.
A structure initiating a TLV transfer.
uint32_t reserved_3
Future use.
uint8_t mode
Stratum level when no ref source available.
Number of legacy string modes.
uint8_t mode
LED mode, see MBG_LED_MODES.
The CPU's PLL watchdog.
synthesizer on, use with ENABLE_FLAGS::synth
disable 10 MHz output in state SHS_STATE_ERROR
uint32_t flags
See MBG_SYSLOG_FLAG_MSKS.
See MBG_IO_PORT_OP_MODE_DISABLED.
NTP_PEER_STATE peer_state
Peer state, see NTP_PEER_STATE.
Server settings of an NTP device.
IP4_ADDR netmask
the network mask
#define N_MULTI_REF_PRIO
Maximum number of input sources.
see MBG_GPIO_VIDEO_FORMAT_OFF
uint16_t idx
the priority level index (highest == 0), 0..XMULTI_REF_INSTANCES::n_xmr_settings-1 ...
uint32_t freq_idx
fixed frequency index, see MBG_GPIO_FIXED_FREQS
XMULTI_REF_ID id
reference time source identifier
uint32_t reserved2
reserved, currently always 0
uint8_t reserved_1
reserved, currently 0
see XMRIF_BIT_EXT_SRC_INFO_SUPP
uint16_t max_hostname_len
max. length of hostname including trailing 0; if set to 0, max. length is 256 (see rfc1123) ...
uint16_t supp_members
Flag field which MBG_DATABASE_MEMBER_MSKS are valid.
see USER_CFG_FORCE_DISABLE_ON_EXP
external 10 MHz signal not available
int16_t yday
day of year, 1..365, or 366 in case of leap year
See MBG_DATABASE_MEMBER_PASSWORD.
int16_t utc_offset
UTC offset observed against TAI
Network interface address specific settings, flags and supported features.
uint8_t duplex
Duplex mode, half (0) or full (1)
MBG_SNMP_V12_TRAP_SETTINGS settings
uint32_t reserved_2
Reserved for future use, currently 0.
NTP_FLASH_STAT_FLAGS
Enumeration of NTP flash status bit codes.
uint16_t idx
0..MBG_LED_LIMITS::num_leds-1
uint32_t reserved_2
Reserved, currently 0.
uint32_t reserved_1
Future use.
uint8_t reserved2
reserved, currently always 0
see NTP_FLASH_STAT_PKT_STRATUM
int16_t delay_req_intv
log2 of the delay request interval [s]
receive broadcast messages on all interfaces
User captures will be transferred on request only.
uint32_t shape
selected signal shape, see MBG_GPIO_SIGNAL_SHAPES
receive messages from the given multicast group
MBG_USER_SETTINGS settings
settings, see MBG_USER_SETTINGS
supply voltage in val/exp, output state in flags
Configuration of a GPIO as BITS input module.
uint8_t mode
string mode, see STR_MODES
UTC offset parameters incomplete
MBG_DATABASE_SETTINGS settings
uint8_t reserved_1
Reserved, currently 0.
Automatically, when a capture event has occurred, COM1 only.
see MBG_GPIO_DIGITAL_AUDIO_TYPE_DARS
uint8_t remote_watchdog
counts down in XMR_HLDOVR_PRE_AUTONOMOUS mode
PTP_ANN_RCPT_TIMEOUT_LIMITS
Possible values for PTP_CFG_SETTINGS::ann_rcpt_timeout.
see MBG_GNSS_FLAG_HAS_SV_STATUS
uint32_t reserved_1
Reserved, currently 0.
uint16_t supp_settings_flags
uint32_t reserved0
reserved, currently always 0
force the association to assume truechimer status; always survive the selection and clustering algori...
MBG_GPIO_STUDIO_CLOCK_OUT_SUPP studio_clk_out
if MBG_GPIO_SETTINGS::type is MBG_GPIO_TYPE_STUDIO_CLOCK_OUT
uint16_t reserved_2
Reserved, currently 0.
Database(s) have been (re-)connected.
uint8_t release_candidate
Release candidate number (0 = final release)
supports clock wander, see NTP_SYS_STATE::clk_wander
MBG_NET_GLB_CFG_INFO_MASKS
Flag masks used with MBG_NET_GLB_CFG_INFO::feat_flags.
the port can only be slave
See MBG_LICENSE_PTPV1_MEMBER_MAX_RPS.
see NTP_PEER_STATE_SUPP_STD
uint32_t reserved_2
Future use.
MBG_IO_PORT_SRC_MSKS
Bit masks of Meinberg I/O port attitudes.
See NTP_GLB_STATS_FLAG_LOOPSTATS.
MBG_SNMP_V3_SETTINGS settings
NTP supports restrictions.
see MBG_GPIO_VIDEO_TC_MODE_VITC
[R/-] if PTP_CFG_SUPP_MCAST_SLAVE_FLAG bit set, indicates if multicast slave role is supported ...
HAVEQUICK_FLAG_BITS
Known HaveQuick control flags.
PTP_CFG_SETTINGS settings
the current configuration
uint16_t clock_offset_scaled_log_variance
MBG_GPIO_VIDEO_OUT_FLAGS
Enumeration of flags used with video type GPIO outputs.
Current settings and capabilities of a HaveQuick input or output.
Enable port if sync only.
see XMR_STATS_FLAG_BIT_STEP_COMPENSATED
Indicate there are incremental update files.
See MBG_LICENSE_BASE_FLAG_SUPP_UPGRADE.
supports root delay to syspeer, see NTP_PEER_STATE::root_delay
Slot for switch card units.
UTC has been converted to local time according to TZDL settings
uint32_t reserved1
reserved, currently always 0
MBG_FRAMING_STR_IDXS
Indices used to identify a parameter in the framing string.
uint32_t rx
overall Rx packet counter
PTP state changed to INITIALIZING.
uint16_t port
Protocol port.
uint8_t hash
See NTP_SYMM_KEY_HASHES.
see USER_CFG_FORCE_CHANGE_ON_WARN
GPS is in cold boot mode.
MULTI_REF_TYPES
Enumeration of all known types of reference time source.
uint32_t supp_str_types
bit mask of string types supp. by this port, i.e. bit 0 set if str_type[0] is supp.
supports clock jitter, see NTP_SYS_STATE::clk_jitter
uint32_t flags_2
currently reserved, always 0
MBG_GPIO_BITS_OUT_FLAG_MASKS
Bit masks associated with MBG_GPIO_BITS_OUT_FLAGS.
see NTP_SYS_STATE_SUPP_SERVICE_STATE
see MBG_EXT_SYS_INFO_BIT_RELEASE_CANDIDATE
Reference source configuration settings.
uint8_t minpoll
Minimal polling interval for the system peer (mintc)
uint8_t stratum
Current stratum level of the NTP peer.
uint8_t installed_fws
Currently installed firmwares.
uint16_t icode
IRIG signal code, see ICODE_RX_CODES and ICODE_TX_CODES.
TM_STATUS_EXT clk_status_2
status of second clock
uint16_t flags
reserved, currently always 0
see MBG_IMS_FDM_STATE_FLAG_BIT_FD_OVERFLOW
max. GPS satellite PRN number
the number of defined features
double beta_3
Ionosph. Corr. Coeff. Beta 3 [sec/deg^3].
uint8_t reserved
Future use.
10baseT Half Duplex (10 MBit/s)
autonomous mode, XMR sources are selected automatically by the device
Database is a local file only.
1) MBG_TLV_TYPE_STR => Command line call as string
Almanac data used for orbit.
uint16_t reserved_0
reserved, currently always 0
uint8_t grandmaster_stratum
TAI, i.e. GPS time plus constant offset (see GPS_TAI_OFFSET)
enable HDB3 encoding (E1 mode only)
uint8_t reserved_1
Future use.
uint8_t num_symm_keys
number of configured symm keys
uint16_t SVNO
the number of an SV (Space Vehicle, i.e. satellite)
see XMRSF_BIT_IS_TRUSTED_SRC
uint32_t reserved_3
Reserved for future use, currently 0.
uint8_t service_state
Current state of the NTP service see MBG_NTP_SERVICE_STATES.
NANO_TIME precision
precision of the time source
ref. clock is GPS receiver
supports peer reach status, see NTP_PEER_STATE::peer_reach_stat
NTP_REFCLK_CFG_SETTINGS settings
See NTP_REFCLK_CFG_SETTINGS.
see MBG_GNSS_FLAG_EXCLUSIVE
int8_t wday
day of week, 0..6 == Sun..Sat
uint16_t code
Version number, e.g. 0x0120 means v1.20.
uint16_t idx
0..MBG_NET_GLB_CFG_INFO::n_supp_intf_link-1
max. number of active WAAS satellites
VLAN interface, assigned to physical interface.
Access control override bit.
uint16_t idx
0..MBG_NET_GLB_CFG_SETTINGS::num_intf_addr-1
20000baseKR2 Full Duplex (20 GBit/s)
the device is currently in holdover mode
int32_t fix_offset
constant time offset to be compensated [ns]
MBG_IO_PORT_CONN_TYPES
Port connector types.
uint8_t max_poll
maximal configurable NTP polling interval
TM_GPS_STATUS_BIT_MASKS
Status flag masks used with TM_GPS::status.
#define IP6_ADDR_BYTES
The number of bytes used for an IPv6 address.
uint32_t supp_flags
bit mask of supported flags, see MBG_OPT_FLAGS
MBG_LICENSE_PTPV2_MEMBER_MSKS
Bit masks of PTPV2 license specific members.
uint32_t reserved_1
currently reserved, always 0
uint32_t reserved
reserved, currently always 0
MBG_IO_PORT_ANT_MEMBERS
Supported members in ::MBG_IO_PORT_ANTENNA_INFO and ::MBG_IO_PORT_ANTENNA_SETTINGS.
uint32_t shape
selected signal shape, see MBG_GPIO_SIGNAL_SHAPES
number of known flag bits
Satellite receiver status information.
See MBG_DATABASE_INFO_FLAG_LOCAL_FILE.
uint32_t hw_id
hardware identification
uint16_t CFG
an SV's 4 bit configuration code
QZSS, Quasi Zenith Satellite System.
MBG_GPIO_STUDIO_CLOCK_FLAG_MASKS
Bit masks associated with MBG_GPIO_STUDIO_CLOCK_FLAGS.
the number of known modes
NANO_TIME_64 t_sync
Last sync Time (reference time)
see NTP_FLASH_STAT_PKT_UNSYNC
MBG_IO_PORT_ANT_MEMBER_MSKS
[R/-] MBG_PTP_STATISTICS_INFO can be queried
uint32_t survey_in_pos_var
see MBG_GPIO_VIDEO_HD_FORMAT_720_P_50Hz
uint8_t maxpoll
Maximum polling interval, [log2 seconds], 0 if unused/unspecified.
uint8_t host_mode
NTP mode of the requesting host, see NTP_MODE_BITS.
supports IMS data structures
NTP_RESTR_FLAGS
Enumeration of supported NTP restriction flags.
uint32_t reserved_0
Reserved, currently always 0.
double af1
+- Clock Correction Coefficient 1 [sec/sec]
SDH_NETWORK_OPTIONS
SDH network options.
uint32_t supp_flags_multicastclient
supported flags for multicast client associations
state of time limit error input
GPIO_SA_BITS_GROUPS
Minimum and maximum SA BITS groups.
Meinberg NTP implementation (mbgntp)
Supported options for a fixed frequency output.
T1_SSM_QLVL
T1 SSM only quality level (6 bit encoded)
WAAS, Wide Area Augmentation System.
number of defined delay mechanisms
NTP refclock configuration and supported refclock types.
Passive port in group, i.e. passive port of network group (i.e. SFP or RJ45)
String type index exceeds num supp by driver SW.
see PTP_NW_PROT_IEEE_802_3
uint32_t freq_max
maximum output frequency [Hz], see MBG_GPIO_FREQ_OUT_SETTINGS::freq
NTP_SYMM_KEY_SETTINGS settings
PTP_V1_TIME_PROP_DATASET_DATASET_FLAGS
PTPv1 time drop dataset flags.
min. GPS satellite PRN number
MBG_LICENSE_NTP_MEMBERS
Bits used to define MBG_LICENSE_NTP_MEMBER_MSKS.
uint32_t flags
flags for encoder control etc., see MBG_GPIO_BITS_OUT_FLAG_MASKS
Software revision information.
MBG_TLV_FEAT_TYPES
Enumeration of known TLV feature types.
see MBG_UCAP_NET_TRANSF_MODE_AUTO
supports service state, see NTP_SYS_STATE::service_state
this is actually not used, see PTP_OPT_EXT_NONE
uint32_t speed
Link speed in MBit/s.
MBG_FW_UFU_INFO info
See MBG_FW_UFU_INFO.
uint8_t reserved_1
reserved, currently always 0
uint8_t avg_max
Maximum value for avg.
A structure used to report XBP features and limits.
see MBG_GPIO_FIXED_FREQ_10MHz
static bias auto correction in case of step
uint16_t flags
currently always 0
MBG_LICENSE_TIME_MONITOR license
double sqrt_A
Square Root of semi-major Axis [sqrt(m)].
See NTP_MISC_FLAG_DRIFTFILE.
Current settings and general capabilities of a specific serial port.
invalid time, e.g. if RTC battery bas been empty
uint8_t type
see MBG_NET_INTF_LINK_TYPES
56000baseSR4 Full Duplex (56 GBit/s)
uint8_t parent_stats
indicates whether the variance and change rate values are valid
uint32_t supp_delay_mech
a bit mask of supported delay mechanisms, see PTP_DELAY_MECH_MASKS
LGCY_STR_MODES
Deprecated codes for serial string modes.
uint8_t num_ports
Number of supported ports, see MBG_LNE_PORT_SETTINGS_IDX::idx and MBG_LNE_PORT_INFO_IDX::idx.
See MBG_IO_PORT_FLAG_NO_GRASP.
uint8_t time_source
source of time used by the grandmaster clock, see PTP_TIME_SOURCES
int8_t delta_tls
Current UTC offset to GPS system time [sec].
MBG_GPIO_STATUS status
status information
A structure to store the configuration of a serial port.
see V1_DFLT_CLK_FOLLOWUP_CAPABLE
uint16_t flags
reserved, don't use, currently always 0
Supports MBG_IO_PORT_ANT_INFO::gnss_info and MBG_IO_PORT_ANT_SETTINGS::gnss_settings.
#define MSG_TLV_MAX_VALUE_SIZE
A structure used to query MULTI_REF configuration parameters.
uint8_t leap_59
set, if the last minute of the current UTC day containts 59 seconds
uint8_t system
Operating system, see NTP_SYSTEMS.
uint8_t type
See MBG_DATABASE_TYPES.
uint32_t supp_framings
bit mask of framings supp. by this port, see MBG_FRAMING_MASKS
number of defined port states
ITU_LIMIT_MASKS
Enumeration of ITU limit masks.
control voltage in val/exp, lock state in flags
not enabled after power-up
uint8_t peer_poll
Peer NTP polling interval.
MBG_GPIO_FREQ_IN_SUPP freq_in
if MBG_GPIO_SETTINGS::type is MBG_GPIO_TYPE_FREQ_IN
see MBG_NET_INTF_LINK_PORT_TYPE_FIBRE
int16_t current_utc_offset
offset between TAI and UTC in seconds
PTP_TIME_INTERVAL mean_path_delay
current mean propagation time between master and slave, see PTP_TIME_INTERVAL
MBG_PTP_V2_DEFAULT_DATASET_FLAGS flags
flags field, see MBG_PTP_V2_DEFAULT_DATASET_FLAGS
An IPv6 address plus number of netmask bits.
DAC_VAL dac_val
Oscillator fine DAC value.
remote select for output MUX (clk_1 = 0)
GBIT Link has a configruation fault (conflict with link partner.
normal synchronized state
This model can be a management CPU for meinbergOS (i.e. v7)
NTP_PEER_SETTINGS peer_settings
MBG_EVENT_VALUE_IRANGE irange
uint32_t mode
current output mode, see MBG_IMS_FDM_OUTPUT_MODES
uint16_t n_cur_peers
current number of configured peers
double OMEGADOT
+- Rate of Right Ascension [rad/sec]
double M0
+- Mean Anomaly at Ref. Time [rad]
see MBG_GPIO_STUDIO_CLOCK_SCALE_32
associated outputs off until synchronized
uint8_t flags
reserved, currently 0
uint8_t time_traceable
set, if timescale and utc offset are traceable to a primary reference
uint8_t pt_idx
index of the port types (e.g. 0 for PPO0, 1 for PPO1, ...)
see NTP_RESTR_FLAG_NOQUERY
uint32_t supp_flags
supported NTP flags, see NTP_FLAG_MASKS
uint8_t dflt_clk_class_sync_warm
uint32_t supp_codes
see ICODE_TX_MASKS and ICODE_RX_MASKS
see NTP_RESTR_FLAG_LOWPRIOTRAP
uint16_t pulses
EF_OFF or EF_PULSES_BOTH
uint8_t value_type
See MBG_EVENT_VALUE_TYPES.
see MBG_NET_INTF_LINK_PORT_TYPE_BNC
DCLS (G003 is undefined, SBS not supported with Gxxx)
uint8_t color
LED color, see MBG_LED_COLORS.
Flags structure for the PTPv2 time properties dataset.
see NTP_PEER_STATE_SUPP_ROOT_DISP
Supports extended routing (multiple default gateways, routing tables)
MBG_LICENSE_NTP_MEMBER_MSKS
Bit masks of NTP license specific members.
see PTP_ROLE_MULTICAST_MASTER
see MBG_GPIO_CFG_LIMIT_FLAG_BIT_STATUS_SUPP
struct NTP_PEER_STATE_IDX NTP_REFCLK_STATE_IDX
uint16_t idx
0..RECEIVER_INFO::n_prg_out-1
port supports binary protocol at high speed, see MBG_DEFAULT_BAUDRATE_HS
PTP_ROLES
An enumeration of roles which can be taken by a PTP node.
Framing not supp by given port.
MBG_IO_PORT_SHAPE_LEVELS
Enumeration of known signal shapes/levels.
uint32_t supp_flags
supported flags, see MBG_GPIO_VIDEO_OUT_FLAG_MASKS
LLA_FIELDS
Sequence and number of components of a geographic position.
Device does not have a label.
double LLA[N_LLA]
A geographic position based on latitude, longitude, and altitude.
uint32_t revision
Main revision information.
GPS_FEATURE_BITS
Enumeration of device features flags reported in RI_FEATURES.
MBG_GPIO_BITS_OUT_SETTINGS bits_out
if MBG_GPIO_SETTINGS::type is MBG_GPIO_TYPE_BITS_OUT
u-blox GNSS module without Galileo support
PTP_TIME_INTERVAL peer_mean_path_delay
estimate of the current one-way propagation delay on the link, only valid if P2P is used...
see NTP_PEER_STATE_SUPP_EVENTS
int16_t valid
Flag indicating UTC parameters are valid.
MBG_GPIO_VIDEO_SYNC_TYPE_MASKS
Bit masks associated with MBG_GPIO_VIDEO_SYNC_TYPES.
PTPv1 UUID structure used in MBG_PTP_V1_DEFAULT_DATASET.
MBG_DAC_SPECS dac_specs
DAC specific limits.
See MBG_SVC_CAN_EDIT_CMDLINE.
Settings, features and flags for receivers of user captures via network.
MBG_LICENSE_PTPV2_MEMBERS
Bits used to define MBG_LICENSE_PTPV2_MEMBER_MSKS.
see V1_PARENT_UTC_REASONABLE
uint16_t n_levels
supported priority levels, 0..N_MULTI_REF_PRIO-1
MBG_UCAP_NET_GLB_SETTINGS settings
see MBG_UCAP_NET_GLB_SETTINGS
LNE_PORT_FLAG_MASKS
LNE port flag bit masks.
uint16_t reserved_8
Reserved, currently always 0.
NANO_TIME_64 t_plt
Current power line time.
uint16_t type
See MBG_EVENT_TYPES.
see V1_PARENT_GM_PREFERRED
rate exceeded (kiss code RATE)
see XMRIF_BIT_GNSS_BIAS_SUPP
IFLAGS_BITS
Flag bits used to define IFLAGS_BIT_MASKS.
MBG_DATABASE_SETTINGS::host is valid
Slot for all other input/output cards.
uint32_t idx
Range 0..MBG_GNSS_MODE_INFO::n_sv_status-1.
See MBG_IO_PORT_OP_MODE_ENABLED.
MBG_PTP_V2_PARENT_DATASET_FLAGS flags
Flags field, see MBG_PTP_V2_PARENT_DATASET_FLAGS.
see MBG_NET_INTF_LINK_OPT_CAN_NTP_HW_TS
uint16_t idx
0..MBG_LED_LIMITS::num_leds-1
MBG_GPIO_FLAG_MASKS
Bit masks associated with MBG_GPIO_FLAGS.
int32_t delta_t
clock offs at reconn. time in 1/RECEIVER_INFO::ticks_per_sec units
Configuration settings of an IRIG input or output.
uint16_t id
Configurable key id (1..65534)
int16_t ann_intv_min
log2 of minimum announce interval [s]
uint32_t reserved_5
reserved, currently 0
uint32_t pDlyFollowUpPerSecTx
PDelay Follow-Up message Tx counter.
see MBG_GPIO_VIDEO_SD_FORMAT_NTSC
uint32_t reserved_9
Reserved, currently always 0.
SHS_FLAG_BITS
SHS flag bits.
uint32_t supp_fmts
bit mask of supported formats, see MBG_GPIO_BITS_FORMAT_MASKS
int16_t ann_intv_max
log2 of maximum announce interval [s]
device supports user configuration, otherwise users are static
MBG_DATABASE_SETTINGS_FLAGS
see PTP_FEAT_SYNCE_EXT_MUX
MBG_IO_PORT_OP_MODE_BITS
Port Operation Bits.
PTP_V1_PORT_DATASET_FLAGS_MASKS
PTPv1 port dataset flag masks used with MBG_PTP_V1_PORT_DATASET::flags.
MBG_GPIO_VIDEO_EPOCH_MASKS
Bit masks associated with MBG_GPIO_VIDEO_EPOCHS.
NANO_TIME last_sigma
standard deviation (sigma) of prev. interval
MBG_NET_GLB_CFG_SETTINGS glb_settings
uint32_t dlyRespMsgPerSecTx
Delay response message Tx counter.
Network interface route specific settings.
number of defined BVAR_STAT bits
General info to be read from an LNE device.
see MBG_GPIO_FIXED_FREQ_1544kHz
#define MBG_MAX_USER_PASSWORD_LEN
ITU-T G.8275.2 profile extension.
uint32_t last_changed
Unix timestamp when this event state has been changed.
Flags structure for the PTPv2 parent dataset.
only if PTP_MSK_OPT_EXT_C37238_2017 is set
uint8_t n_prg_out
number of programmable pulse outputs
MBG_NET_INTF_LINK_SPEED_MODES
Network interface link speed mode enumeration.
see NTP_FLASH_STAT_PKT_CRYPTO
Supports TTM requests via GPS_TIME command.
disable serial output on error
uint32_t dlyReqMsgPerSecTx
Delay request message Tx counter.
ANT_STATUS_CODES
Status code used with ANT_INFO::status.
uint8_t type
See NTP_REFCLK_TYPES.
see GBIT_LINK_COPPER_PREFER_SLAVE
number of defined flag bits
RECEIVER_INFO_FLAG_MASKS
Bit masks to be used with RECEIVER_INFO::flags.
File containing firmware version.
uint8_t pos_col
Column position of this port.
Query MBG_NET_INTF_ADDR_INFO by its index.
uint32_t syncMsgPerSecRx
Accepted Sync message Rx counter.
NANO_TIME offset_from_master
see MBG_GPIO_STUDIO_CLOCK_BASE_FREQ_32KHZ
Physical network interface link specific settings.
XMULTI_REF_INFO info
ref source configuration and capabilities
leap armed from server LI code
uint8_t reserved_0
reserved, currently unused and always 0
discarded by the cluster algorithm
Current settings and general capabilities of an LED, plus index.
see POUT_BIT_SUPP_IF_SYNC_ONLY, POUT_IF_SYNC_ONLY
40000baseSR4 Full Duplex (40 GBit/s)
[R/-] Hardware supports Synchronous Ethernet Out
uint16_t reserved_3
Reserved, currently always 0.
int8_t nxt_prio
next priority level after holdover, 0..XMULTI_REF_INSTANCES::n_xmr_settings, or XMR_PRIO_LVL_UNSPEC ...
See MBG_DATABASE_SETTINGS_FLAG_SAVE_PERSIST.
#define MBG_IFNAMSIZ
The maximum length of an interface name.
MBG_LED_MODES
Possible modes of LEDs.
uint32_t num_recvs
Number of configured network receivers, see MBG_UCAP_NET_RECV_INFO_IDX.
MBG_NET_GLB_CFG_INFO_FLAGS
Feature flag bits used to define MBG_NET_GLB_CFG_INFO_MASKS.
Supports user management, see User Management.
has DCF77 compatible time mark output
uint8_t flags
reserved, currently always 0
MBG_FRAMING_CODES
Enumeration of all known serial port framings.
IP4_ADDR gateway
the default gateway
HAVEQUICK_FLAG_MASKS
Bit masks associated with HaveQuick control flags.
uint32_t reserved_3
Reserved for future use, currently 0.
PTP_NW_PROTS
Enumeration of protocols possibly used with PTP.
uint32_t gnss_set
bit mask of currently used GNSS systems, see MBG_GNSS_TYPE_MASKS
uint32_t supp_types
Supported restriction types, see NTP_RESTR_TYPE_MSKS.
int16_t handshake
handshake mode, yet only HS_NONE supported
100baseT Half Duplex (100 MBit/s)
LAN_IF_TYPES
Codes used with LAN_IF_INFO::type.
T_GPS tt
time of transmission
uint32_t tick
fractions of a second, 1/RECEIVER_INFO::ticks_per_sec units
see NTP_SYS_STATE_SUPP_EVENTS
uint32_t reserved_3
Future use.
see NTP_RESTR_TYPE_SOURCE
uint32_t reserved
reserved, currently always 0
the number of known codes
uint8_t port_state
see MBG_GPIO_PORT_STATES
Configuration settings for a single LNE port, plus index.
A structure to define on/off cycle times.
uint32_t reserved
reserved, currently always 0
uint32_t reserved3
reserved, currently always 0
Configuration settings for a single LED, plus index.
transmisson automatically if second changes, but carriage return (0x13) on time
A HaveQuick signal as configured in HAVEQUICK_SETTINGS::format.
TLV header structure containing information on current TLV transaction.
see POUT_BIT_SUPP_PULSE_SHIFT, POUT_DATA::pulse_shift
uint32_t flags
XBP flags, currently not used.
uint8_t reserved0
reserved, currently always 0
uint32_t revision
Main revision information.
See MBG_IO_PORT_FLAG_FRONT_PORTS.
Other orbit information is used.
double omega
+- Argument of Perigee [rad]
uint32_t flags
flags, see MBG_USER_STAT_FLAG_MASKS
uint16_t ufu_idx
See MBG_FW_UFU_FLASH_CMD_DEVICE_UFU.
XMR_HOLDOVER_STATUS_FLAG_BITS
XMR holdover status flag bits.
uint32_t supp_members
See MBG_LICENSE_PTPV1_MEMBER_MSKS.
Other orbit information is used.
see USER_CFG_MULTI_SESSION
PTP_CLOCK_ID gm_clock_id
use clock ID of master port, or PTP_CLOCK_ID_WILDCARD
uint16_t triggers
See MBG_MONITORING_TYPE_MSKS if set in MBG_MONITORING_LIMITS::supp_types.
uint32_t features
Mask of XBP features, see XBP_FEAT_MASKS.
no server found (ntpdate mode)
uint32_t reserved2
reserved, currently always 0
see MBG_NET_GLB_SUPP_ADD_CONF
uint8_t shs_state
see SHS_STATES
MBG_GPIO_FIXED_FREQ_OUT_SETTINGS ff_out
if MBG_GPIO_SETTINGS::type is MBG_GPIO_TYPE_FIXED_FREQ_OUT
See MBG_DATABASE_MEMBER_PORT.
MBG_USER_CHANNEL_BUF supp_lvl_channels
supported channels for external users
uint16_t format
see HAVEQUICK_FORMATS
uint32_t reserved_5
Reserved, currently 0.
see MBG_UCAP_NET_TRANSF_PROTO_UDP
MBG_GPIO_BITS_IN_SUPP bits_in
if MBG_GPIO_SETTINGS::type is MBG_GPIO_TYPE_BITS_IN
See MBG_IO_PORT_OP_MODE_IF_SYNC_ONLY.
uint32_t reserved_1
reserved, currently always 0
MBG_IMS_FDM_OUTPUT_MODE_MASKS
Bit masks used with MBG_IMS_FDM_OUTPUT_STATE::mode.
Detailed GNSS satellite status.
uint32_t reserved
reserved, currently always 0
MBG_UCAP_NET_RECV_SETTINGS settings
see MBG_UCAP_NET_RECV_SETTINGS
uint32_t n_supp_levels
supported number of user levels
POUT_SETTINGS pout_settings
uint32_t reserved_4
Future use.
String mode not supp by given port and string type.
uint32_t MBG_IRIG_CTRL_BITS
Bit coded return type for PCPS_GET_IRIG_CTRL_BITS.
See MBG_FW_FILE_KERNEL_DTB.
int16_t pr_residual
Pseudo range residual [m].
uint8_t max_v12_settings
Only valid if MBG_SNMP_GLB_INFO::supp_versions contains MBG_SNMP_VERSION_MSK_V1 or MBG_SNMP_VERSION_M...
see NTP_SYS_STATE_SUPP_PRECISION
No valid receiver position available.
uint16_t reserved_2
Reserved, currently always 0.
uint32_t txqlen
Transmission queue length (number of packets)
uint16_t ver_code
version number (hex)
see USER_STAT_PASSWORD_EXP
uint32_t flags
reserved, currently 0
uint16_t dest_port
receiver destination port, 162 by default
see MBG_EXT_SYS_INFO_BIT_OS_REV
Supports I/O port structures, see IO Port API.
uint32_t csc_limit
max. cycle slip [1/1000 cycle units], see MBG_GPIO_FREQ_IN_SUPP::csc_limit_max
SMPTE274M-7 1080i at 59.94 Hz.
uint32_t reserved_1
reserved, currently always 0
MBG_LED_SETTINGS settings
LED settings.
An XBP address specifier.
int16_t sync_intv_min
log2 of minimum sync interval [s]
See MBG_DATABASE_MEMBER_USER.
uint8_t reserved_1
Reserved for future use, currently 0.
uint32_t format
signal format, see MBG_GPIO_BITS_FORMATS
PORT_SETTINGS port_settings
current configuration of the port
PTP_V1_PARENT_DATASET_FLAGS
PTPv1 parent dataset flags.
uint32_t flags
idx bit set if mtie[idx] is valid
MBG_NET_INTF_LINK_PORT_TYPES
Network interface link port types.
uint32_t reserved_2
Reserved, currently always 0.
supports configurable time scale (UTC, TAI, GPS, ...)
uint16_t MULTI_REF_STATUS
A data type used to query MULTI_REF status information.
uint32_t supp_srcs
See MBG_IO_PORT_SRC_MSKS.
Frequency deviation overflow occurred.
int16_t ann_intv_min
log2 of minimum announce interval [s]
uint16_t idx
the priority level index (highest == 0), 0..XMULTI_REF_INSTANCES::n_xmr_settings-1 ...
see HQ_FLAG_TX_GEN_LOCAL_TIME
Specific output settings and limits, plus index.
uint8_t reserved_1
reserved, currently 0
GPIO_SSM_VALS
Minimum and maximum known SSM values.
uint8_t version
See MBG_SNMP_VERSIONS.
supports standard values of NTP_SYS_STATE, all fields except below and reserved
XMR source provides XMR_STATS.
MBG_GPIO_BITS_ERR_MASKS
Bit masks associated with BITS input error conditions.
GNSS_SVNOS
GNSS satellite numbers.
uint32_t defaultSystemFrameRateDenum
uint32_t max
max number of log entries which can be saved
MBG_GPIO_FREQ freq
frequency, see MBG_GPIO_FREQ_OUT_SUPP::freq_min and MBG_GPIO_FREQ_OUT_SUPP::freq_max ...
uint16_t status
status bits, see XMR_REF_STATUS_BIT_MASKS
see GBIT_LINK_COPPER_FORCE_SYNCE_AUTO
int32_t offset
Tx: unused, Rx: offset of incoming time in [s].
uint32_t supp_flags_broadcastclient
supported flags for broadcast client associations
uint32_t reserved_1
Reserved, currently 0.
uint16_t reserved_2
Future use.
uint32_t exp_days
number of days, after which the password becomes invalid, see MBG_USER_INFO::password_doc,
see XMRIF_BIT_MRF_NONE_SUPP
uint8_t slave_only
indicates, whether the clock is a slave-only clock
see PTP_ROLE_UNICAST_SLAVE
uint8_t cn_ratio
Carrier-to-noise ratio [dbHz].
#define MAX_N_MULTI_REF_TYPES
Theoretical maximum number of multi ref input signal types.
Number of known signal shapes.
int16_t range
scale factor for freq; 0..MAX_SYNTH_RANGE
int16_t sync_intv_max
log2 of maximum sync interval [s]
uint16_t reserved_1
Future use.
Number of known FDM flags.
uint32_t reserved_2
reserved, currently always 0
int16_t valid
flag data are valid
PTP_V1_DEFAULT_DATASET_FLAGS
PTPv1 default dataset flags.
uint8_t reserved
Currently reserved, always 0.
see MBG_IO_PORT_INFO_BIT_IS_ALIGNED
uint8_t sec100
100ths of seconds
uint32_t pDlyReqMsgPerSecRx
Accepted PDelay Request message Rx counter.
uint32_t supp_modes
bit mask of modes supp. by this output, see POUT_MODE_MASKS
Antenna status and error at reconnect information.
external (e.g. for inputs)
See MBG_IO_PORT_SRC_EXTERNAL.
the number of known GPS_FEATURE_BITS, should now be at its limit, i.e. 32.
uint32_t td_pos_limit
max. time deviation limit in 1 ms steps
if set, Out1: HD, Out2: SD
uint32_t supp_colors
Supported colors, see MBG_LED_COLOR_MASKS.
SW_REV sw_rev
software revision and ID
uint32_t reserved_6
reserved, currently 0
MBG_SNMP_V3_TRAP_INFO info
uint32_t supp_flags
supported flags, see::MBG_GPIO_STUDIO_CLOCK_FLAG_MASKS
uint32_t reserved_3
reserved, currently 0
uint8_t num_v12_settings
Number of configured v1/v2 settings, see MBG_SNMP_V12_INFO_IDX.
uint8_t peer_mode
NTP mode of the peer, see NTP_MODE_BITS.
uint8_t supp_cfgs
See NTP_REFCLK_CFG_FLAGS.
uint16_t port_type
MBG_IO_PORT_TYPES
see XMRSF_BIT_AUTO_BIAS_SLAVE
uint8_t ssm
minimum E1 SSM for acceptance, 0..N_GPIO_SSM_VALS-1
uint8_t leap_ind
Leap indicator, see NTP_LI_BITS.
int32_t disp
[us] filter dispersion of the NTP peer
Configuration of a GPIO variable frequency output.
uint32_t reserved_1
Reserved, currently always 0.
see NTP_REFCLK_TYPE_PARSE
GNSS_SV_STAT_ORBIT_SOURCES
Orbit source codes used with GNSS_SV_STATUS::stat_flags.
A structure used to hold time in GPS format.
uint32_t flags
flags, see MBG_GPIO_FLAG_MASKS
reference is master source
NANO_TIME err_limit
time difference limit above which an error is indicated
double cis
+- Sine Corr. Term to Inclination Angle [rad]
included by the combine algorithm
GBIT Link is currently clock master.
MBG_FW_UFU_FLASH_CMDS
Command types used to flash UFU(S) to device(s)
uint8_t chassis_idx
Index of the associated IMS chassis, or MBG_OWN_EVENT_CHASSIS.
e.g. IRIG AM/DC, see MBG_IO_PORT_SHAPE_LEVELS
uint8_t type
type, see MBG_USER_TYPE
uint32_t reserved
Future use.
int32_t clk_wander
[ppb] Frequency wander of the clock
output slopes can be shifted, see POUT_DATA::pulse_shift
uint8_t n_prio
reserved, don't use, currently always 0 //##++++ TODO: check which devices support/use this field ...
uint32_t annReceptTout
Announce recept timeout count.
IEEE C37.238-2017 profile extension.
number of defined LAN interface types
A time step was compensated at the input source.
NTP_RESTR_TYPES
Enumeration of supported NTP restriction types/keywords.
antenna disconnect detected
PTP_ROLE_MASKS
Bit mask associated with PTP_ROLES.
uint16_t reserved_1
reserved, currently always 0
uint16_t reserved_2
Reserved for future use, currently 0.
uint32_t supp_flags
Supported restriction flags, see NTP_RESTR_FLAG_MSKS.
XMR statistics for a particular source.
disbled by cfg, i.e. freq == 0.0
uint8_t poll
Current polling interval for the system peer (tc)
NANO_TIME delay_asymmetry
see PTP_OPT_EXT_TELECOM_PHASE
uint32_t reserved_0
Currently reserved, always 0.
[R/-] PTP packet generator supports IPv6
int16_t delay_req_intv_max
log2 of maximum delay request interval [s]
NTP supports orphan mode.
uint32_t fd_pos_limit
max. frequency deviation limit in 1 mHz steps
uint8_t direction
MBG_IO_PORT_DIRS
uint8_t reserved
Reserved, currently always 0.
uint32_t reserved_4
Reserved for future use, currently 0.
See MBG_IO_PORT_ANT_MEMBER_GNSS.
uint32_t supp_scales
bit masks of supported scales, see MBG_TIME_SCALE_MASKS
int16_t delay_req_intv_max
log2 of maximum delay request interval [s]
Device does not have a grasp.
state of power supply 4 monitoring input
uint16_t synth
EF_OFF or EF_SYNTH
uint16_t supp_phys_grp_roles
Supported roles in MBG_IO_PORT_STATUS::phys_grp_role, see MBG_IO_PORT_GRP_ROLE_MSKS.
Address has been automatically assigned by DHCP via IPv4.
the user password has expired
uint32_t syncMsgPerSecTx
Sync message Tx counter.
uint8_t num_refclks
number of available refclks NTP_REFCLK_CFG_INFO
antenna cable short circuited
See MBG_FW_FLAG_IMMUTABLE.
uint32_t max_rps
Maximum number of supported PTPv1 delay requests per second.
uint32_t reserved_2
Future use.
the number of known framings
see NTP_FLASH_STAT_PEER_LOOP
Note: most serial ports don't support this!
uint16_t idx
0..RECEIVER_INFO::n_prg_out-1
uint8_t phys_grp_role
Physical group role state, see MBG_IO_PORT_GRP_ROLE_BITS.
see USER_CFG_PASSWORD_CHANGED
MBG_GPIO_VIDEO_FORMATS
Enumeration of Video signal formats.
see MBG_NET_GLB_SUPP_STAGE_2
uint16_t reserved_1
Reserved, currently always 0.
uint16_t general_port_address
uint32_t reserved_0
reserved, currently always 0
NTP_TSTAMP ref_time
Last time the NTP peers time has been adjusted, see NTP_TSTAMP.
ANT_CABLE_LEN ant_cab_len
see MBG_GPIO_DIGITAL_AUDIO_TYPE_OFF
MBG_NET_INTF_LINK_OPTS
Network interface link option bits.
uint32_t idx
the index of the user
#define N_IRIG_RX_COMP_VAL
Server settings info of an NTP device.
IP4_ADDR broad_addr
the broadcast address
NTP_TRUSTED_KEY_SETTINGS settings
uint32_t supp_protocols
See MBG_SYSLOG_PROTOCOL_MSKS.
MBG_LED_COLOR_MASKS
Bit masks of possible LED colors.
uint8_t flags
See MBG_DATABASE_INFO_FLAG_MSKS.
MBG_UCAP_NET_RECV_SETTINGS settings
see MBG_UCAP_NET_RECV_SETTINGS
double cus
+- Sine Corr. Term to Arg. of Latitude [rad]
uint16_t flags
see IFLAGS_BIT_MASKS
MBG_NET_INTF_ADDR_SETTINGS addr_settings
see MBG_NET_INTF_ADDR_SETTINGS
uint32_t supp_nw_prot
a bit mask of supported network protocols, see PTP_NW_PROT_MASKS
Output switched on if time synchronized (condition time_syn).
PTP_TIME_SCALES
An enumeration of time scales used with PTP.
NTP_SRV_MODE_SETTINGS settings
see MBG_EXT_SYS_INFO_BIT_RAM_SIZE
see PTP_ROLE_UNICAST_SLAVE
state of power supply 2 monitoring input
Orphan Mode support disabling.
see XMRSF_BIT_USE_TRUSTED_SRC
supports root dispersion, see NTP_PEER_STATE::root_disp
General NTP symmetric key limits to be read from a device.
MBG_IMS_STATE_FLAG_MASKS
Bit masks used with MBG_IMS_STATE::flags.
See MBG_SYSLOG_PROTOCOL_UDP.
MBG_SNMP_V3_TRAP_SETTINGS settings
clock error more than 600 s
supports extended network interface configuration, supersedes GPS_FEAT_LAN_IP4
uint8_t min_poll
minimal configurable NTP polling interval
CSUM csum
Checksum of the remaining bytes.
uint32_t reserved_2
Future use.
[R/-] supports unicast master, see PTP_ROLE_UNICAST_MASTER
Code and carrier locked, and time synchronized.
uint8_t hysteresis
hysteresis (percent) between yellow and red alarm
MBG_LICENSE_BASE base
See MBG_LICENSE_BASE.
SHS_FLAG_MASKS
SHS flag masks.
uint8_t state
see MBG_PWR_STATES
GBIT_LINK_COPPER_MODE_MASKS
Flag masks used with MBG_SYNC_E_INFO::supp_gbit_link_copper_modes ::FIXME.
POUT_SETTINGS_FLAG_BITS
Flag bits used to define POUT_SETTINGS_FLAGS.
Handshake index exceeds num supp by driver SW.
see POUT_BIT_TIMEBASE_UTC, POUT_SUPP_DCF77_UTC
Current settings and general capabilities of an LNE port, plus index.
uint32_t td_neg_limit
min. time deviation limit in 1 ms steps
Receiver should use his own timestamp.
transmission on request by received '?' character only
uint32_t reserved_3
reserved, currently 0
see MBG_EXT_SYS_INFO_BIT_STORAGE_SIZE
PTP_TIME_SOURCES
Codes to specify the type of a time source used with PTP.
uint16_t n_supp_peers
maximum number of configurable peers
uint16_t idx
0..MBG_NET_GLB_CFG_SETTINGS::num_intf_route-1
see NTP_RESTR_TYPE_ADDRESS
MBG_LNE_PORT_INFO info
LNE port info.
uint16_t idx
0..MBG_NET_GLB_CFG_SETTINGS::num_intf_link-1
PTP_CLOCK_QUALITY clock_quality
quality of the local clock, see PTP_CLOCK_QUALITY
uint8_t selected_presets
selected PTP presets, see PTP_PRESETS
int32_t jitter
[us] filter jitter of the NTP peer
[R/-] Hardware supports Synchronous Ethernet In
state of power supply 1 monitoring input
see MBG_EXT_SYS_INFO_BIT_FPGA_REV
double cic
+- Cosine Corr. Term to Inclination Angle [rad]
NANO_TIME last_min
minimum value within interval
max. WAAS satellite number
uint32_t flags
see XMR_STATS_FLAGS_MSKS
see NTP_SYS_STATE_SUPP_CLK_JITTER
Configuration of a GPIO as sync output module.
uint8_t slot_id
ID of the slot in which this device is installed, 0 or up to 15, if multiple slots not supported...
see NTP_FLASH_STAT_PKT_DUP
uint32_t freq_min
minimum output frequency [Hz]
On request only, if a capture event is available, COM1 only.
int16_t current_utc_offset
uint32_t status
status word flags (use PacketCounterStat_e)
see PTP_ROLE_UNICAST_MASTER
IRIG/AFNOR DCLS time code signal mapped to this output.
Supported options for a variable frequency GPIO output.
uint8_t mtie_scale
scale factors of MTIE
uint16_t port_type
See MBG_IO_PORT_TYPES.
NTP_PEER_STATE_SUPP_FLAG_MASKS
Flag masks for NTP_PEER_STATE_SUPP_FLAGS.
Baud rate index exceeds num supp by device.
Code and carrier locked, and time synchronized.
Number of known output modes.
NTP_RESTR_FLAG_MSKS
Flag masks associated with NTP_RESTR_FLAGS.
int32_t root_delay
[us] Total roundtrip delay to the system peer of the NTP peer
[R/W] supports disabling of PTP management messages
IP4_ADDR ip4_addr
IPv4 address if MBG_IP_ADDR::type == MBG_IP_ADDR_TYPE_IP4.
uint32_t mgmtRx
Accepted Management message Rx counter.
MBG_IO_PORT_DIRS
Port directions (input or output)
uint32_t ram_size
RAM size in MB.
uint32_t supp_baud_rates
bit mask of baud rates supp. by this port, see MBG_BAUD_RATE_MASKS
Instead of a standard L1 antenna, a Meinberg antenna/converter can be used with this GNSS device...
TM_GPS tm_off
date/time when daylight saving ends
see MBG_GPIO_STUDIO_CLOCK_SCALE_1_DIV_2
ITU-T G.8275.1 profile extension.
NTP specific license information.
uint16_t khz_val
the base frequency in [kHz]
BAUD_RATE baud_rate
transmission speed, e.g. 19200L, see MBG_BAUD_RATES
Settings for receivers of user captures via network.
SDH_NETWORK_OPTION_MASKS
Flag masks used with MBG_SYNC_E_INFO::supp_sdh_network_opts ::FIXME.
uint8_t shape_level
Signal shape/level, see MBG_IO_PORT_SHAPE_LEVELS.
A structure used to identify a device type and supported features.
double omega
+- Argument of Perigee [rad]
uint32_t reserved_4
Reserved, currently 0.
uint16_t reserved_2
reserved, currently always 0
int16_t observed_variance
NTP_SYS_EVT_BITS
Enumeration of NTP system event message bits.
Global configuration settings of an NTP device (client/server)
number of known state flag bits
see NTP_RESTR_FLAG_IGNORE
uint32_t xleave
[ns] interleave delay of the NTP peer
uint8_t reserved_4
Reserved, currently always 0.
uint32_t reserved
reserved, currently always 0
uint8_t clk1_info
reference clock 1 type
supports filter dispersion, see NTP_PEER_STATE::disp
uint32_t supp_flags
Supported settings, currently 0.
Supports MBG_IO_PORT_ANT_SETTINGS::ignore_lock.
NTP_STATS_GLB_SETTINGS settings
See NTP_STATS_GLB_SETTINGS.
see HQ_FMT_STANAG4430_EXTD
uint8_t reserved_1
reserved, currently 0
see MBG_EXT_SYS_INFO_BIT_OS_TARGET
maximum message duration [s]
see NTP_RESTR_TYPE_DEFAULT
see MBG_NET_INTF_LINK_PORT_TYPE_AUI
uint16_t max_uclients
Maximal number of supported unicast clients.
Priority can be configured using the MBG_GNSS_MODE_SETTINGS::prio field.
uint32_t fd_neg_limit
min. frequency deviation limit in 1 mHz steps
uint16_t wn
the week number since the GPS system has been put into operation
uint8_t clock_accuracy
see PTP_CLOCK_ACCURACIES
leapsecond values update from file
MBG_SNMP_V3_PRIV_PROTOCOLS
uint32_t supp_shapes
bit mask of supported signal shapes, see MBG_GPIO_SIGNAL_SHAPE_MASKS
uint8_t num_intf_addr
number of configured interface addresses, see MBG_NET_INTF_ADDR_INFO_IDX
NTP trusted key settings, with index.
input signal is available
see MBG_GPIO_STUDIO_CLOCK_SCALE_512
uint32_t reserved2
reserved, currently always 0
#define MBG_DATABASE_MAX_STR
transmission automatically if second changes
MBG_SNMP_V12_TRAP_SETTINGS settings
MBG_NET_INTF_LINK_PORT_TYPE_MASKS
Network interface link port masks.
supports sys state events (NTP_SYS_STATE::sys_evt_cnt, NTP_SYS_STATE::sys_rec_evt) ...
see MBG_NET_INTF_LINK_TYPE_PHYS
uint8_t reserved_1
Future use.
NTP_GLB_SETTINGS settings
current configuration settings
uint8_t ql_mask
see :ITU_LIMIT_MASKS
uint16_t message_duration
time period until master stops sending messages [s]
customizable, always supported
Flags not supp by driver SW.
NTP_PEER_EVT_BITS
Enumeration of NTP peer event message codes.
[R/-] supports the combination of One-Step and Layer2 mode
MBG_NET_INTF_LINK_SETTINGS link_settings
see MBG_NET_INTF_LINK_SETTINGS
Output state of FDM device plus index.
Global current network settings and supported features.
see MBG_TIME_SCALE_DEFAULT
uint8_t ass_io_idx
associated GPIO index, only valid if MSK_MBG_GPIO_DEPENDS_ON_ASS_IO_IDX is set in flags field ...
See MBG_IO_PORT_OP_MODE_AFTER_SYNC.
uint8_t n_filter_values
Number of filter values available, currently always 0.
int64_t delay
[ns] filter delay to this NTP peer
arbitrary time scale, maybe UTC
A structure used to store a bit mask of supported TLV context types.
uint16_t n_supp_dns_srch_dom
max. number of supported DNS search domain records, using MBG_NET_NAME_IDX records ...
see NTP_PEER_STATE_SUPP_HEADWAY
see MBG_GPIO_STUDIO_CLOCK_OUTPUT_ENABLED
uint16_t nw_prot
one of the enumerated protocols, see PTP_NW_PROTS
ref. clock is DCF77 AM receiver
MBG_TLV_HDR hdr
See MBG_TLV_HDR.
Network interface address specific settings, flags and supported features.
40000baseKR4 Full Duplex (40 GBit/s)
Trusted source offset limit violated (valid if device has XMRSF_MSK_USE_TRUSTED_SRC) ...
uint32_t reserved
reserved, currently always 0
Framed data stream input.
General NTP misc limits to be read from a device.
[R/-] Hardware supports multiplexed signal outputs
uint8_t reserved
currently reserved, always 0
supports flash status word, see NTP_PEER_STATE::flash_stat_flags
see NTP_PEER_STATUS_AUTHENB
MBG_EXT_SYS_INFO_CORE_MOD_TYPES
uint32_t MBG_DEBUG_STATUS
A data type used to read the board's debug status.
see MBG_GPIO_BITS_T1_TIMING
position actually not verified, LOCK LED off
see PTP_ROLE_MULTICAST_AUTO
uint32_t survey_in_duration
uint32_t reserved1
reserved, currently always 0
MBG_IMS_SENSOR_STATE_FLAG_MASK_VOLTAGE
IMS sensor state flags for voltage.
see HQ_FMT_STANAG4372_SATURN_1
uint32_t supp_speed_modes
see MBG_NET_INTF_LINK_SPEED_MODE_MASKS
supports reading decoded IRIG time (PCPS_IRIG_TIME)
double i0
+- Inclination Angle [rad]
NTP_SYS_STATE_SUPP_FLAG_MASKS
Flag masks for NTP_SYS_STATE_SUPP_FLAGS.
uint8_t reserved_1
reserved, currently 0
uint32_t supp_members
See MBG_LICENSE_TIME_MONITOR_MEMBER_MSKS.
MBG_IMS_SENSOR_STATE_FLAG_MASK_PLL
IMS sensor state flags for PLL.
#define GPS_EPLD_STR_SIZE
has general purpose inputs/outputs
MBG_NET_INTF_ROUTE_SETTINGS route_settings
see MBG_NET_INTF_ROUTE_SETTINGS
NANO_TIME warn_limit
time difference limit above which a warning is indicated
uint8_t reserved_1
reserved, currently 0
Version is active (currently running)
see USER_MNGMNT_SUPP_USER_CFG
NANO_TIME time_diff
current time difference between the 2 clocks
MBG_PTP_STATISTICS_SETTINGS settings
uint32_t milli_phase_max
max. abs. milli_phase, see MBG_GPIO_FREQ_OUT_SETTINGS::milli_phase
uint8_t priority_1
priority 1
uint8_t log_grp
Logical group number (i.e. bond0), or MBG_NO_LOG_GROUP.
NTP symmetric key settings, with index.
40000baseLR4 Full Duplex (40 GBit/s)
uint32_t syncMsgTx
Sync message Tx counter.
uint8_t num_ip_addr
Number of configured ip addresses.
MBG_GNSS_MODE_INFO gnss_info
Simple LAN interface information.
MBG_NET_HW_TYPES
Hardware type for identification of physical interfaces.
see GBIT_LINK_COPPER_FORCE_OR_IS_MASTER
MBG_IO_PORT_STATUS_BUFFER supp_stati
Supported MBG_IO_PORT_STATUS_BITS in MBG_IO_PORT_STATUS_BUFFER.
PTP_DELAY_MECH_MASKS
Bit masks associated with enumerated PTP delay mechanisms.
oscillator control has reached full accuracy
See MBG_IO_PORT_GRP_ROLE_PASSIVE.
MBG_EVENT_VALUE_SELECTION selection
see V1_PORT_DATASET_BURST_ENB
uint16_t idx
0..MBG_LNE_LIMITS::num_ports-1
uint16_t ass_id
Association ID of the peer.
int16_t sync_intv
log2 of the sync interval [s]
temperature in degrees Celsius
see MBG_GPIO_STUDIO_CLOCK_SCALE_1_DIV_32
supports sys assoc ID as sys peer, see NTP_SYS_STATE::sys_assoc
MBG_DATABASE_SETTINGS::user is valid
XBP_ADDR addr
The address of the specific node.
MBG_IMS_STATE_FLAG_BITS
Enumeration of bits used to define MBG_IMS_STATE_FLAG_MASKS.
uint32_t reserved_2
currently unused
No group role, only possible if port is not assigned to any group.
[R/-] SMPTE TLV structure can be queried in slave state
has pulse per minute output
see XMRSF_BIT_AUTO_BIAS_MASTER
input voltage in val/exp, output state in flags
See MBG_IO_PORT_GRP_ROLE_SLAVE.
uint16_t idx
the priority level index (highest == 0), 0..XMULTI_REF_INSTANCES::n_xmr_settings-1 ...
see MBG_EXT_SYS_INFO_BIT_HW_REV
See NTP_MISC_FLAG_ORPHAN_MODE.
MBG_IMS_FDM_FLAG_MASKS
IMS FDM flag masks.
disable serial output in state SHS_STATE_ERROR
NANO_TIME last_max
maximum value within interval
GPS time as sent by the satellites, monotonical.
uint32_t addr_index
Index of the address on the physical interface it is assigned to.
backup (more than tos maxclock sources)
uint32_t followUpMsgTx
Follow-up message Tx counter.
uint32_t reserved_3
Reserved, currently 0.
disable 10 MHz output on error
uint8_t delay_mech
see PTP_DELAY_MECHS
uint32_t fd_pos_limit
max. frequency deviation limit, 1/MBG_IMS_FDM_LIMITS::fd_scale Hz units
uint32_t pDlyReqMsgRx
Accepted PDelay Request message Rx counter.
see MBG_NET_INTF_LINK_BOND_MODE_ROUNDROBIN
uint32_t time
like time_t, seconds since 1970
supports HaveQuick structures
see XMR_EXT_SRC_FEAT_FLAG_BIT_STATS
A time step was detected at the input source.
uint8_t num_v3_trap_receivers
Number of configured v3 trap receivers, see MBG_SNMP_V3_TRAP_INFO_IDX.
see NTP_RESTR_FLAG_VERSION
see SHS_FLAG_BIT_DISB_10MHZ
MBG_USER_INFO info
info, see MBG_USER_INFO
src can be used for time of day synchronization
int16_t sync_intv
sync interval [log2 s]
PTP_STATE_FLAGS
Flags bits used with PTP_STATE::flags.
device provides on-board FPGA
uint16_t reserved_2
Future use.
A structure controlling when output signals are enabled.
Current settings and general capabilities of a specific programmable pulse output.
uint32_t reserved_3
Reserved, currently always 0.
selected input mode was invalid, set to default
see MBG_IMS_FDM_OUTPUT_MODE_FD
MBG_DATE_TIME off
date and time to switch off
uint8_t label_row
Row position of the device label, consider MBG_IO_PORT_MSK_NO_LABEL.
MBG_USER_CHANNEL_BUF supp_user_channels
supported channels for internal users
MBG_NET_INTF_LINK_STATE_BITS
Network interface link state bits.
int8_t elev
Elevation [deg], range: -90..90 deg.
uint8_t svno
Satellite number, see ::TODO.
time sync actually not verified
MBG_TIME_SCALE_SETTINGS settings
current settings
always pretend to be synchronized, alternatively GPS_FEAT_IGNORE_LOCK may be supported ...
peer has bad quality (dispersion, ...)
Synchronous Equipment Timing Source (SETS)
MBG_GNSS_TYPE_MASKS
Bit masks associated with MBG_GNSS_TYPES.
uint32_t time
Timeticks since last "boots" event -> Ignore.
see NTP_FLASH_STAT_PEER_DIST
transmission if second changes and a request has been received before
see PTP_MSK_OPT_EXT_C37238_2017
disable PPS output in state SHS_STATE_ERROR
Number of known flag bits.
Configuration settings for a single LED.
uint16_t type
sensor type, see MBG_IMS_SENSORS
uint8_t grandmaster_priority_2
Priority 2 attribute of the grandmaster clock.
[R/-] supports the combination of One-Step and P2P Delay Mechanism
clock not synchronized, reflects the state of the "time sync error" output pin
Output settings of FDM device.
2500baseX Full Duplex (2.5 GBit/s)
int32_t u_min
min. possible real voltage range [mV], positive or negative, depending on MBG_DAC_SPECS::dac_val_min ...
1 PPS in addition to time string
uint32_t supp_flags
reserved, currently always 0
uint32_t reserved_3
reserved, currently 0
uint16_t reserved
reserved, currently always 0
uint32_t supp_states
see MBG_NET_INTF_LINK_STATE_MASKS
uint32_t num_users
current number of users
see MBG_NET_INTF_LINK_OPT_CAN_SYNCE_IN
uint16_t idx
Index of the port dataset, 0..MBG_PTP_V2_DEFAULT_DATASET::number_ports - 1.
56000baseKR4 Full Duplex (56 GBit/s)
uint32_t supp_gnss_types
Bit masks of supported GNSS types, see MBG_GNSS_TYPE_MASKS.
see MBG_GPIO_STUDIO_CLOCK_SCALE_2
NANO_TIME offset
time offset from main time base
uint32_t reserved_6
Reserved for future use, currently 0.
uint32_t reserved_1
reserved, currently always 0
uint32_t flags
see LNE_PORT_FLAG_MASKS
MBG_LED_COLORS
Possible colors of LEDs.
MBG_SYSLOG_INFO info
See MBG_SYSLOG_INFO.
10000baseKX4 Full Duplex (10 GBit/s)
PPS peer (when the prefer peer is valid)
MBG_TLV_DATA data
See MBG_TLV_DATA.
Code and carrier locked, and time synchronized.
uint16_t flags
flags, see XMR_QL // TODO ###
disable PPS output on error
see MBG_IMS_FDM_LINE_FREQ_60HZ
uint16_t reserved_2
reserved, currently 0
the number of defined flags
uint16_t mbg_os_type
See MBG_EXT_SYS_INFO_OS_TYPES.
uint32_t supp_types
see MBG_NET_INTF_LINK_TYPE_MASKS