403 #include <time_mon.h> 437 #define _ttm_time_set_unavail( _t ) do { (_t)->tm.sec = (uint8_t) 0xFF; } while ( 0 ) 438 #define _ttm_time_is_avail( _t ) ( (uint8_t) (_t)->tm.sec != (uint8_t) 0xFF ) 441 #if !_USE_SERIAL_IO_FTDI 443 #define FT_STATUS int 444 #define FT_HANDLE int 455 #if !defined( _MBGEXTIO_REQ_ACK ) 460 #define _MBGEXTIO_REQ_ACK 1 463 #if _MBGEXTIO_REQ_ACK 464 #define OPT_GPS_ACK_CODE GPS_REQACK 466 #define OPT_GPS_ACK_CODE 0 // dummy 470 #if !defined MBGEXTIO_READ_BUFFER_SIZE 471 #if _USE_SOCKET_IO || _USE_USB_IO 472 #define MBGEXTIO_READ_BUFFER_SIZE 1000 474 #if defined _USE_USB_DIRECT_IO 475 #define MBGEXTIO_READ_BUFFER_SIZE (MAX_MSG_DATA_SIZE + 1) // See gpsserio.h + SOH 477 #define MBGEXTIO_READ_BUFFER_SIZE 10 504 #define MBG_LAN_REQUEST_CONFIG 0x000000F8 505 #define MBG_LAN_RESPOND_CONFIG 0x000000F9 506 #define MBG_LAN_UDP_BROADCAST_PORT 30718 516 uint32_t remote_ip_address;
519 uint8_t disconnect_timeout_min;
520 uint8_t disconnect_timeout_sec;
521 uint8_t trigger_char_semd_imm0;
522 uint8_t trigger_char_semd_imm1;
525 uint32_t reserved_1[3];
537 uint32_t telnet_password;
538 uint32_t gateway_ip_address;
545 typedef struct mbg_lan_dev_list
548 struct mbg_lan_dev_list *next;
566 #if defined( MBG_TGT_WIN32 ) 567 void deinit_winsock(
void );
568 int check_init_winsock(
void );
5863 #define _mbgextio_xmt_msg( _pmctl, _addr, _cmd, _s ) \ 5864 mbgextio_xmt_msg( _pmctl, _addr, _cmd, _s, sizeof( *(_s) ) ) ulong mbgextio_set_dev_poll_timeout(MBG_MSG_CTL *pmctl, ulong new_timeout)
Set device poll timeout.
int mbgextio_get_ref_offs(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_REF_OFFS *p)
Read current ref offset to UTC configuration.
int mbgextio_get_irig_rx_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, IRIG_INFO *p)
Read configuration info and supported features for the device's IRIG input.
int mbgextio_set_net_dns_srch_dom_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_NET_NAME *p, uint16_t idx)
Send the network DNS search domain in MBG_NET_NAME format.
int mbgextio_get_xbp_limits(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, XBP_LIMITS *p)
Read the XBP_LIMITS to check which XBP features are supported.
int mbgextio_set_net_intf_link_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_NET_INTF_LINK_SETTINGS *p, uint16_t idx)
Send the network link configuration in MBG_NET_INTF_LINK_SETTINGS format.
int mbgextio_dev_has_io_ports(const MBG_MSG_CTL *pmctl)
A structure to used to read the status of the PTP protocol stack.
int mbgextio_free_lan_devices(MBG_LAN_DEV_LIST *list)
Frees the MBG_LAN_DEV_LIST allocated by mbgextio_find_lan_devices.
uint16_t TR_DISTANCE
Receiver distance from transmitter [km].
int mbgextio_dev_has_ucap(const MBG_MSG_CTL *pmctl)
int mbgextio_dev_has_tzcode(const MBG_MSG_CTL *pmctl)
int mbgextio_open_usb(const MBG_USB_DEV_INFO *mdev_info, MBG_MSG_CTL **ppmctl)
Open a binary communication channel using direct USB I/O.
int mbgextio_dev_has_ucap_net(const MBG_MSG_CTL *pmctl)
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_supp_tlv_diag_file
Check if a device supports creating / sending a diagnostics file via TLV.
int mbgextio_set_ucap_net_glb_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_UCAP_NET_GLB_SETTINGS *p)
Send the user capture network global configuration in MBG_UCAP_NET_GLB_SETTINGS format.
Number of event log entries that can be stored and yet have been saved.
int mbgextio_set_ntp_misc_orphan_mode_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const NTP_MISC_ORPHAN_MODE_SETTINGS *p)
Send the NTP orphan mode configuration in NTP_MISC_ORPHAN_MODE_SETTINGS format.
int mbgextio_get_pos_lla(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, LLA lla)
Read the current receiver position as LLA array.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_is_bus_lvl_dev
Check if a device is a bus level device.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_is_tcr
Check if a device is a time code receiver(TCR)
Summary of configuration and health data of all satellites.
int mbgextio_set_hq_rx_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const HAVEQUICK_SETTINGS *p)
Send new configuration settings for the device's HAVEQUICK input.
NTP trusted key settings.
NTP trusted key info, with index.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_gps_stat_info
Check if a device supports the STAT_INFO structure and API.
int mbgextio_xmt_secu_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *old_passwd, const char *new_passwd)
Send security settings for the socket connection.
int mbgextio_get_ucap_net_recv_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_UCAP_NET_RECV_INFO_IDX *p, uint16_t idx)
Read the user capture network receiver info with the given index in MBG_UCAP_NET_RECV_INFO_IDX format...
int mbgextio_get_user_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_USER_INFO_IDX *p, uint16_t idx)
Read the user info with the given index in MBG_USER_INFO_IDX format.
An IPv4 or IPv6 network address.
int mbgextio_set_ucap_net_recv_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_UCAP_NET_RECV_SETTINGS_IDX *p, uint16_t idx)
Send the user capture network receiver configuration with the given index in MBG_UCAP_NET_RECV_SETTIN...
int mbgextio_get_xmr_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, XMULTI_REF_INFO_IDX *p, uint16_t idx)
Read XMULTI_REF_INFO_IDX for a specific XMR source.
int mbgextio_dev_has_ant_cable_length(const MBG_MSG_CTL *pmctl)
int mbgextio_get_io_port_type_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_IO_PORT_TYPE_INFO_IDX *p, uint8_t port_idx, uint8_t port_type_idx)
Read I/O port type info in MBG_IO_PORT_TYPE_INFO_IDX format.
int mbgextio_req_data_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, GPS_CMD cmd, uint16_t idx, void *buf, size_t buf_size)
Read a specific element of an array of data structures.
Global settings for user captures via network.
Settings of an IPv4-only network interface.
MBG_MSG_BUFF * mbgextio_get_rcv_buffer_addr(MBG_MSG_CTL *pmctl)
Retrieve address of the allocated receive buffer.
int mbgextio_get_bvar_stat(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, BVAR_STAT *p)
Read the status of buffered variables.
GPS UTC correction parameters.
size_t mbgextio_get_xmt_buffer_size(MBG_MSG_CTL *pmctl)
Retrieve size of the allocated transmit buffer.
int mbgextio_get_snmp_v3_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_SNMP_V3_INFO_IDX *p, uint16_t idx)
Read SNMP v3 info in MBG_SNMP_V3_INFO_IDX format.
A structure used to configure a PTP port.
int mbgextio_set_ptp_v2_default_dataset(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_PTP_V2_DEFAULT_DATASET *p)
Send PTPv2 default dataset to a device in MBG_PTP_V2_DEFAULT_DATASET format.
#define MBG_BAUD_RATES
An initializer for a table of baud rate values.
int MBGEXTIO_CHK_SUPP_FNC(const MBG_MSG_CTL *pmctl)
Type of functions to check if a feature is supported.
int mbgextio_get_gnss_sat_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, GNSS_SAT_INFO_IDX *p, uint16_t idx)
::TODO
int mbgextio_dev_has_tainted_cfg(const MBG_MSG_CTL *pmctl)
int mbgextio_get_led_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_LED_SETTINGS_IDX *p, uint16_t idx)
Read a MBG_LED_SETTINGS_IDX parameter structure from a device.
int mbgextio_set_user_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_USER_SETTINGS *p, uint16_t idx)
Write user settings in MBG_USER_SETTINGS_IDX format.
Structure that contains an index value and the NTP peer state.
A The structure used to store the configuration of two serial ports.
int mbgextio_register_push_msg(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, GPS_CMD cmd)
Register for command specific push messages.
int mbgextio_set_user_mngmnt_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_USER_MNGMNT_SETTINGS *p)
Send the user configuration in MBG_USER_MNGMNT_SETTINGS format.
int mbgextio_get_gnss_sat_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, GNSS_SAT_INFO *p)
::TODO
int mbgextio_get_xmr_ext_src_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, XMR_EXT_SRC_INFO_IDX *p, uint16_t idx)
Read XMR_EXT_SRC_INFO_IDX.
int mbgextio_get_gnss_mode_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_GNSS_MODE_INFO *p)
Read current GNSS mode settings and supported features.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_database
Check if a device supports database(s) feature.
Time scale configuration settings plus capabilities.
int mbgextio_get_net_stat_dns_srch_dom_stat_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_NET_NAME_IDX *p, uint16_t idx)
Read the current network DNS search domain in MBG_NET_NAME_IDX format.
int mbgextio_get_snmp_glb_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_SNMP_GLB_INFO *p)
Read the SNMP global info in MBG_SNMP_GLB_INFO format.
int mbgextio_set_ant_cable_len(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ANT_CABLE_LEN *p)
Send the GPS antenna cable length configuration.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_user_auth
Check if a device supports user authentication.
Global network configuration settings.
int mbgextio_get_ptp_v1_time_properties_dataset(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_PTP_V1_TIME_PROPERTIES_DATASET *p)
Read the PTPv1 time properties dataset in MBG_PTP_V1_TIME_PROPERTIES_DATASET format.
int mbgextio_set_holdover_interval(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const XMR_HOLDOVER_INTV *p)
Set the XMR holdover interval.
int mbgextio_get_tr_distance(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, TR_DISTANCE *p)
Read the distance from transmitter TR_DISTANCE format.
long mbgextio_force_conn_serial(const char *dev)
Try to force a serial connection to a device.
int mbgextio_socket_write_ssh(MBG_MSG_CTL *pmctl, const void *buf, size_t len)
Function, which can be used to write data to an SSH binary protocol channel.
int mbgextio_get_fw_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_FW_INFO_IDX *p, uint16_t idx)
Read the firmware info with the given index in MBG_FW_INFO_IDX format.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_monitoring
Check if a device supports the extended feature monitoring.
int mbgextio_get_svc_status_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_SERVICE_STATUS_IDX *p, uint16_t idx)
Read the service status with the given index in MBG_SERVICE_STATUS_IDX format.
int mbgextio_dev_has_evt_log(const MBG_MSG_CTL *pmctl)
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_user_mngmnt
Check if a device supports user management.
int mbgextio_get_raw_irig_data(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_RAW_IRIG_DATA *p)
Read raw IRIG data.
NTP orphan mode settings to be read from / written to a device.
Detailed GNSS satellite status, plus index.
int mbgextio_get_ucap(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, TTM *p)
Read a user capture event in TTM format.
int mbgextio_xmt_cmd_u32(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, GPS_CMD cmd, uint32_t u32)
Transmit a message with a single ushort (uint32_t) parameter.
int mbgextio_set_ntp_refclk_cfg_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const NTP_REFCLK_CFG_SETTINGS *p, uint16_t idx)
Send NTP refclk config settings with the given index in NTP_REFCLK_CFG_SETTINGS format.
int mbgextio_close_connection(MBG_MSG_CTL **ppmctl)
Close a binary communication channel and release resources.
int mbgextio_set_ref_offs(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_REF_OFFS *p)
Send new ref offset to UTC settings.
PTPv1 current dataset containing information about the synchronization status of the device...
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_supp_tlv_exec_cmd
Check if a device supports command execution via TLV.
A timestamp with nanosecond resolution, but 64 bit size.
int MBG_TIME_MON_TARGET_EXT_DATA_SET_IDX
Status information on a ref time source at a specific priority level.
int mbgextio_open_serial_ftdi(int device_num, MBG_MSG_CTL **ppmctl, uint32_t baud_rate, const char *framing)
Open a binary communication channel using serial FTDI D2xx port.
PTPv1 port dataset containing information about the appropriate port of the device.
int mbgextio_set_svc_ctl_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, uint16_t idx, uint16_t ctl)
Set service control command.
int _MBG_API MBG_ASYNC_MSG_HANDLER_FNC(MBG_MSG_CTL *pmctl)
Type of a callback function to handle spurious binary messages.
int mbgextio_time_mon_send_inst_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_TIME_MON_INST_INFO *p)
int mbgextio_set_ims_fdm_output_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_IMS_FDM_OUTPUT_SETTINGS *p, uint16_t idx)
Write a MBG_IMS_FDM_OUTPUT_SETTINGS parameter structure to a device.
int mbgextio_get_corr_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, CORR_INFO *p)
int mbgextio_set_net_glb_cfg_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_NET_GLB_CFG_SETTINGS *p)
Set the device's global network configuration settings.
NTP symmetric key specific settings.
Current IRIG settings and supported codes.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_net_cfg
Check if a device supports the new NET_CFG API.
Configuration settings of a serial port.
int mbgextio_get_ip4_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, IP4_SETTINGS *p)
Read the lan ipv4 configuration state IP4_SETTINGS format.
A structure used to configure optional settings.
int mbgextio_open_socket(const char *host, MBG_MSG_CTL **ppmctl, const char *passwd)
Open a binary communication channel via a LAN/socket connection.
int mbgextio_get_syslog_glb_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_SYSLOG_GLB_INFO *p)
Read the syslog global info in MBG_SYSLOG_GLB_INFO format.
Information on available XBP nodes.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_transactions
Check if a device has MBG_XFEATURE_TRANSACTIONS.
NTP refclock info, with index.
int mbgextio_get_ext_sys_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_EXT_SYS_INFO *p)
int mbgextio_get_ptp_cfg_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, PTP_CFG_INFO *p)
Read the ptp configuration PTP_CFG_INFO format.
int mbgextio_dev_has_service(const MBG_MSG_CTL *pmctl)
Peer settings for NTP devices to configure an upload NTP server.
int mbgextio_open_serial(const char *dev, MBG_MSG_CTL **ppmctl, uint32_t baud_rate, const char *framing)
Open a binary communication channel using direct serial I/O.
MBG_MSG_BUFF * mbgextio_get_xmt_buffer_addr(MBG_MSG_CTL *pmctl)
Retrieve address of the allocated transmit buffer.
XMR timing metrics for a particular source, with index.
PTPv1 parent dataset containing information about the master (parent) of the device.
int mbgextio_set_tr_distance(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const TR_DISTANCE *p)
Set the transmitter distance (km) in TR_DISTANCE format.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_is_gnss
Check if a device supports the GNSS API.
Query MBG_NET_INTF_LINK_INFO by its index.
int mbgextio_clr_ucap_buff(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr)
Clear the user capture event buffer on-board the device.
Client settings of an NTP device.
Configuration settings for a HaveQuick input or output.
int mbgextio_get_ims_state(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_IMS_STATE *p)
Read the current IMS state and supported IMS features.
Current settings and general capabilities of a specific unicast master.
int mbgextio_unregister_push_msg(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, GPS_CMD cmd)
Unregister for command specific push messages.
Query MBG_NET_INTF_ROUTE_INFO by its index.
int mbgextio_set_ptp_v2_parent_dataset(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_PTP_V2_PARENT_DATASET *p)
Send PTPv2 parent dataset to a device in MBG_PTP_V2_PARENT_DATASET format.
int mbgextio_chk_user_perm(MBG_MSG_CTL *pmctl, uint16_t perm, uint32_t scope_mask)
Check user permission for one of the given scopes.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_supp_tlv_ntp_license
Check if a device supports supports NTP license infos via TLV.
Information on an XBP node with specific index.
int mbgextio_dev_has_synth(const MBG_MSG_CTL *pmctl)
int mbgextio_get_io_port_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_IO_PORT_INFO_IDX *p, uint8_t idx)
Read I/O port info in MBG_IO_PORT_INFO_IDX format.
int mbgextio_set_ntp_srv_mode_cfg(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const NTP_SRV_MODE_SETTINGS *p)
Send the NTP server mode configuration.
int mbgextio_get_first_evt_log_entry(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_EVT_LOG_ENTRY *p)
Return the first entry from the on-board event log.
int mbgextio_set_ptp_v1_time_properties_dataset(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_PTP_V1_TIME_PROPERTIES_DATASET *p)
Send PTPv1 time properties dataset to a device in MBG_PTP_V1_TIME_PROPERTIES_DATASET format...
int mbgextio_get_snmp_v3_trap_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_SNMP_V3_TRAP_INFO_IDX *p, uint16_t idx)
Read SNMP v3 trap info in MBG_SNMP_V3_TRAP_INFO_IDX format.
int mbgextio_xmt_cmd(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, GPS_CMD cmd)
Transmit a command-only message without additional data.
uint16_t GPS_CMD
The type of a GPS command code.
int mbgextio_get_user_level_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_USER_INFO_IDX *p, uint16_t idx)
Read the user level info with the given index in MBG_USER_INFO_IDX format.
int mbgextio_get_ptp_smpte_tlv_state(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, PTP_SMPTE_PROFILE_CFG *p)
Read the current SMPTE TLV.
int mbgextio_get_ntp_glb_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, NTP_GLB_INFO *p)
Read the ntp global information NTP_GLB_INFO format.
int mbgextio_setup_xdevfeat(MBG_MSG_CTL *pmctl, XBP_ADDR *addr)
Set up MBG_XDEV_FEATURES for a device which has just been opened.
int mbgextio_get_sv_alm(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, SV_ALM *p, SVNO svno)
Read the GPS almanach for the specified SV from a device.
int mbgextio_set_snmp_v3_trap_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_SNMP_V3_TRAP_SETTINGS *p, uint16_t idx)
Write SNMP v3 trap settings in MBG_SNMP_V3_TRAP_SETTINGS format.
int mbgextio_set_svc_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_SERVICE_SETTINGS *p, uint16_t idx)
Write service settings in MBG_SERVICE_SETTINGS_IDX format.
int mbgextio_socket_read_ssh(MBG_MSG_CTL *pmctl, void *buf, size_t len)
Function, which can be used to read data from an SSH binary protocol channel.
int mbgextio_set_io_port_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_IO_PORT_SETTINGS *p, uint8_t idx)
Send I/O port settings in MBG_IO_PORT_SETTINGS format.
int mbgextio_get_all_str_type_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, STR_TYPE_INFO_IDX stii[])
Read an array of all supported string types.
int mbgextio_get_ntp_trusted_key_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, NTP_TRUSTED_KEY_INFO_IDX *p, uint16_t idx)
Read the NTP trusted key info with the given index in NTP_TRUSTED_KEY_INFO_IDX format.
int mbgextio_set_ptp_v1_port_dataset_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_PTP_V1_PORT_DATASET *p, uint16_t idx)
Send PTPv1 port dataset with the appropriate index to a device in MBG_PTP_V1_PORT_DATASET format...
A generic structure used to specify FDM limits.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_req_ttm
Check if a device has MBG_XFEATURE_REQ_TTM.
int mbgextio_get_ntp_srv_mode_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, NTP_SRV_MODE_INFO *p)
Read the ntp server mode information in NTP_SRV_MODE_INFO format.
int mbgextio_get_receiver_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, RECEIVER_INFO *p)
Read a receiver info structure.
int mbgextio_xmt_msg(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, GPS_CMD cmd, const void *p, uint16_t n_bytes)
Set up and send a generic binary message.
int mbgextio_set_database_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_DATABASE_SETTINGS *p, uint8_t idx)
Write database settings in MBG_DATABASE_SETTINGS_IDX format.
XMR statistics for a particular source, with index.
int mbgextio_rcv_msg_unlocked(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, GPS_CMD cmd, void *buf, size_t buf_size)
Generic reception of a binary message.
int mbgextio_get_ntp_peer_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, NTP_PEER_SETTINGS_IDX *p, uint16_t idx)
Read the ntp peer settings of current idx NTP_PEER_SETTINGS format.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_pwr_ctl_api
Check if a device supports the power control API.
A generic structure used to hold a GPIO port's settings.
int mbgextio_dev_has_time_scale(const MBG_MSG_CTL *pmctl)
const char * mbg_baud_rate_strs[N_MBG_BAUD_RATES]
int mbgextio_set_scu_stat_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const SCU_STAT_SETTINGS *p)
Send SCU_STAT_SETTINGS to the device.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_is_dcf
Check if a device is a DCF77 receiver.
int mbgextio_get_xmr_ext_source_metrics_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, XMR_METRICS_IDX *p, uint16_t idx)
Read XMR_METRICS_IDX for a specific XMR source.
Configuration settings for a single programmable pulse output.
Structure that represents the current system status of an NTP device.
uint32_t mbg_baud_rates[N_MBG_BAUD_RATES]
int mbgextio_get_ims_fdm_state(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_IMS_FDM_STATE *p)
Read a MBG_IMS_FDM_STATE parameter structure from a device.
int mbgextio_set_ntp_clnt_mode_cfg(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const NTP_CLNT_MODE_SETTINGS *p)
Send the NTP client mode configuration.
uint16_t BVAR_STAT
Status flags of battery buffered data.
int mbgextio_dev_has_pos_lla(const MBG_MSG_CTL *pmctl)
int mbgextio_get_all_port_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, PORT_INFO_IDX pii[])
Read an array of current settings and capabilities of all serial ports.
PTPv2 time properties dataset.
int mbgextio_get_xmr_instances(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, XMULTI_REF_INSTANCES *p)
Read XMULTI_REF_INSTANCES.
int mbgextio_get_clk_res_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_CLK_RES_INFO *p)
Read clk_res_info from device.
Time scale configuration settings.
NTP refclock specific settings.
int mbgextio_time_mon_send_target_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_TIME_MON_TARGET_SETTINGS *p)
int mbgextio_set_ntp_trusted_key_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const NTP_TRUSTED_KEY_SETTINGS *p, uint16_t idx)
Send NTP trusted key settings with the given index in NTP_TRUSTED_KEY_SETTINGS format.
int mbgextio_set_syslog_glb_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_SYSLOG_GLB_SETTINGS *p)
Send the syslog global settings in MBG_SYSLOG_GLB_SETTINGS format.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_raw_irig_data
Check if a timecode receiver provides MBG_RAW_IRIG_DATA.
int mbgextio_dev_has_push_msgs(const MBG_MSG_CTL *pmctl)
int mbgextio_clr_evt_log(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr)
Clear the on-board event log.
int mbgextio_get_all_gnss_sat_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, GNSS_SAT_INFO_IDX gsii[], const MBG_GNSS_MODE_INFO *p_mi)
::TODO Read an array of all supported string types
Configuration settings for a single LNE port.
int mbgextio_get_all_pout_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, POUT_INFO_IDX *pii)
Read an array of current settings and capabilities of all programmable pulse outputs.
const char * mbg_framing_strs[N_MBG_FRAMINGS]
int mbgextio_set_utc_parm(MBG_MSG_CTL *pmctl, XBP_ADDR *p_addr, const UTC *p)
Write a UTC parameter structure to a device.
NTP symm key info, with index.
int mbgextio_get_io_port_limits(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_IO_PORT_LIMITS *p)
Read I/O port limits in MBG_IO_PORT_LIMITS format.
Additional parameters for SMPTE ST 2059-2 profile.
int mbgextio_get_time_scale_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_TIME_SCALE_INFO *p)
Read time scale configuration parameters.
Information on a specific supported string format.
int _MBG_API MBG_ASYNC_DATA_RESET_FNC(MBG_MSG_CTL *pmctl)
Type of a callback function to reset handling of spurious asynchronous data bytes.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_supp_tlv_ptpv1_license
Check if a device supports supports PTPv1 License Infos via TLV.
A structure used to specify a variable frequency.
int _MBG_API MBG_NACK_HANDLER_FNC(MBG_MSG_CTL *pmctl)
Type of a callback function to optionally handle NACK messages.
int mbgextio_get_pout_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, POUT_INFO_IDX *p, uint16_t idx)
Read current settings and capabilities of a specific programmable pulse output.
int mbgextio_set_snmp_v3_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_SNMP_V3_SETTINGS *p, uint16_t idx)
Write SNMP v3 settings in MBG_SNMP_V3_SETTINGS format.
Settings, features and flags for receivers of user captures via network.
int mbgextio_fw_ufu_flash(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_FW_UFU_FLASH_CMD *p)
Send UFU flash instruction(s)
Client settings info of an NTP device.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_supp_tlv_time_monitor_license
Check if a device supports supportsTime Monitor License infos via TLV.
#define MBG_BAUD_STRS
An initializer for a table of baud rate strings.
int mbgextio_open_ssh_socket(const char *host, MBG_MSG_CTL **ppmctl, SSH_DATA *ssh_data)
int mbgextio_get_ntp_misc_limits(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, NTP_MISC_LIMITS *p)
Read the NTP misc limits in NTP_MISC_LIMITS format.
int mbgextio_get_net_stat_intf_addr_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_NET_INTF_ADDR_INFO_IDX *p, uint16_t idx)
Read MBG_NET_INTF_ADDR_INFO_IDX from the status with the given index.
int mbgextio_get_xbp_node_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, XBP_NODE_INFO_IDX *p, uint16_t idx)
Read the XBP_NODE_INFO for a specific node in XBP_NODE_INFO_IDX format.
int mbgextio_get_net_stat_glb_cfg_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_NET_GLB_CFG_INFO *p)
Read the network global status information MBG_NET_GLB_CFG_INFO format.
int mbgextio_dev_has_pos_xyz(const MBG_MSG_CTL *pmctl)
int mbgextio_get_pos_xyz(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, XYZ xyz)
Read the current receiver position as XYZ array.
int mbgextio_set_enable_flags(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ENABLE_FLAGS *p)
Send the enable flags controlling when output signals are enabled.
int mbgextio_get_ant_cable_len(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ANT_CABLE_LEN *p)
Read the configured length of the antenna cable.
uint16_t ANT_CABLE_LEN
A data type used to configure the length of an antenna cable [m].
int mbgextio_get_io_port_status_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_IO_PORT_STATUS_IDX *p, uint8_t idx)
Read I/O port status in MBG_IO_PORT_STATUS_IDX format.
int mbgextio_get_net_dns_srvr_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_IP_ADDR_IDX *p, uint16_t idx)
Read a network DNS server entry in MBG_IP_ADDR_IDX format.
int mbgextio_set_pout_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const POUT_SETTINGS *p, uint16_t idx)
Send configuration settings for a specific programmable pulse output.
int mbgextio_get_port_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, PORT_INFO_IDX *p, uint16_t idx)
Read current settings and capabilities of a specific serial port.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_ntp
Check if a device supports the NTP API.
A structure to used to query the current configuration and capabilities of a PTP port.
void mbgextio_register_async_data_reset_callback(MBG_MSG_CTL *pmctl, MBG_ASYNC_DATA_RESET_FNC *fnc)
Register an asynchronous data reset callback function.
int mbgextio_dev_has_ant_info(const MBG_MSG_CTL *pmctl)
int mbgextio_set_ntp_symm_key_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const NTP_SYMM_KEY_SETTINGS *p, uint16_t idx)
Send NTP symmetric key settings with the given index in NTP_SYMM_KEY_SETTINGS format.
size_t mbgextio_get_rcv_buffer_size(MBG_MSG_CTL *pmctl)
Retrieve size of the allocated receive buffer.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_supp_tlv_fw_update
Check if a device supports a firmware update via TLV.
double XYZ[N_XYZ]
A position in cartesian coordinates.
Ionospheric correction parameters.
int mbgextio_setup_xbp_node_list(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr)
Read the XBP_NODE_INFO for a specific node in XBP_NODE_INFO_IDX format //##+++++++++++++++++++++++++...
Specific FDM settings and limits.
int mbgextio_get_event_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_EVENT_INFO_IDX *p, uint16_t idx)
Read monitoring event info in MBG_EVENT_INFO_IDX format.
Index structure for PTPv2 port dataset.
A structure used to transmit information on date and time.
int mbgextio_set_lne_port_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_LNE_PORT_SETTINGS *p, uint16_t idx)
Write a MBG_LNE_PORT_SETTINGS parameter structure to a device.
Index structure for PTPv1 port dataset.
int mbgextio_get_ntp_misc_orphan_mode_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, NTP_MISC_ORPHAN_MODE_INFO *p)
Read the NTP orphan mode information in NTP_MISC_ORPHAN_MODE_INFO format.
int mbgextio_get_ucap_net_glb_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_UCAP_NET_GLB_INFO *p)
Read the user capture network global info in MBG_UCAP_NET_GLB_INFO format.
A generic message send and receive control structure.
Generic state of an IMS device.
int mbgextio_get_net_glb_cfg_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_NET_GLB_CFG_INFO *p)
Read the network global config information MBG_NET_GLB_CFG_INFO format.
int mbgextio_reset_usb(const MBG_USB_DEV_INFO *mdev_info)
Reset an USB device in case that the open_usb function return MBG_ERR_BUSY.
int mbgextio_set_tzdl(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const TZDL *p)
Set the local time conversion parameters in TZDL format.
int mbgextio_get_ptp_v2_current_dataset(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_PTP_V2_CURRENT_DATASET *p)
Read the PTPv2 current dataset in MBG_PTP_V2_CURRENT_DATASET format.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_supp_tlv_ptpv2_license
Check if a device supports upports PTPv2 license infos.
int mbgextio_get_ims_fdm_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_IMS_FDM_INFO *p)
Read a MBG_IMS_FDM_INFO parameter structure from a device.
uint32_t XMR_HOLDOVER_INTV
XMR holdover interval, or elapsed holdover time, in [s].
int mbgextio_set_led_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_LED_SETTINGS *p, uint16_t idx)
Write a MBG_LED_SETTINGS parameter structure to a device.
int mbgextio_set_snmp_glb_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_SNMP_GLB_SETTINGS *p)
Send the SNMP global settings in MBG_SNMP_GLB_SETTINGS format.
Global configuration info of an NTP device (client/server)
Limits to be considered when specifying PTP unicast masters.
int mbgextio_get_net_intf_route_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_NET_INTF_ROUTE_INFO_IDX *p, uint16_t idx)
Read MBG_NET_INTF_ROUTE_INFO_IDX from the config with the given index.
int mbgextio_xmt_cmd_us(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, GPS_CMD cmd, uint16_t us)
Transmit a message with a single ushort (uint16_t) parameter.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_fw_mngmnt
Check if a device supports the FW management API.
int mbgextio_get_cfgh(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, CFGH *p)
Read configuration and health data of all satellites from a device.
Satellite information for a particular GNSS type.
Clock resolution information.
int mbgextio_get_synth(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, SYNTH *p)
Read the frequency synthesizer settings.
int mbgextio_get_net_stat_dns_srvr_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_IP_ADDR_IDX *p, uint16_t idx)
Read the current network DNS server in MBG_IP_ADDR_IDX format.
int mbgextio_get_snmp_v12_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_SNMP_V12_INFO_IDX *p, uint16_t idx)
Read SNMP v1 or v2 info in MBG_SNMP_V12_INFO_IDX format.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_xbp
Check if a device supports the extended binary protocl (XBP) feature.
An IPv4 or IPv6 network address, plus index.
int mbgextio_send_database_cmd(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, uint32_t cmd, const void *payload, uint32_t payload_len)
Send a specific command to database in MBG_DATABASE_CMD format.
int mbgextio_set_ptp_v1_default_dataset(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_PTP_V1_DEFAULT_DATASET *p)
Send PTPv1 default dataset to a device in MBG_PTP_V1_DEFAULT_DATASET format.
int mbgextio_set_net_intf_route_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_NET_INTF_ROUTE_SETTINGS *p, uint16_t idx)
Send the network addr configuration in MBG_NET_INTF_ROUTE_SETTINGS format.
int mbgextio_get_event_status_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, uint8_t vtype, MBG_EVENT_STATUS_IDX *p, uint16_t idx)
Read monitoring event status in MBG_EVENT_STATUS_IDX format.
int mbgextio_get_ntp_peer_state_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, NTP_PEER_STATE_IDX *p, uint16_t idx)
Read the NTP peer state of current idx NTP_PEER_STATE format.
int mbgextio_set_event_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_EVENT_SETTINGS *p, uint16_t idx)
Write monitoring event settings in MBG_EVENT_SETTINGS format.
A structure used to configure optional settings.
int mbgextio_get_tzdl(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, TZDL *p)
Read the local time conversion parameters in TZDL format.
int mbgextio_get_ptp_v1_default_dataset(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_PTP_V1_DEFAULT_DATASET *p)
Read the PTPv1 default dataset in MBG_PTP_V1_DEFAULT_DATASET format.
int mbgextio_set_ignore_lock(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const IGNORE_LOCK *p)
Send the ignore lock configuration.
int16_t MBG_REF_OFFS
A data type used to configure the ref offset.
int mbgextio_set_ptp_v2_current_dataset(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_PTP_V2_CURRENT_DATASET *p)
Send PTPv2 current dataset to a device in MBG_PTP_V2_CURRENT_DATASET format.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_cmd_save_cfg
Check if a device supports the GPS_SAVE_CFG command.
int mbgextio_socket_read_default(MBG_MSG_CTL *pmctl, void *buf, size_t len)
Function, which can be used to read data from a standard LAN socket.
int mbgextio_get_serial_ftdi_port_handle(MBG_MSG_CTL *pmctl)
Get the port handle of a serial FTDI device.
Global settings, features and flags for user captures via network.
int mbgextio_req_data_idx_unlocked(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, GPS_CMD cmd, uint16_t idx, void *buf, size_t buf_size)
Read a specific element of an array of data structures.
int mbgextio_set_net_intf_addr_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_NET_INTF_ADDR_SETTINGS *p, uint16_t idx)
Send the network addr configuration in MBG_NET_INTF_ADDR_SETTINGS format.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_pzf
Check if a device supports DCF77 PZF decoding.
int mbgextio_get_ntp_refclk_cfg_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, NTP_REFCLK_CFG_INFO_IDX *p, uint16_t idx)
Read the NTP refclock config info with the given index in NTP_REFCLK_CFG_INFO_IDX format...
int mbgextio_get_fdm_freq(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_GPIO_FREQ *p)
Read a MBG_GPIO_FREQ parameter structure from a device.
int _MBG_API MBG_ASYNC_DATA_HANDLER_FNC(MBG_MSG_CTL *pmctl, char c)
Type of a callback function to handle spurious asynchronous data bytes.
int mbgextio_get_ptp_v2_parent_dataset(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_PTP_V2_PARENT_DATASET *p)
Read the PTPv2 parent dataset in MBG_PTP_V2_PARENT_DATASET format.
int mbgextio_get_all_ptp_uc_master_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, PTP_UC_MASTER_INFO_IDX *ptp_uc_master_info_idx, const PTP_UC_MASTER_CFG_LIMITS *ptp_uc_master_cfg_limits)
Read the ptp configuration ALL_PTP_UC_MASTER_INFO_IDX format.
General info on supported XMR sources and instances.
int mbgextio_set_xmr_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const XMULTI_REF_SETTINGS *p, uint16_t idx)
Set XMULTI_REF_SETTINGS for a specific XMR source.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_xmulti_ref
Check if a device supports the up-to-date extended multi ref API.
int mbgextio_get_ims_fdm_output_state_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_IMS_FDM_OUTPUT_STATE_IDX *p, uint16_t idx)
Read a MBG_IMS_FDM_OUTPUT_STATE_IDX parameter structure from a device.
int mbgextio_time_mon_get_target_status_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_TIME_MON_TARGET_STATUS_IDX *p, uint16_t idx)
int mbgextio_get_ptp_v2_port_dataset_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_PTP_V2_PORT_DATASET_IDX *p, uint16_t idx)
Read the PTPv2 port dataset with the appropriate index in MBG_PTP_V2_PORT_DATASET_IDX format...
int mbgextio_set_port_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const PORT_SETTINGS *p, uint16_t idx)
Send configuration settings for a specific serial port.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_lne_api
Check if a device supports the LNE API.
int mbgextio_get_lne_port_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_LNE_PORT_SETTINGS_IDX *p, uint16_t idx)
Read a MBG_LNE_PORT_SETTINGS_IDX parameter structure from a device.
int mbgextio_get_ignore_lock(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, IGNORE_LOCK *p)
Read the status of ignore lock.
Network host or domain name, plus index.
General LED info to be read from a device.
int mbgextio_get_ptp_uc_master_cfg_limits(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, PTP_UC_MASTER_CFG_LIMITS *p)
Read the ptp configuration PTP_UC_MASTER_CFG_LIMITS format.
int mbgextio_get_pos(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, POS *p_pos)
Read the current receiver position as POS structure.
int mbgextio_get_ip4_state(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, IP4_SETTINGS *p)
Read the current lan ipv4 state IP4_SETTINGS format.
int mbgextio_get_led_limits(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_LED_LIMITS *p)
Read the MBG_LED_LIMITS to check how many LEDs are provided.
Structure for monitoring event info.
int mbgextio_set_ptp_v1_parent_dataset(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_PTP_V1_PARENT_DATASET *p)
Send PTPv1 parent dataset to a device in MBG_PTP_V1_PARENT_DATASET format.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_tlv_api
Check if a device supports the TLV API.
int mbgextio_dev_has_irig_rx(const MBG_MSG_CTL *pmctl)
int mbgextio_find_lan_devices(MBG_LAN_DEV_LIST **list, uint16_t timeout_ms)
Sets up a list of all available Meinberg LAN devices in the network.
int mbgextio_get_led_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_LED_INFO_IDX *p, uint16_t idx)
Read the current settings and features of a particular LED.
Settings for receivers of user captures via network.
int mbgextio_set_tzcode(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const TZCODE *p)
Set the local time conversion configuration in TZCODE format.
void mbgextio_register_async_data_callback(MBG_MSG_CTL *pmctl, MBG_ASYNC_DATA_HANDLER_FNC *fnc)
Register an asynchronous data handler callback function.
Configuration settings specifiying how to query a PTP unicast master.
int mbgextio_get_opt_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_OPT_INFO *p)
Read current optional settings and supported options.
int mbgextio_get_monitoring_limits(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_MONITORING_LIMITS *p)
Read the monitoring limits in MBG_MONITORING_LIMITS format.
int mbgextio_set_ntp_glb_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const NTP_GLB_SETTINGS *p)
Send the NTP global configuration.
#define MBG_FRAMING_STRS
An initializer for a table of known framing strings.
int mbgextio_time_mon_get_target_ext_data_set_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_TIME_MON_TARGET_EXT_DATA_SET_IDX *p, uint16_t idx)
One of several sets of satellite information for a particular GNSS type.
int mbgextio_get_iono(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, IONO *p)
Read the ionospheric correction parameters from a device.
int mbgextio_get_net_dns_srch_dom_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_NET_NAME_IDX *p, uint16_t idx)
Read the network DNS search domain in MBG_NET_NAME_IDX format.
int mbgextio_get_svc_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_SERVICE_INFO_IDX *p, uint16_t idx)
Read the service info with the given index in MBG_SERVICE_INFO_IDX format.
the number of known baud rates
int MBG_TIME_MON_TARGET_SETTINGS
Time zone / daylight saving parameters.
int mbgextio_set_snmp_v12_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_SNMP_V12_SETTINGS *p, uint16_t idx)
Write SNMP v1 or v2 settings in MBG_SNMP_V12_SETTINGS format.
int mbgextio_get_port_parm(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, PORT_PARM *p)
Read serial port parameters in PORT_PARM format.
int mbgextio_set_pos_lla(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const LLA lla)
Set the device's position by sending an LLA array.
void mbgextio_set_msg_rcv_timeout(MBG_MSG_CTL *pmctl, ulong new_timeout)
Set message receive timeout value.
int mbgextio_get_ptp_v1_port_dataset_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_PTP_V1_PORT_DATASET_IDX *p, uint16_t idx)
Read the PTPv1 port dataset with the appropriate index in MBG_PTP_V1_PORT_DATASET_IDX format...
Peer settings for NTP devices.
int mbgextio_set_ims_fdm_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_IMS_FDM_SETTINGS *p)
Write a MBG_IMS_FDM_SETTINGS parameter structure to a device.
Synthesizer configuration parameters.
int mbgextio_set_time(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const TTM *p)
Set the device's time by sending a TTM strucure.
int mbgextio_set_irig_tx_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const IRIG_SETTINGS *p)
Send new configuration settings for the device's IRIG output.
int mbgextio_get_user_status_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_USER_STATUS_IDX *p, uint16_t idx)
Read the user status with the given index in MBG_USER_STATUS_IDX format.
Generic state of an IMS sensor, with sensor index.
ulong mbgextio_get_dev_poll_timeout(const MBG_MSG_CTL *pmctl)
Get device poll timeout.
Reference source capabilities and current configuration for a specific priority level.
int mbgextio_get_lne_limits(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_LNE_LIMITS *p)
Read a MBG_IMS_FDM_STATE parameter structure from a device. ::TODO ###.
int mbgextio_set_fdm_tdev(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const NANO_TIME_64 *p)
Set time deviation of powerline time in relation to the current reference time.
int mbgextio_get_xbp_node_limits(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, XBP_NODE_LIMITS *p)
Read the XBP_NODE_LIMITS to check how many ports are provided.
Network host or domain name.
A geographic position represented in different formats.
A buffer used to read raw IRIG data bits from an IRIG receiver.
int mbgextio_dev_has_gpio(const MBG_MSG_CTL *pmctl)
int mbgextio_get_sw_rev(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, SW_REV *p)
Read the software revision.
PTPv1 default dataset containing global information about the device.
int mbgextio_set_gpio_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_GPIO_SETTINGS *p, uint16_t idx)
Send configuration settings for a specific GPIO.
int mbgextio_get_ims_sensor_state_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_IMS_SENSOR_STATE_IDX *p, uint16_t idx)
Read sensor values from a specified sensor on the device.
int mbgextio_set_port_parm(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const PORT_PARM *p)
Send serial port parameters in PORT_PARM format.
int mbgextio_set_pwr_ctl(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_PWR_CTL *p)
Write a MBG_PWR_CTL parameter structure to a device.
int mbgextio_get_pwr_ctl(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_PWR_CTL *p)
Read a MBG_PWR_CTL parameter structure from a device.
int MBG_TIME_MON_TARGET_STATUS_IDX
Server settings of an NTP device.
int mbgextio_set_syslog_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_SYSLOG_SETTINGS *p, uint16_t idx)
Write syslog server information in MBG_SYSLOG_SETTINGS_IDX format.
int mbgextio_dev_has_tzdl(const MBG_MSG_CTL *pmctl)
PZF correlation status info.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_is_legacy
Check if a device is a legacy device.
int mbgextio_get_holdover_interval_counter(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, XMR_HOLDOVER_INTV *p)
Read the XMR holdover interval counter.
int mbgextio_cmd_save_cfg(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr)
Send a command to let the device save it's current configuration as default.
int mbgextio_get_irig_tx_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, IRIG_INFO *p)
Read configuration info and supported features of the device's IRIG output.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_up_conv
Check if the device has an L1 frequency up converter.
int mbgextio_dev_has_prog_pulses(const MBG_MSG_CTL *pmctl)
An SV number plus the SV's almanac data.
int mbgextio_get_fw_glb_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_FW_GLB_INFO *p)
Read the firmware global information in MBG_FW_GLB_INFO format.
Reference source configuration settings.
A buffer for a message header plus data part.
int mbgextio_open_usb_ldev(libusb_device *ldev, MBG_MSG_CTL **ppmctl)
Open a binary communication channel using direct USB I/O.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_supp_tlv_ufu
Check if a device supports a UFU (Unified Firmware Update) via TLV.
void mbgextio_register_nack_callback(MBG_MSG_CTL *pmctl, MBG_NACK_HANDLER_FNC *fnc)
Register a NACK message handler callback function.
int mbgextio_get_lan_if_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, LAN_IF_INFO *p)
Read the lan interface configuration LAN_IF_INFO format.
uint16_t SVNO
the number of an SV (Space Vehicle, i.e. satellite)
int mbgextio_get_net_stat_intf_route_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_NET_INTF_ROUTE_INFO_IDX *p, uint16_t idx)
Read MBG_NET_INTF_ROUTE_INFO_IDX from the status with the given index.
Satellite receiver status information.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_supp_tlv_file_req
Check if a device supports file request via TLV.
int mbgextio_get_ims_fdm_output_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_IMS_FDM_OUTPUT_INFO_IDX *p, uint16_t idx)
Read a MBG_IMS_FDM_OUTPUT_INFO_IDX parameter structure from a device.
int mbgextio_get_user_mngmnt_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_USER_MNGMNT_INFO *p)
Read the user management info in MBG_USER_MNGMNT_INFO format.
int mbgextio_get_ntp_sys_state(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, NTP_SYS_STATE *p)
Read the current system state of ntp device NTP_SYS_STATE format.
int mbgextio_open_serial_force_default(const char *dev, MBG_MSG_CTL **ppmctl, uint32_t baud_rate, const char *framing)
Open a binary communication channel forcing default serial parameters.
Software revision information.
int mbgextio_get_syslog_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_SYSLOG_INFO_IDX *p, uint16_t idx)
Read syslog server information in MBG_SYSLOG_INFO_IDX format.
int mbgextio_dev_has_bvar_stat(const MBG_MSG_CTL *pmctl)
A structure used to report XBP features and limits.
int mbgextio_set_user_level_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_USER_SETTINGS *p, uint16_t idx)
Write user level settings in MBG_USER_SETTINGS_IDX format.
int mbgextio_set_ptp_v2_time_properties_dataset(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_PTP_V2_TIME_PROPERTIES_DATASET *p)
Send PTPv2 time properties dataset to a device in MBG_PTP_V2_TIME_PROPERTIES_DATASET format...
Current settings and general capabilities of a specific serial port.
int mbgextio_set_ntp_peer_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const NTP_PEER_SETTINGS *p, uint16_t idx)
Send configuration settings for a specific NTP peer.
int mbgextio_set_opt_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_OPT_SETTINGS *p)
Send new optional settings flags.
int mbgextio_get_snmp_v12_trap_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_SNMP_V12_TRAP_INFO_IDX *p, uint16_t idx)
Read SNMP v1 or v2 trap info in MBG_SNMP_V12_TRAP_INFO_IDX format.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_ext_sys_info
Check if a device has MBG_XFEATURE_EXT_SYS_INFO.
int mbgextio_get_ptp_v1_current_dataset(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_PTP_V1_CURRENT_DATASET *p)
Read the PTPv1 current dataset in MBG_PTP_V1_CURRENT_DATASET format.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_ptp
Check if a device supports the PTP API.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_led_api
Check if a device supports the LED API.
int mbgextio_time_mon_get_inst_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_TIME_MON_INST_INFO *p)
int mbgextio_dev_has_time_ttm(const MBG_MSG_CTL *pmctl)
int mbgextio_get_database_glb_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_DATABASE_GLB_INFO *p)
Read global database information in MBG_DATABASE_GLB_INFO format.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_is_gps
Check if a device can receive the GPS satellite system.
int mbgextio_get_utc_parm(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, UTC *p)
Read a UTC parameter structure from a device.
double LLA[N_LLA]
A geographic position based on latitude, longitude, and altitude.
int mbgextio_get_ptp_v2_time_properties_dataset(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_PTP_V2_TIME_PROPERTIES_DATASET *p)
Read the PTPv2 time properties dataset in MBG_PTP_V2_TIME_PROPERTIES_DATASET format.
int mbgextio_setup_receiver_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, RECEIVER_INFO *p)
Setup a receiver info structure.
int mbgextio_get_gnss_sv_status_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, GNSS_SV_STATUS_IDX *p, uint16_t idx)
::TODO
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_scu_stat
Check if the device supports the SCU_STAT structures.
int mbgextio_set_ptp_v2_port_dataset_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_PTP_V2_PORT_DATASET *p, uint16_t idx)
Send PTPv2 port dataset with the appropriate index to a device in MBG_PTP_V2_PORT_DATASET format...
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_lan_ip4
Check if a device supports the old LAN_IP4 API.
Configuration settings of an IRIG input or output.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_supp_tlv_fw_rollback
Check if a device supports a factory reset via TLV.
int mbgextio_get_str_type_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, STR_TYPE_INFO_IDX *p, uint16_t idx)
Read information on a specific supported string format.
int mbgextio_set_snmp_v12_trap_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_SNMP_V12_TRAP_SETTINGS *p, uint16_t idx)
Write SNMP v1 or v2 trap settings in MBG_SNMP_V12_TRAP_SETTINGS format.
int mbgextio_get_next_evt_log_entry(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_EVT_LOG_ENTRY *p)
Return the next entry from the on-board event log.
int mbgextio_get_ant_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ANT_INFO *p)
Read the GPS antenna info structure.
int mbgextio_open_serial_raw(const char *dev, MBG_MSG_CTL **ppmctl, uint32_t baud_rate, const char *framing)
Network interface route specific settings.
General info to be read from an LNE device.
int mbgextio_get_xmr_status_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, XMULTI_REF_STATUS_IDX *p, uint16_t idx)
Read XMULTI_REF_STATUS_IDX for a specific XMR source.
int mbgextio_get_ntp_symm_key_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, NTP_SYMM_KEY_INFO_IDX *p, uint16_t idx)
Read the NTP symmetric key info with the given index in NTP_SYMM_KEY_INFO_IDX format.
int mbgextio_get_xmulti_ref_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, XMULTI_REF_INFO_IDX *p)
Read the multi ref info from a device.
Query MBG_NET_INTF_ADDR_INFO by its index.
int mbgextio_get_debug_status(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_DEBUG_STATUS *p)
Read current debug status.
int mbgextio_get_ims_fdm_limits(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_IMS_FDM_LIMITS *p)
Read a MBG_IMS_FDM_LIMITS parameter structure from a device.
Physical network interface link specific settings.
int mbgextio_set_hq_tx_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const HAVEQUICK_SETTINGS *p)
Send new configuration settings for the device's HAVEQUICK output.
int mbgextio_get_tainted_cfg(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_TAINTED_CFG *p)
Read MBG_TAINTED_CFG structure from a device.
int mbgextio_get_fw_ufu_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_FW_UFU_INFO_IDX *p, uint8_t fw_idx, uint8_t ufu_idx)
Read the firmware ufu info of the given firmware with the also given index in MBG_FW_UFU_INFO_IDX for...
Current settings and general capabilities of an LED, plus index.
int mbgextio_set_ptp_v1_current_dataset(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_PTP_V1_CURRENT_DATASET *p)
Send PTPv1 current dataset to a device in MBG_PTP_V1_CURRENT_DATASET format.
RECEIVER_INFO * mbgextio_get_receiver_info_addr(MBG_MSG_CTL *pmctl)
Retrieve address of the RECEIVER_INFO read from the device.
Configuration settings for a single LNE port, plus index.
Configuration settings for a single LED, plus index.
int mbgextio_get_net_intf_link_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_NET_INTF_LINK_INFO_IDX *p, uint16_t idx)
Read MBG_NET_INTF_LINK_INFO_IDX from the config with the given index.
const char * mbgextio_get_cmd_name(GPS_CMD cmd_code)
int mbgextio_dev_has_ims(const MBG_MSG_CTL *pmctl)
int mbgextio_set_ptp_uc_master_settings_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const PTP_UC_MASTER_SETTINGS *p, uint16_t idx)
Send PTP unicast master configuration settings for a PTP unicast slave mode device.
An XBP address specifier.
int mbgextio_socket_write_default(MBG_MSG_CTL *pmctl, const void *buf, size_t len)
Function, which can be used to write data to a standard LAN socket.
int mbgextio_get_event_value_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, uint16_t eidx, uint8_t vtype, MBG_EVENT_VALUE_IDX *p, uint16_t vidx)
Read monitoring event status in MBG_EVENT_STATUS_IDX format.
Specific output settings and limits, plus index.
int mbgextio_rcv_msg(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, GPS_CMD cmd, void *buf, size_t buf_size)
Generic reception of a binary message.
int mbgextio_get_gps_stat_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, STAT_INFO *p)
Read GPS status info.
int mbgextio_get_xmr_ext_source_stats_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, XMR_STATS_IDX *p, uint16_t idx)
Read XMR_STATS_IDX for a specific XMR source.
int mbgextio_get_num_evt_log_entries(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_NUM_EVT_LOG_ENTRIES *p)
Read the current number of entries in the on-board event log.
int mbgextio_set_ip4_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const IP4_SETTINGS *p)
Save the current ipv4 settings IP4_SETTINGS format.
int mbgextio_set_irig_rx_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const IRIG_SETTINGS *p)
Send new configuration settings for the device's IRIG input.
Antenna status and error at reconnect information.
int mbgextio_get_database_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_DATABASE_INFO_IDX *p, uint8_t idx)
Read a database info with given index in MBG_DATABASE_INFO_IDX format.
int mbgextio_dev_has_irig_tx(const MBG_MSG_CTL *pmctl)
int mbgextio_dev_has_clk_res_info(const MBG_MSG_CTL *pmctl)
int mbgextio_delete_fw(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, uint16_t idx)
Delete the firmware with the given index.
int mbgextio_get_enable_flags(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ENABLE_FLAGS *p)
Read the enable flags controlling when output signals are enabled.
int mbgextio_dev_has_enable_flags(const MBG_MSG_CTL *pmctl)
int mbgextio_get_svc_mgmt_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_SERVICE_MGMT_INFO *p)
Read service management info in MBG_SERVICE_MGMT_INFO format.
int mbgextio_get_time(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, TTM *p)
Read the current time as TTM strucure.
the number of known framings
int mbgextio_req_data(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, GPS_CMD cmd, void *buf, size_t buf_size)
Transmit a message without a single ushort (16 bit) parameter.
int mbgextio_get_tzcode(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, TZCODE *p)
Read the local time conversion configuration in TZCODE format.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_gnss_mode
Check if a device supports GNSS mode feature All GNSS receivers support this feature by default...
Server settings info of an NTP device.
int mbgextio_get_xmr_holdover_status(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, XMR_HOLDOVER_STATUS *p)
Read XMR_HOLDOVER_STATUS.
int mbgextio_set_time_scale_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_TIME_SCALE_SETTINGS *p)
Send new time scale configuration settings.
General NTP symmetric key limits to be read from a device.
MBGEXTIO_CHK_SUPP_FNC mbgextio_dev_has_reboot
Check if a device has MBG_XFEATURE_REBOOT.
Current settings and general capabilities of an LNE port, plus index.
int mbgextio_get_ptp_v2_default_dataset(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_PTP_V2_DEFAULT_DATASET *p)
Read the PTPv2 default dataset in MBG_PTP_V2_DEFAULT_DATASET format.
int mbgextio_get_scu_stat_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, SCU_STAT_INFO *p)
Read SCU_STAT_INFO from the device.
int mbgextio_set_net_dns_srvr_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_IP_ADDR *p, uint16_t idx)
Send the network DNS server address in MBG_IP_ADDR format.
int MBG_TIME_MON_INST_INFO
int mbgextio_get_ntp_clnt_mode_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, NTP_CLNT_MODE_INFO *p)
Read the ntp global information NTP_CLNT_MODE_INFO format.
A structure used to identify a device type and supported features.
Global configuration settings of an NTP device (client/server)
uint16_t TZCODE
Type of variable to hold a TZ code.
int mbgextio_get_net_stat_intf_link_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_NET_INTF_LINK_INFO_IDX *p, uint16_t idx)
Read MBG_NET_INTF_LINK_INFO_IDX from the status with the given index.
Output state of FDM device plus index.
Global current network settings and supported features.
int mbgextio_set_gnss_mode_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_GNSS_MODE_SETTINGS *p)
Write GNSS mode settings.
int mbgextio_get_ptp_v1_parent_dataset(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_PTP_V1_PARENT_DATASET *p)
Read the PTPv1 parent dataset in MBG_PTP_V1_PARENT_DATASET format.
Network interface address specific settings, flags and supported features.
General NTP misc limits to be read from a device.
int mbgextio_get_ntp_symm_key_limits(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, NTP_SYMM_KEY_LIMITS *p)
Read the NTP symmetric key limits in NTP_SYMM_KEY_LIMITS format.
uint32_t MBG_DEBUG_STATUS
A data type used to read the board's debug status.
Simple LAN interface information.
ulong mbgextio_get_msg_rcv_timeout(const MBG_MSG_CTL *pmctl)
Get message receive timeout value.
int mbgextio_get_ntp_refclk_state_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, NTP_REFCLK_STATE_IDX *p, uint16_t idx)
Read the NTP refclock state of current idx in NTP_REFCLK_STATE format.
int mbgextio_get_net_intf_addr_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_NET_INTF_ADDR_INFO_IDX *p, uint16_t idx)
Read MBG_NET_INTF_ADDR_INFO_IDX from the config with the given index.
int mbgextio_get_ptp_state(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, PTP_STATE *p)
Read the current state of PTP device PTP_STATE format.
A structure controlling when output signals are enabled.
Current settings and general capabilities of a specific programmable pulse output.
int mbgextio_set_ptp_cfg_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const PTP_CFG_SETTINGS *p)
Send configuration settings for PTP.
int mbgextio_get_lne_port_info_idx(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_LNE_PORT_INFO_IDX *p, uint16_t idx)
Read a MBG_LNE_PORT_INFO_IDX parameter structure from a device.
Configuration settings for a single LED.
Output settings of FDM device.
void mbgextio_register_async_msg_callback(MBG_MSG_CTL *pmctl, MBG_ASYNC_MSG_HANDLER_FNC *fnc)
Register an asynchronous message handler callback function.
int mbgextio_set_active_fw(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, uint16_t idx)
Activate the firmware with the given index.
long mbgextio_force_conn_serial_ftdi(int device_num)
Try to force a serial connection to a device via the FTDI API.
int mbgextio_set_synth(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const SYNTH *p)
Write the frequency synthesizer settings.
int mbgextio_dev_has_serouts(const MBG_MSG_CTL *pmctl)