111 return ( p->
sec100 <= 99 )
115 && ( p->
mday >= 1 ) && ( p->
mday <= 31 )
116 && ( p->
wday >= 1 ) && ( p->
wday <= 7 )
118 && ( p->
year <= 99 );
uint8_t year
year of the century, 0..99
uint16_t year
full year number
uint8_t mday
day of month, 0..31
uint8_t sec100
hundredths of seconds, 0..99, 10 ms resolution
void test_xmr(MBG_DEV_HANDLE dh, const PCPS_DEV *p_dev, int verbose)
int mbg_get_all_xmulti_ref_status(MBG_DEV_HANDLE dh, 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.
int mbg_save_serial_settings(MBG_DEV_HANDLE dh, const PCPS_DEV *p_dev, RECEIVER_PORT_CFG *p_rpcfg, int port_num)
Write the configuration settings for a single serial port to a device.
void pcps_setup_isa_ports(char *s, int *port_vals, int n_vals)
uint8_t frame
The unpacked framing code, see PCPS_FR_CODES.
uint8_t PCPS_SERIAL
Legacy definitions used to configure a device's serial port.
uint8_t baud
The unpacked baud rate code, see PCPS_BD_CODES.
int mbg_save_all_net_cfg_info(MBG_DEV_HANDLE dh, ALL_NET_CFG_INFO *p)
Write all network settings to a device.
Summary information on all supported GNSS systems.
A helper structure used with configuration of old DCF77 clocks.
const char * setup_device_type_name(char *s, size_t max_len, MBG_DEV_HANDLE dh, const RECEIVER_INFO *p_ri)
static __mbg_inline int pcps_time_is_valid(const PCPS_TIME *p)
Check if a PCPS_TIME structure contains valid date and time.
_NO_MBG_API_ATTR int _MBG_API mbg_save_all_xmulti_ref_info(MBG_DEV_HANDLE dh, ALL_XMULTI_REF_INFO *p)
Set all extended multi ref settings to a device.
All network configuration parameters.
int MBG_CHK_SUPP_FNC(MBG_DEV_HANDLE dh)
The type of functions to check if a feature is supported.
All PTP configuration parameters.
void port_info_from_pcps_serial(PORT_INFO_IDX *p_pii, PCPS_SERIAL pcps_serial, uint32_t supp_baud_rates)
uint32_t flags
see PCPS_TIME_EXT_FLAGS
int mbg_get_all_ucap_info(MBG_DEV_HANDLE dh, ALL_UCAP_INFO **p)
Read all user capture information and store it into a newly allocated or reused ALL_UCAP_INFO.
int mbg_get_all_ptp_cfg_info(MBG_DEV_HANDLE dh, ALL_PTP_CFG_INFO *p)
Read all PTP settings and supported configuration parameters.
void pcps_serial_from_port_info(PCPS_SERIAL *p, const PORT_INFO_IDX *p_pii)
const char * setup_asic_features(char *s, size_t max_len, MBG_DEV_HANDLE dh)
int mbg_get_serial_settings(MBG_DEV_HANDLE dh, const PCPS_DEV *p_dev, RECEIVER_PORT_CFG *p_rpcfg, const RECEIVER_INFO *p_ri)
Read all serial port settings and supported configuration parameters.
int32_t utc_offs
UTC offset, always expanded to [seconds]
int chk_feat_supp(MBG_DEV_HANDLE dh, const PCPS_DEV *p_dev, MBG_CHK_SUPP_FNC *chk_supp_fnc, MBG_ERR_MSG_FNC *err_msg_fnc, const char *not_supp_msg)
PCPS_SERIAL pack
This packed byte is read from or written to the board.
Current settings and general capabilities of a specific serial port.
int mbg_get_all_net_status_info(MBG_DEV_HANDLE dh, ALL_NET_STATUS_INFO **p)
Read current network status into an ALL_NET_STATUS_INFO structure.
uint8_t comp_sig_mode
0..N_CONN_SIG_MODES-1, see COMP_SIG_MODES
Local calendar date and time, plus sync status.
uint16_t PCPS_TIME_STATUS_X
Extended status code.
int mbg_get_all_net_cfg_info(MBG_DEV_HANDLE dh, ALL_NET_CFG_INFO **p)
Read all network configuration into an ALL_NET_CFG_INFO structure.
void test_gpio(MBG_DEV_HANDLE dh, const PCPS_DEV *p_dev, int verbose)
int mbg_chk_get_all_gnss_info(MBG_DEV_HANDLE dh, ALL_GNSS_INFO *p_agi)
Read or setup all GNSS status information.
int mbg_save_all_ptp_cfg_info(MBG_DEV_HANDLE dh, const ALL_PTP_CFG_INFO *p)
Write all PTP settings to a device.
uint8_t min
minutes, 0..59
int MBG_ERR_MSG_FNC(const PCPS_DEV *p_dev, const char *s)
An extended time and status structure.
uint8_t mode
The unpacked mode code, see PCPS_MOD_CODES.
int16_t comp_sig_val
compensated signal value, see PCPS_SIG_VAL_DEFS
void pcps_pack_serial(PCPS_SER_PACK *p)
void pcps_unpack_serial(PCPS_SER_PACK *p)
A structure used to identify a device type and supported features.
uint8_t month
month, 1..12
PCPS_TIME_STATUS_X status_x
extended status, see
uint8_t sec
seconds, 0..59, or 60 if leap second
uint8_t wday
day of week, 1..7, 1 = Monday
PCPS_TIME t
current date, time, and limited status
int mbg_get_all_xmulti_ref_info(MBG_DEV_HANDLE dh, ALL_XMULTI_REF_INFO **p)
Read all XMR info into a newly or re-allocated ALL_XMULTI_REF_INFO.
All configuration parameters for all serial ports.