1035 void rad_to_dms(
const double *rad,
DMS *dms,
const char prefix ) ;
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_ims_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_IMS_INFO **pp)
Read all IMS related information / configuration into an ALL_IMS_INFO structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_tlv_buffer(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const void *buffer, size_t size, MBG_TLV_TYPE tlv_feat_type, MBG_TLV_UID uid)
Send buffer to a host.
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_svc_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ALL_SERVICE_INFO *p)
Write all service configuration to a device.
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_tlv_blob(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const void *blob, size_t size, MBG_TLV_UID uid, void *user_data, void(*func)(const MBG_TLV_HDR *, void *))
Send a file with a specific command to a host.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_io_ports(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_MBG_IO_PORTS **pp)
Read all I/O port related information to an ALL_MBG_IO_PORTS structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_syslog_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_SYSLOG_INFO **p)
Read all syslog configuration into an ALL_SYSLOG_INFO structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_req_file_with_cmd(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *dest_path, MBG_TLV_TYPE tlv_feat_type, MBG_TLV_UID uid)
Request a file with a specific command from a host.
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_monitoring_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_MONITORING_INFO *p)
Write all monitoring configuration to a device.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_svc_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_SERVICE_INFO **p)
Read all user info and store it into a newly allocated or reused ALL_USER_INFO.
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_tlv_announce(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_TLV_ANNOUNCE *p)
Send a MBG_TLV_ANNOUNCE structure to a host.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_gpio_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_GPIO_INFO **pp)
Read all GPIO related information / configuration into an ALL_GPIO_INFO structure.
All XBP information of a XBP supporting device.
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_tlv_cmd(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_TLV_TYPE tlv_feat_type, MBG_TLV_UID uid)
Send a tlv cmd to a host.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_net_status_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_NET_STATUS_INFO **p)
Read current network status into an ALL_NET_STATUS_INFO structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_net_cfg_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_NET_CFG_INFO **p)
Read all network configuration into an ALL_NET_CFG_INFO structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_ptp_cfg_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_PTP_CFG_INFO *p)
Read all PTP configuration into an ALL_PTP_CFG_INFO structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_io_port_status(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_MBG_IO_PORTS *p)
Read all I/O port related status information to an ALL_MBG_IO_PORTS structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_snmp_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_SNMP_INFO **p)
Read all SNMP configuration into an ALL_SNMP_INFO structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_ptp_v1_common_datasets(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_PTP_V1_COMMON_DATASETS **p)
Read all PTPv1 common datasets into a newly or re-allocated ALL_PTP_V1_COMMON_DATASETS structure...
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_ptp_cfg_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ALL_PTP_CFG_INFO *p)
Write all PTP settings to a device.
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_net_cfg_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_NET_CFG_INFO *p)
Write all network settings to a device.
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_cmd_line(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *cmd_line, MBG_TLV_UID uid)
Send a cmd line to a host.
int mbgextio_save_serial_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, RECEIVER_PORT_CFG *p_rpcfg, uint16_t port_idx)
Send the configuration settings for a single serial port to a device.
_NO_MBG_API_ATTR int _MBG_API mbgextio_tlv_to_file(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *file)
Read TLV into a single file. See mbgextio_tlv_to_mem ::TODO.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_events(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ALL_MONITORING_INFO *info, ALL_EVENTS **p)
Read all events into an ALL_EVENTS structure.
uint16_t GPS_CMD
The type of a GPS command code.
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_ucap_net_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_UCAP_NET_INFO *p)
Write all user capture network settings to a device.
uint32_t MBG_TLV_TYPE
A data type to hold one of the MBG_TLV_TYPES or MBG_TLV_FEAT_TYPES.
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_file(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *file, const char *rev, const char *dest_path, MBG_TLV_TYPE tlv_feat_type, MBG_TLV_UID uid)
Send a file with a specific command to a host.
All monitoring information.
Summary information on all supported GNSS systems.
int mbgextio_get_serial_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, RECEIVER_PORT_CFG *p_rpcfg)
Read all serial port settings and supported configuration parameters.
_NO_MBG_API_ATTR int _MBG_API mbgextio_begin_transaction(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, uint16_t type, uint8_t set)
Begin a transaction.
Geographic longitude or latitude in [degrees, minutes, seconds].
_NO_MBG_API_ATTR int _MBG_API mbgextio_end_transaction(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, uint16_t type, int rc)
End a transaction.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_xmulti_ref_status(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ALL_XMULTI_REF_INFO *info, ALL_XMULTI_REF_STATUS **p)
Read all XMR status info into a newly or re-allocated ALL_XMULTI_REF_STATUS.
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_ntp_cfg_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_NTP_CFG_INFO *p)
Write all NTP settings to a device.
_NO_MBG_API_ATTR int _MBG_API mbgextio_apply_license_file(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *file, MBG_TLV_UID uid)
Wrapper function for mbgextio_xmt_file ::TODO.
_NO_MBG_API_ATTR int _MBG_API mbgextio_tlv_to_mem(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, void **buf)
Read TLV into memory.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_ucap_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_UCAP_INFO **p)
Read all user capture information and store it into a newly allocated or reused ALL_UCAP_INFO.
int mbgextio_chk_get_all_gnss_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_GNSS_INFO *p_agi)
Read or setup all GNSS status information.
A generic message send and receive control structure.
All network configuration parameters.
All PTPv2 common datasets for a PTP device.
void lla_to_dms(POS *pos)
Convert mathematic coords to to geographic coords.
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_syslog_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ALL_SYSLOG_INFO *p)
Write all syslog configuration from an ALL_SYSLOG_INFO structure.
_NO_MBG_API_ATTR MBG_TLV_RCV_STATE *_MBG_API mbgextio_get_tlv_rcv_state(MBG_MSG_CTL *pmctl)
Get control message's internal TLV state.
All PTP configuration parameters.
Structure containing state information while reading TLV data.
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_xmulti_ref_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_XMULTI_REF_INFO *p)
Set all extended multi ref settings to a device.
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_diag_file(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *file, MBG_TLV_UID uid)
Wrapper function for mbgextio_xmt_file ::TODO move to firmware-specific module.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_firmware_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_FIRMWARE_INFO **p)
Read all FW management info into a newly or re-allocated ALL_FIRMWARE_INFO structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_binary_file(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *file, const char *dest_path, MBG_TLV_UID uid)
Wrapper function for mbgextio_xmt_file ::TODO.
All PTPv1 common datasets for a PTP device.
_NO_MBG_API_ATTR int _MBG_API mbgextio_req_file(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *src_file, const char *dest_file, void **dest_buf, size_t *dest_buf_len, MBG_TLV_UID uid)
Request a generic file of a target.
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_ack(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, GPS_CMD cmd)
Transmit an ACK response to the sender.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_user_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_USER_INFO **p)
Read all user info and store it into a newly allocated or reused ALL_USER_INFO.
_NO_MBG_API_ATTR MBG_USB_DEV_INFO *_MBG_API mbgextio_get_usb_dev_info(MBG_MSG_CTL *pmctl)
Get control message's internal USB device info structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_ptp_v2_common_datasets(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_PTP_V2_COMMON_DATASETS **p)
Read all PTPv2 common datasets into a newly or re-allocated ALL_PTP_V2_COMMON_DATASETS structure...
_NO_MBG_API_ATTR int _MBG_API mbgextio_req_all_timemon_status(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, void *buf, uint16_t num_elem, size_t buflen)
Request full timemon-status of a timemon-device.
A geographic position represented in different formats.
uint32_t MBG_TLV_UID
A data type used to hold a unique ID (UID) for a TLV transaction.
A structure initiating a TLV transfer.
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_fw_rollback(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_TLV_UID uid)
Wrapper function for mbgextio_xmt_tlv_cmd.
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_io_ports(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ALL_MBG_IO_PORTS *p)
Write all I/O port related configuration to a device.
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_fw_update(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *file, const char *rev, const char *dest_path, MBG_TLV_UID uid)
Wrapper function for mbgextio_xmt_file ::TODO.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_ims_state(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ALL_IMS_INFO *info, ALL_IMS_STATE **pp)
Read all IMS related states into an ALL_IMS_STATE structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_ntp_status(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ALL_NTP_CFG_INFO *info, ALL_NTP_STATUS **p)
Read all NTP status info into a newly or re-allocated ALL_NTP_STATUS structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_xbp_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_XBP_INFO **p)
Read all XBP information from a device into a newly or re-allocated ALL_XBP_INFO structure.
All SNMP configuration information.
_NO_MBG_API_ATTR int _MBG_API mbgextio_tlv_to_struct(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, void *buf, size_t buflen)
Read TLV data into a single structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_do_xmt_file(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, FILE *f, uint32_t bytes)
Send a file to a host.
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_tlv_chunk(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const void *buf, size_t buflen, void *user_data, void(*func)(const MBG_TLV_HDR *, void *))
Send a buffer with variable length to a host.
TLV header structure containing information on current TLV transaction.
An XBP address specifier.
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_database_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ALL_DATABASE_INFO *p)
Write all database configurations from an ALL_DATABASE_INFO structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_gpio_state(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ALL_GPIO_INFO *info, ALL_GPIO_STATE **pp)
Read all GPIO related state information to an ALL_GPIO_STATE structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_user_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_USER_INFO *p)
Write all user configuration to a device.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_database_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_DATABASE_INFO **p)
Read all database related info into an ALL_DATABASE_INFO structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_snmp_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_SNMP_INFO *p)
Write all SNMP settings to a device.
void rad_to_dms(const double *rad, DMS *dms, const char prefix)
Convert a mathematical angle [rad] to a geographic angle [degree, minute, second].
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_nack(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, GPS_CMD cmd, int error)
Transmit a NACK response to the sender.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_ntp_cfg_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_NTP_CFG_INFO **p)
Read all NTP configuration into a newly or re-allocated ALL_NTP_CFG_INFO structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_events_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ALL_EVENTS *p)
Write all event related configurations to a device.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_xmulti_ref_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_XMULTI_REF_INFO **p)
Read all XMR info into a newly or re-allocated ALL_XMULTI_REF_INFO.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_monitoring_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_MONITORING_INFO **p)
Read all monitoring configuration into an ALL_MONITORING_INFO structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_req_diag_file(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *dest_path, MBG_TLV_UID uid)
Wrapper function.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_ucap_net_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_UCAP_NET_INFO **p)
Read all user capture network info and store it into a newly allocated or reused ALL_UCAP_NET_INFO.
All configuration parameters for all serial ports.