mbgtools-lx
4.2.8
|
Data Structures | |
struct | SHS_SETTINGS |
Current configuration of an SHS controller. More... | |
struct | SHS_INFO |
Current SHS settings and general SHS capabilities. More... | |
struct | SHS_STATUS |
Current SHS status. More... | |
Macros | |
#define | _mbg_swab_shs_settings(_p) |
#define | _mbg_swab_shs_info(_p) |
#define | _mbg_swab_shs_status(_p) |
Enumerations | |
enum | SHS_STATES { SHS_STATE_DISABLED, SHS_STATE_OK, SHS_STATE_WARNING, SHS_STATE_ERROR, SHS_STATE_FATAL, N_SHS_STATES } |
SHS configuration flag bits. More... | |
enum | SHS_FLAG_BITS { SHS_FLAG_BIT_DISB_SERIAL, SHS_FLAG_BIT_DISB_PPS, SHS_FLAG_BIT_DISB_10MHZ, N_SHS_FLAG_BITS } |
SHS flag bits. More... | |
enum | SHS_FLAG_MASKS { SHS_FLAG_DISB_SERIAL = ( 1UL << SHS_FLAG_BIT_DISB_SERIAL ), SHS_FLAG_DISB_PPS = ( 1UL << SHS_FLAG_BIT_DISB_PPS ), SHS_FLAG_DISB_10MHZ = ( 1UL << SHS_FLAG_BIT_DISB_10MHZ ) } |
SHS flag masks. More... | |
An SHS (Secure Hybrid System) device compares the times from 2 sources and eventually sets an alarm (warning and/or error) flag if the difference between the 2 time sources exceeds a configurable limit.
These structures and associated definitions are used to query the SHS capabilities, configure the SHS device according to its capabilities, and query the SHS status.
The structures and associated API calls are only supported if the GPS_HAS_SHS bit is set in RECEIVER_INFO::features.
The SHS_INFO structure can be read to retrieve the capabilities and current settings of the device. The SHS_SETTINGS structure can then be set up according to the capabilities, and be written back to configure the device.
If SHS_SETTINGS::err_limit and/or SHS_SETTINGS::warn_limit are not 0 then the SHS device checks if the time difference between the 2 clocks exceeds these limits and sets SHS_STATUS::shs_state as appropriate.
If indicated by SHS_INFO::supp_flags the SHS device can also take certain actions if the time difference exceeds the error limit. If this happens then the same flags are set in SHS_STATUS::flags to indicate the action has been taken.
#define _mbg_swab_shs_info | ( | _p | ) |
#define _mbg_swab_shs_settings | ( | _p | ) |
#define _mbg_swab_shs_status | ( | _p | ) |
enum SHS_FLAG_BITS |
SHS flag bits.
Enumerator | |
---|---|
SHS_FLAG_BIT_DISB_SERIAL | disable serial output in state SHS_STATE_ERROR |
SHS_FLAG_BIT_DISB_PPS | disable PPS output in state SHS_STATE_ERROR |
SHS_FLAG_BIT_DISB_10MHZ | disable 10 MHz output in state SHS_STATE_ERROR |
N_SHS_FLAG_BITS |
enum SHS_FLAG_MASKS |
SHS flag masks.
With SHS_INFO::supp_flags these flags indicate what is supported by the SHS controller, e.g. what action can be taken automatically. Each bit set in SHS_INFO::supp_flags can be set by a configuration tool in SHS_SETTINGS::flags to enable the associated feature. If a corresponding bit is set in SHS_STATUS::flags this means the associated feature has been enabled, e.g. an action has been taken.
Enumerator | |
---|---|
SHS_FLAG_DISB_SERIAL | |
SHS_FLAG_DISB_PPS | |
SHS_FLAG_DISB_10MHZ |
enum SHS_STATES |
SHS configuration flag bits.
Codes used with SHS_STATUS::shs_state