121 #define _check_feat_supp_mask( _supp_msk, _chk_msk ) \ 122 ( ( ( (_supp_msk) & (_chk_msk) ) == (_chk_msk) ) ? \ 123 MBG_SUCCESS : MBG_ERR_NOT_SUPP_BY_DEV ) 140 #define _check_feat_supp_bit( _supp_msk, _bit_num ) \ 141 ( ( (_supp_msk) & ( 1UL << (_bit_num) ) ) ? \ 142 MBG_SUCCESS : MBG_ERR_NOT_SUPP_BY_DEV ) 163 int byte_num = bit_num >> 3;
165 if ( byte_num < max_bytes )
167 ulong bit_mask = 1
UL << ( bit_num & 0x07 );
XDEVFEAT_CHK_SUPP_FNC xdevfeat_supp_tlv_ptpv2_license
Check if a device supports PTPv2 license infos.
int xdevfeat_has_prog_pulses(const MBG_XDEV_FEATURES *p_xdf)
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_fw_mngmnt
Check if a device supports the FW management API.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_pos_lla
Check if a device supports reading the position as LLA array.
int xdevfeat_has_ims(const MBG_XDEV_FEATURES *p_xdf)
int xdevfeat_has_serouts(const MBG_XDEV_FEATURES *p_xdf)
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_ptp
Check if a device supports the PTP API.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_clk_res_info
Check if a device supports the MBG_CLK_RES_INFO structure.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_ant_cable_length
Check if a device supports the ANT_CABLE_LEN structure and API.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_pos_xyz
Check if a device supports reading the position as XYZ array.
uint32_t reserved
Currently reserved, unused, always 0.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_supp_tlv_ptpv1_license
Check if a device supports PTPv1 License Infos via TLV.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_enable_flags
Check if a device supports the ENABLE_FLAGS structure and API.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_is_gps
Check if a device can receive the GPS satellite system.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_scu_stat
Check if the device supports the SCU_STAT structures.
int XDEVFEAT_CHK_SUPP_FNC(const MBG_XDEV_FEATURES *p_xdf)
Type of functions to check if a feature is supported.
int xdevfeat_has_gpio(const MBG_XDEV_FEATURES *p_xdf)
XDEVFEAT_CHK_SUPP_FNC xdevfeat_is_wwvb
Check if a device is a WWVB receiver.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_user_mngmnt
Check if a device supports user management.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_tainted_cfg
Check if a device supports the Tainted config Tainted Config API.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_is_bus_lvl_dev
Check if a device is a bus level device.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_pzf
Check if a device can receive DCF77 PZF.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_user_auth
Check if a device supports user authentification.
#define MBG_ERR_RANGE
input parameter was out of range
int xdevfeat_has_irig_tx(const MBG_XDEV_FEATURES *p_xdf)
XDEVFEAT_CHK_SUPP_FNC xdevfeat_supp_tlv_fw_rollback
Check if a device supports a factory reset via TLV.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_supp_tlv_ntp_license
Check if a device supports NTP license infos via TLV.
A structure used to store extended device features.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_net_cfg
Check if a device supports the new NET_CFG API.
int xdevfeat_has_time_ttm(const MBG_XDEV_FEATURES *p_xdf)
Check if the device supports the builtin feature TIME.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_lne_api
Check if a device supports the LNE API.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_supp_tlv_fw_update
Check if a device supports a firmware update via TLV.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_gps_stat_info
Check if a device supports the STAT_INFO structure and API.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_up_conv
Check if the device has an L1 frequency up converter.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_raw_irig_data
Check if a timecode receiver provides MBG_RAW_IRIG_DATA.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_evt_log
Check if a device supports the event log API.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_reboot
Check if a device has MBG_XFEATURE_REBOOT.
A structure used to query current TLV capabilities.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_supp_tlv_time_monitor_license
Check if a device supports Time Monitor License infos via TLV.
MBG_XFEATURE_BUFFER xfeature_buffer
Extended features provided by the device.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_ucap
Check if a device supports the user capture API.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_pwr_ctl_api
Check if a device supports the power control API.
MBG_TLV_INFO tlv_info
TLV info provided by a device.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_xbp
Check if a device supports the extended binary protocol (XBP) feature.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_ant_info
Check if a device supports the ANT_INFO structure and API.
MBG_USER_STATUS user_status
User status for the logged in user.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_led_api
Check if a device supports the LED API.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_is_msf
Check if a device is an MSF receiver.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_service
Check if a device supports services.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_gps_ignore_lock
Check if a device supports the IGNORE_LOCK structure and API.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_database
Check if a device supports database(s) feature.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_time_scale
Check if a device supports the MBG_TIME_SCALE_INFO structure and API.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_tzdl
Check if a device supports the TZDL structure and API.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_lan_ip4
Check if a device supports the old LAN_IP4 API.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_is_gnss
Check if a device supports the GNSS API.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_bvar_stat
Check if a device supports the BVAR_STAT structure and API.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_ucap_net
Check if a device supports the user capture via network feature.
#define MBG_SUCCESS
Error codes used with Meinberg devices and drivers.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_supp_tlv_exec_cmd
Check if a device supports a command execution via TLV.
MBG_USER_INFO user_info
User info for the logged in user.
int xdevfeat_has_synth(const MBG_XDEV_FEATURES *p_xdf)
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_gnss_mode
Check if a device supports GNSS mode feature All GNSS receivers support this feature by default...
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_cmd_save_cfg
Check if a device supports the GPS_SAVE_CFG command.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_supp_tlv_file_req
Check if a device supports a file request via TLV.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_tzcode
Check if a device supports the TZCODE API.
int xdevfeat_has_mbg_os(const MBG_XDEV_FEATURES *p_xdf)
RECEIVER_INFO receiver_info
Receiver info provided by the device.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_supp_tlv_ufu
Check if a device supports UFU (Unified Firmware Update) via TLV.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_monitoring
Check if a device supports the extended feature monitoring.
int xdevfeat_has_io_ports(const MBG_XDEV_FEATURES *p_xdf)
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_ntp
Check if a device supports the NTP API.
A structure combining all device feature information.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_req_ttm
Check if a device has MBG_XFEATURE_REQ_TTM.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_is_tcr
Check if a device is a time code receiver (IRIG or similar)
XDEVFEAT_CHK_SUPP_FNC xdevfeat_supp_tlv_diag_file
Check if a device supports creating / sending a diagnostics file via TLV.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_xhe
Check if a device supports the XHE I/O commands.
#define MBG_ERR_NOT_SUPP_BY_DEV
Command or feature not supported by device.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_tlv_api
Check if a device supports the TLV API.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_transactions
Check if a device has MBG_XFEATURE_TRANSACTIONS.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_xmulti_ref
Check if a device supports the extended multi ref features including multi instances.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_is_jjy
Check if a device is a JJY receiver.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_sv_info
Check if the device supports the SV_INFO structures.
int xdevfeat_has_irig_rx(const MBG_XDEV_FEATURES *p_xdf)
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_push_msgs
Check if a device supports (un)registering for push messages.
static __mbg_inline int check_feat_supp_byte_array(int bit_num, const uint8_t *p, int max_bytes)
Check if a specific bit is set in a byte array.
A structure used to identify a device type and supported features.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_has_ext_sys_info
Check if a device supports the MBG_EXT_SYS_INFO command.
XDEVFEAT_CHK_SUPP_FNC xdevfeat_is_dcf
Check if a device is a DCF77 AM receiver.