mbgtools-lx
4.2.8
|
Data Structures | |
struct | MBG_IO_PORT_LIMITS |
IO Port Limits. More... | |
struct | MBG_IO_PORT_ANT_INFO |
struct | MBG_IO_PORT_ANT_SETTINGS |
union | MBG_IO_PORT_SETTINGS_U |
IO Port Settings Union. More... | |
struct | MBG_IO_PORT_SETTINGS |
IO Port Settings. More... | |
struct | MBG_IO_PORT_SETTINGS_IDX |
IO Port Settings Index. More... | |
struct | MBG_IO_PORT_INFO |
IO Port Info. More... | |
struct | MBG_IO_PORT_INFO_IDX |
IO Port Info Index. More... | |
union | MBG_IO_PORT_TYPE_INFO_U |
IO Port Type Info Union. More... | |
struct | MBG_IO_PORT_TYPE_INFO |
IO Port Type Info. More... | |
struct | MBG_IO_PORT_TYPE_INFO_IDX |
IO Port Type Info Index. More... | |
struct | MBG_IO_PORT_STATUS_BUFFER |
A structure used to store port status bits. More... | |
struct | MBG_IO_PORT_STATUS |
IO Port Type Status. More... | |
struct | MBG_IO_PORT_STATUS_IDX |
IO Port Type Status. More... | |
#define _clear_io_port_status_bit | ( | _status_bit, | |
_status_buffp | |||
) | _clear_array_bit( _status_bit, (_status_buffp)->b, MAX_IO_PORT_STATUS_BYTES ) |
Clear a port status bit in a MBG_IO_PORT_STATUS_BUFFER.
Should be used by the firmware only to set one of the N_MBG_IO_PORT_STATUS_BITS in an MBG_IO_PORT_STATUS_BUFFER after power-up.
[in] | _status_bit | One of the MBG_IO_PORT_STATUS_BITS |
[in] | _status_buffp | Pointer to an MBG_IO_PORT_STATUS_BUFFER |
#define _mbg_port_has_log_group | ( | _p | ) | ( ( _p )->log_grp != MBG_NO_LOG_GROUP ) |
#define _mbg_port_has_phys_group | ( | _p | ) | ( ( _p )->phys_grp != MBG_NO_PHYS_GROUP ) |
#define _mbg_swab_io_port_ant_info | ( | _p | ) |
#define _mbg_swab_io_port_ant_settings | ( | _p | ) |
#define _mbg_swab_io_port_info | ( | _p, | |
_recv | |||
) |
#define _mbg_swab_io_port_info_idx | ( | _p, | |
_recv | |||
) |
Definition at line 20869 of file gpsdefs.h.
Referenced by mbgextio_get_io_port_info_idx().
#define _mbg_swab_io_port_limits | ( | _p | ) |
Definition at line 20434 of file gpsdefs.h.
Referenced by mbgextio_get_io_port_limits().
#define _mbg_swab_io_port_settings | ( | _p, | |
_recv | |||
) |
#define _mbg_swab_io_port_settings_idx | ( | _p, | |
_recv | |||
) |
Definition at line 20745 of file gpsdefs.h.
Referenced by mbgextio_set_io_port_settings_idx().
#define _mbg_swab_io_port_settings_u | ( | _type, | |
_p, | |||
_recv | |||
) |
#define _mbg_swab_io_port_status | ( | _p | ) |
#define _mbg_swab_io_port_status_buffer | ( | _p | ) | _nop_macro_fnc() |
#define _mbg_swab_io_port_status_idx | ( | _p | ) |
Definition at line 21232 of file gpsdefs.h.
Referenced by mbgextio_get_io_port_status_idx().
#define _mbg_swab_io_port_type_info | ( | _p, | |
_recv | |||
) |
#define _mbg_swab_io_port_type_info_idx | ( | _p, | |
_recv | |||
) |
Definition at line 21054 of file gpsdefs.h.
Referenced by mbgextio_get_io_port_type_info_idx().
#define _mbg_swab_io_port_type_info_u | ( | _type, | |
_p, | |||
_recv | |||
) |
#define _set_io_port_status_bit | ( | _status_bit, | |
_status_buffp | |||
) | _set_array_bit( _status_bit, (_status_buffp)->b, MAX_IO_PORT_STATUS_BYTES ) |
Set an port status bit in a MBG_IO_PORT_STATUS_BUFFER.
Should be used by the firmware only to set one of the N_MBG_IO_PORT_STATUS_BITS in an MBG_IO_PORT_STATUS_BUFFER after power-up.
[in] | _status_bit | One of the MBG_IO_PORT_STATUS_BITS |
[in] | _status_buffp | Pointer to an MBG_IO_PORT_STATUS_BUFFER |
#define MAX_IO_PORT_STATUS_BYTES ( MAX_IO_PORT_STATUS_BITS / 8 ) |
Array size required to store all status bits.
The number of bytes required to store up to MAX_IO_PORT_STATUS_BITS feature bits in a byte array.
#define MBG_IO_PORT_BG_COLOUR_STRS |
#define MBG_IO_PORT_CONN_TYPE_STRS |
Strings descriptions for MBG_IO_PORT_CONN_TYPES.
Can be used to initialize a string array of N_MBG_IO_PORT_CONN_TYPES entries, so the number of strings must correspond to N_MBG_IO_PORT_CONN_TYPES.
#define MBG_IO_PORT_CONN_TYPE_VAR_POLS |
Number of variable pols of the connector type, see MBG_IO_PORT_INFO::pols.
Used with MBG_IO_PORT_INFO::conn_type and MBG_IO_PORT_INFO::pols
#define MBG_IO_PORT_DIR_STRS |
Strings descriptions for MBG_IO_PORT_DIRS.
Can be used to initialize a string array of N_MBG_IO_PORT_DIRS entries, so the number of strings must correspond to N_MBG_IO_PORT_DIRS.
#define MBG_IO_PORT_GRP_ROLE_STRS |
Strings descriptions for MBG_IO_PORT_GRP_ROLE_BITS.
Can be used to initialize a string array of N_MBG_IO_PORT_GRP_ROLE_BITS entries, so the number of strings must correspond to N_MBG_IO_PORT_GRP_ROLE_BITS.
#define MBG_IO_PORT_INFO_IDX_MIN_SIZE (MBG_IO_PORT_INFO_MIN_SIZE + sizeof( uint32_t )) |
Definition at line 20878 of file gpsdefs.h.
Referenced by mbgextio_get_io_port_info_idx().
#define MBG_IO_PORT_INFO_IDX_SIZES |
#define MBG_IO_PORT_INFO_MIN_SIZE ( 60 + MBG_IO_PORT_SETTINGS_MIN_SIZE ) |
#define MBG_IO_PORT_OP_MODE_STRS |
Strings descriptions for MBG_IO_PORT_OP_MODE_BITS.
Can be used to initialize a string array of N_MBG_IO_PORT_OP_MODE_BITS entries, so the number of strings must correspond to N_MBG_IO_PORT_OP_MODE_BITS.
#define MBG_IO_PORT_SETTINGS_IDX_MIN_SIZE (MBG_IO_PORT_SETTINGS_MIN_SIZE + sizeof( uint32_t )) |
#define MBG_IO_PORT_SETTINGS_IDX_SIZES |
Definition at line 20756 of file gpsdefs.h.
Referenced by mbgextio_set_io_port_settings_idx().
#define MBG_IO_PORT_SHAPE_LEVEL_STRS |
String initializers for I/O port shapes/levels.
#define MBG_IO_PORT_SRC_STRS |
Strings descriptions for MBG_IO_PORT_SRCS.
Can be used to initialize a string array of N_MBG_IO_PORT_SRCS entries, so the number of strings must correspond to N_MBG_IO_PORT_SRCS.
#define MBG_IO_PORT_STATUS_STRS |
Strings descriptions for MBG_IO_PORT_STATUS_BITS.
Can be used to initialize a string array of N_MBG_IO_PORT_STATUS_BITS entries, so the number of strings must correspond to N_MBG_IO_PORT_STATUS_BITS.
#define MBG_IO_PORT_TYPE_INFO_IDX_MIN_SIZE (MBG_IO_PORT_TYPE_INFO_MIN_SIZE + 2 * sizeof( uint32_t )) |
Definition at line 21006 of file gpsdefs.h.
Referenced by mbgextio_get_io_port_type_info_idx().
#define MBG_IO_PORT_TYPE_INFO_IDX_SIZES |
#define MBG_IO_PORT_TYPE_NONE ( (uint16_t) -1 ) |
Port type to be used for an undefined/unassigned port.
Only use this for MBG_IO_PORT_SETTINGS::port_type if MBG_IO_PORT_SETTINGS::op_mode is MBG_IO_PORT_OP_MODE_NONE
#define MBG_IO_PORT_TYPE_STRS |
Strings descriptions for MBG_IO_PORT_TYPES.
Can be used to initialize a string array of N_MBG_IO_PORT_TYPES entries, so the number of strings must correspond to N_MBG_IO_PORT_TYPES.
Supported members in ::MBG_IO_PORT_ANTENNA_INFO and ::MBG_IO_PORT_ANTENNA_SETTINGS.
Used with ::MBG_IO_PORT_ANTENNA_INFO::supp_members
Enumerator | |
---|---|
MBG_IO_PORT_ANT_MEMBER_GNSS | Supports MBG_IO_PORT_ANT_INFO::gnss_info and MBG_IO_PORT_ANT_SETTINGS::gnss_settings. |
MBG_IO_PORT_ANT_MEMBER_CAB_LEN | Supports MBG_IO_PORT_ANT_SETTINGS::ant_cab_len. |
MBG_IO_PORT_ANT_MEMBER_IGN_LOCK | Supports MBG_IO_PORT_ANT_SETTINGS::ignore_lock. |
MBG_IO_PORT_ANT_MEMBER_TR_DIST | Supports MBG_IO_PORT_ANT_SETTINGS::tr_dist. |
N_MBG_IO_PORT_ANT_MEMBERS |
Port connector types.
Used with MBG_IO_PORT_INFO::conn_type
enum MBG_IO_PORT_DIR_MSKS |
Bit masks of Meinberg I/O port directions.
Used with MBG_IO_PORT_TYPE_INFO::supp_dirs
Enumerator | |
---|---|
MBG_IO_PORT_MSK_DIR_IN | See MBG_IO_PORT_DIR_IN. |
MBG_IO_PORT_MSK_DIR_OUT | See MBG_IO_PORT_DIR_OUT. |
MBG_IO_PORT_MSK_DIR_IN_OUT |
enum MBG_IO_PORT_DIRS |
Port directions (input or output)
Enumerator | |
---|---|
MBG_IO_PORT_DIR_NONE | Only use this for MBG_IO_PORT_SETTINGS::direction if MBG_IO_PORT_SETTINGS::op_mode is MBG_IO_PORT_OP_MODE_NONE. |
MBG_IO_PORT_DIR_IN | Port is input like PPS In. |
MBG_IO_PORT_DIR_OUT | Port is output like 10Mhz. |
MBG_IO_PORT_DIR_IN_OUT | Port can be in- & output in parallel like network port. |
N_MBG_IO_PORT_DIRS |
enum MBG_IO_PORT_FLAGS |
Physical or logical group role bits.
Used with MBG_IO_PORT_STATUS::phys_grp_role, MBG_IO_PORT_STATUS::log_grp_role
Masks for MBG_IO_PORT_GRP_ROLE_BITS.
Used with MBG_IO_PORT_INFO::supp_phys_grp_roles
Enumerator | |
---|---|
MBG_IO_PORT_GRP_ROLE_MSK_NONE | |
MBG_IO_PORT_GRP_ROLE_MSK_MASTER | |
MBG_IO_PORT_GRP_ROLE_MSK_SLAVE | |
MBG_IO_PORT_GRP_ROLE_MSK_PASSIVE |
Enumerator | |
---|---|
MBG_IO_PORT_INFO_BIT_IS_ALIGNED | Indicates, that this port shall be optically aligned to MBG_IO_PORT_INFO::align_rule_idx. |
enum MBG_IO_PORT_MSKS |
Port Operation Bits.
Used with MBG_IO_PORT_SETTINGS::op_mode
For now, there is a per port operation mode setting which is quite equal to ENABLE_FLAGS.
Masks for MBG_IO_PORT_OP_MODE_BITS.
Used with MBG_IO_PORT_INFO::supp_op_modes
Enumeration of known signal shapes/levels.
Used to specify the signal shape/level of an I/O port.
enum MBG_IO_PORT_SRC_MSKS |
Bit masks of Meinberg I/O port attitudes.
Used with MBG_IO_PORT_TYPE_INFO::supp_srcs
Enumerator | |
---|---|
MBG_IO_PORT_SRC_MSK_STATIC | |
MBG_IO_PORT_SRC_MSK_LOCAL | |
MBG_IO_PORT_SRC_MSK_ASSOC_CLOCK | |
MBG_IO_PORT_SRC_MSK_ACTIVE_CLOCK | |
MBG_IO_PORT_SRC_MSK_CLK1 | See MBG_IO_PORT_SRC_CLK1. |
MBG_IO_PORT_SRC_MSK_CLK2 | See MBG_IO_PORT_SRC_CLK2. |
MBG_IO_PORT_SRC_MSK_ARC | See MBG_IO_PORT_SRC_ARC. |
MBG_IO_PORT_SRC_MSK_OSC | See MBG_IO_PORT_SRC_OSC. |
MBG_IO_PORT_SRC_MSK_SYNCE | |
MBG_IO_PORT_SRC_MSK_SWITCH_CARD | |
MBG_IO_PORT_SRC_MSK_CONFIGURABLE | |
MBG_IO_PORT_SRC_MSK_EXTERNAL |
enum MBG_IO_PORT_SRCS |
Port type sources.
Configurable sources for an I/O port type
Enumerator | |
---|---|
MBG_IO_PORT_SRC_NONE | Only use this for MBG_IO_PORT_SETTINGS::source if MBG_IO_PORT_SETTINGS::op_mode is MBG_IO_PORT_OP_MODE_NONE. |
MBG_IO_PORT_SRC_STATIC | Static, not configurable. |
MBG_IO_PORT_SRC_LOCAL | Locally generated, e.g. on (carrier) board. |
MBG_IO_PORT_SRC_ASSOC_CLOCK | Fixed (wired) clock from back plane (e.g. refclock 1 in M500 IMS) |
MBG_IO_PORT_SRC_ACTIVE_CLOCK | Switched clock from back plane (e.g. selected by RSC) |
MBG_IO_PORT_SRC_CLK1 | Clock 1 fixed (CPU board only) |
MBG_IO_PORT_SRC_CLK2 | Clock 2 fixed (CPU board only) |
MBG_IO_PORT_SRC_ARC | Any rate converter. |
MBG_IO_PORT_SRC_OSC | Oscillator. |
MBG_IO_PORT_SRC_SYNCE | SyncE. |
MBG_IO_PORT_SRC_SWITCH_CARD | Switch Card Unit fixed (SCU, RSC, ...) |
MBG_IO_PORT_SRC_CONFIGURABLE | configurable |
MBG_IO_PORT_SRC_EXTERNAL | external (e.g. for inputs) |
N_MBG_IO_PORT_SRCS |
Port Type Status Bits.
Enumerator | |
---|---|
MBG_IO_PORT_STATUS_BIT_DISABLED | See MBG_IO_PORT_OP_MODE_DISABLED. Other bits should be 0 in this case. |
MBG_IO_PORT_STATUS_BIT_CARRIER_DETECTED | Port has physical carrier connection (e.g. BNC cable in BPE's case) |
MBG_IO_PORT_STATUS_BIT_INPUT_SIGNAL_NEVER_AVAIL | Input signal has NEVER been avail. |
MBG_IO_PORT_STATUS_BIT_INPUT_SIGNAL_AVAIL | Input signal is avail right now. |
MBG_IO_PORT_STATUS_BIT_INPUT_SIGNAL_LOST | Input signal is currently not avail, but has been avail before. |
MBG_IO_PORT_STATUS_BIT_SHORT_CIRCUIT | Short circuit. |
MBG_IO_PORT_STATUS_BIT_LIGHT_RED | LED shows red light. |
MBG_IO_PORT_STATUS_BIT_LIGHT_GREEN | LED shows green light. |
MBG_IO_PORT_STATUS_BIT_LIGHT_BLUE | LED shows blue light. |
MBG_IO_PORT_STATUS_BIT_LIGHT_YELLOW | LED shows yellow light. |
N_MBG_IO_PORT_STATUS_BITS |
enum MBG_IO_PORT_TYPES |
IO Port types.
Used with MBG_IO_PORT_TYPE_INFO::port_type and MBG_IO_PORT_SETTINGS::port_type
Enumerator | |
---|---|
MBG_IO_PORT_TYPE_PPS | |
MBG_IO_PORT_TYPE_10MHz | |
MBG_IO_PORT_TYPE_2048KHz | |
MBG_IO_PORT_TYPE_GPIO | |
MBG_IO_PORT_TYPE_ETHERNET | |
MBG_IO_PORT_TYPE_TERMINAL | |
MBG_IO_PORT_TYPE_MULTI | |
MBG_IO_PORT_TYPE_POUT | |
MBG_IO_PORT_TYPE_SWITCH | |
MBG_IO_PORT_TYPE_TIMECODE | e.g. IRIG AM/DC, see MBG_IO_PORT_SHAPE_LEVELS |
MBG_IO_PORT_TYPE_LIGHT | |
MBG_IO_PORT_TYPE_ANTENNA | |
MBG_IO_PORT_TYPE_UART | |
MBG_IO_PORT_TYPE_DCF77 | |
MBG_IO_PORT_TYPE_POWER | |
N_MBG_IO_PORT_TYPES |