mbgtools-lx  4.2.8
Event logging support

Data Structures

struct  MBG_NUM_EVT_LOG_ENTRIES
 Number of event log entries that can be stored and yet have been saved. More...
 
struct  MBG_EVT_LOG_ENTRY
 An event log entry. More...
 

Macros

#define _mbg_swab_mbg_num_evt_log_entries(_p)
 
#define _mbg_swab_evt_code(_p)   _mbg_swab16( _p )
 
#define _mbg_swab_evt_info(_p)   _mbg_swab16( _p )
 
#define _mbg_swab_mbg_evt_log_entry(_p)
 
#define MBG_EVT_ID_BITS   13
 
#define MBG_EVT_LVL_BITS   3
 
#define MBG_EVT_ID_MASK   ( (MBG_EVT_CODE) ( 1UL << MBG_EVT_ID_BITS ) - 1 )
 
#define MBG_EVT_LVL_MASK   ( (MBG_EVT_CODE) ( 1UL << MBG_EVT_LVL_BITS ) - 1 )
 
#define _mbg_mk_evt_code(_id, _lvl)   ( (MBG_EVT_CODE) ( (MBG_EVT_CODE)(_id) | ( (MBG_EVT_CODE)(_lvl) << MBG_EVT_ID_BITS ) ) )
 
#define _mbg_get_evt_id(_code)   ( (_code) & MBG_EVT_ID_MASK )
 
#define _mbg_get_evt_lvl(_code)   ( ( (_code) >> MBG_EVT_ID_BITS ) & MBG_EVT_LVL_MASK )
 
#define ENG_EVT_ID_NAME_NONE   "No event"
 
#define ENG_EVT_ID_NAME_POW_UP_RES   "Power Up Reset"
 
#define ENG_EVT_ID_NAME_WDOG_RES   "Watchdog Reset"
 
#define ENG_EVT_ID_NAME_COLD_BOOT   "Cold Boot"
 
#define ENG_EVT_ID_NAME_WARM_BOOT   "Warm Boot"
 
#define ENG_EVT_ID_NAME_NORMAL_OP   "Normal Operation"
 
#define ENG_EVT_ID_NAME_ANT_DISCONN   "Antenna Disconn."
 
#define ENG_EVT_ID_NAME_ANT_SHORT   "Ant. Short-Circ."
 
#define ENG_EVT_ID_NAME_ANT_OK   "Antenna OK"
 
#define ENG_EVT_ID_NAME_LOW_SATS   "Few Sats Only"
 
#define ENG_EVT_ID_NAME_FW_INSTALLED   "Firmware installed"
 
#define ENG_EVT_ID_NAME_PTP_PORT_STATE_UNINITIALIZED   "PTP state: UNINITIALIZED"
 
#define ENG_EVT_ID_NAME_PTP_PORT_STATE_INITIALIZING   "PTP state: INITIALIZING"
 
#define ENG_EVT_ID_NAME_PTP_PORT_STATE_FAULTY   "PTP state: FAULTY"
 
#define ENG_EVT_ID_NAME_PTP_PORT_STATE_DISABLED   "PTP state: DISABLED"
 
#define ENG_EVT_ID_NAME_PTP_PORT_STATE_LISTENING   "PTP state: LISTENING"
 
#define ENG_EVT_ID_NAME_PTP_PORT_STATE_PRE_MASTER   "PTP state: PRE_MASTER"
 
#define ENG_EVT_ID_NAME_PTP_PORT_STATE_MASTER   "PTP state: MASTER"
 
#define ENG_EVT_ID_NAME_PTP_PORT_STATE_PASSIVE   "PTP state: PASSIVE"
 
#define ENG_EVT_ID_NAME_PTP_PORT_STATE_UNCALIBRATED   "PTP state: UNCALIBRATED"
 
#define ENG_EVT_ID_NAME_PTP_PORT_STATE_SLAVE   "PTP state: SLAVE"
 
#define ENG_EVT_ID_NAME_FW_ACTIVATED   "Firmware activated"
 
#define ENG_EVT_ID_NAME_FW_DELETED   "Firmware deleted"
 
#define ENG_EVT_ID_NAME_FW_ROLLBACK   "Firmware rollback"
 
#define ENG_EVT_ID_NAME_UFU_FLASHED   "UFU flashed"
 
#define ENG_EVT_ID_NAME_DATABASE_CONNECTED   "Database(s) connected"
 
#define MBG_EVT_ID_NAMES_ENG
 
#define ENG_EVT_LVL_NAME_NONE   "None"
 
#define ENG_EVT_LVL_NAME_DEBUG   "Debug"
 
#define ENG_EVT_LVL_NAME_INFO   "Info"
 
#define ENG_EVT_LVL_NAME_WARN   "Warn"
 
#define ENG_EVT_LVL_NAME_ERR   "Err"
 
#define ENG_EVT_LVL_NAME_CRIT   "Crit."
 
#define MBG_EVT_LVL_NAMES_ENG
 

Typedefs

typedef uint16_t MBG_EVT_CODE
 
typedef uint16_t MBG_EVT_INFO
 

Enumerations

enum  MBG_EVT_IDS {
  MBG_EVT_ID_NONE, MBG_EVT_ID_POW_UP_RES, MBG_EVT_ID_WDOG_RES, MBG_EVT_ID_COLD_BOOT,
  MBG_EVT_ID_WARM_BOOT, MBG_EVT_ID_NORMAL_OP, MBG_EVT_ID_ANT_DISCONN, MBG_EVT_ID_ANT_SHORT,
  MBG_EVT_ID_ANT_OK, MBG_EVT_ID_LOW_SATS, MBG_EVT_ID_FW_INSTALLED, MBG_EVT_ID_PTP_PORT_STATE_UNINITIALIZED,
  MBG_EVT_ID_PTP_PORT_STATE_INITIALIZING, MBG_EVT_ID_PTP_PORT_STATE_FAULTY, MBG_EVT_ID_PTP_PORT_STATE_DISABLED, MBG_EVT_ID_PTP_PORT_STATE_LISTENING,
  MBG_EVT_ID_PTP_PORT_STATE_PRE_MASTER, MBG_EVT_ID_PTP_PORT_STATE_MASTER, MBG_EVT_ID_PTP_PORT_STATE_PASSIVE, MBG_EVT_ID_PTP_PORT_STATE_UNCALIBRATED,
  MBG_EVT_ID_PTP_PORT_STATE_SLAVE, MBG_EVT_ID_FW_ACTIVATED, MBG_EVT_ID_FW_DELETED, MBG_EVT_ID_FW_ROLLBACK,
  MBG_EVT_ID_UFU_FLASHED, MBG_EVT_ID_UFU_PROGRESS, MBG_EVT_ID_DATABASE_CONNECTED, N_MBG_EVT_ID
}
 Enumeration of event IDs. More...
 
enum  MBG_EVT_LVLS {
  MBG_EVT_LVL_NONE, MBG_EVT_LVL_DEBUG, MBG_EVT_LVL_INFO, MBG_EVT_LVL_WARN,
  MBG_EVT_LVL_ERR, MBG_EVT_LVL_CRIT, N_MBG_EVT_LVL
}
 Enumeration of event severity levels. More...
 
#define MBG_EVT_NONE   _mbg_mk_evt_code( MBG_EVT_ID_NONE, MBG_EVT_LVL_NONE )
 Predefined event codes with associated severity levels. More...
 
#define MBG_EVT_POW_UP_RES   _mbg_mk_evt_code( MBG_EVT_ID_POW_UP_RES, MBG_EVT_LVL_WARN )
 
#define MBG_EVT_WDOG_RES   _mbg_mk_evt_code( MBG_EVT_ID_WDOG_RES, MBG_EVT_LVL_CRIT )
 
#define MBG_EVT_COLD_BOOT   _mbg_mk_evt_code( MBG_EVT_ID_COLD_BOOT, MBG_EVT_LVL_ERR )
 
#define MBG_EVT_WARM_BOOT   _mbg_mk_evt_code( MBG_EVT_ID_WARM_BOOT, MBG_EVT_LVL_ERR )
 
#define MBG_EVT_NORMAL_OP   _mbg_mk_evt_code( MBG_EVT_ID_NORMAL_OP, MBG_EVT_LVL_INFO )
 
#define MBG_EVT_ANT_DISCONN   _mbg_mk_evt_code( MBG_EVT_ID_ANT_DISCONN, MBG_EVT_LVL_CRIT )
 
#define MBG_EVT_ANT_SHORT   _mbg_mk_evt_code( MBG_EVT_ID_ANT_SHORT, MBG_EVT_LVL_CRIT )
 
#define MBG_EVT_ANT_OK   _mbg_mk_evt_code( MBG_EVT_ID_ANT_OK, MBG_EVT_LVL_INFO )
 
#define MBG_EVT_LOW_SATS   _mbg_mk_evt_code( MBG_EVT_ID_LOW_SATS, MBG_EVT_LVL_WARN )
 
#define MBG_EVT_FW_INSTALLED   _mbg_mk_evt_code( MBG_EVT_ID_FW_INSTALLED, MBG_EVT_LVL_INFO )
 
#define MBG_EVT_PTP_PORT_STATE_UNINITIALIZED   _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_UNINITIALIZED, MBG_EVT_LVL_WARN )
 
#define MBG_EVT_PTP_PORT_STATE_INITIALIZING   _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_INITIALIZING, MBG_EVT_LVL_INFO )
 
#define MBG_EVT_PTP_PORT_STATE_FAULTY   _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_FAULTY, MBG_EVT_LVL_ERR )
 
#define MBG_EVT_PTP_PORT_STATE_DISABLED   _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_DISABLED, MBG_EVT_LVL_INFO )
 
#define MBG_EVT_PTP_PORT_STATE_LISTENING   _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_LISTENING, MBG_EVT_LVL_INFO )
 
#define MBG_EVT_PTP_PORT_STATE_PRE_MASTER   _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_PRE_MASTER, MBG_EVT_LVL_INFO )
 
#define MBG_EVT_PTP_PORT_STATE_MASTER   _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_MASTER, MBG_EVT_LVL_INFO )
 
#define MBG_EVT_PTP_PORT_STATE_PASSIVE   _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_PASSIVE, MBG_EVT_LVL_INFO )
 
#define MBG_EVT_PTP_PORT_STATE_UNCALIBRATED   _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_UNCALIBRATED, MBG_EVT_LVL_INFO )
 
#define MBG_EVT_PTP_PORT_STATE_SLAVE   _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_SLAVE, MBG_EVT_LVL_INFO )
 

Detailed Description

Note
This is only available if GPS_HAS_EVT_LOG is set in RECEIVER_INFO::features.

Macro Definition Documentation

◆ _mbg_get_evt_id

#define _mbg_get_evt_id (   _code)    ( (_code) & MBG_EVT_ID_MASK )

Definition at line 9598 of file gpsdefs.h.

◆ _mbg_get_evt_lvl

#define _mbg_get_evt_lvl (   _code)    ( ( (_code) >> MBG_EVT_ID_BITS ) & MBG_EVT_LVL_MASK )

Definition at line 9602 of file gpsdefs.h.

◆ _mbg_mk_evt_code

#define _mbg_mk_evt_code (   _id,
  _lvl 
)    ( (MBG_EVT_CODE) ( (MBG_EVT_CODE)(_id) | ( (MBG_EVT_CODE)(_lvl) << MBG_EVT_ID_BITS ) ) )

Definition at line 9594 of file gpsdefs.h.

◆ _mbg_swab_evt_code

#define _mbg_swab_evt_code (   _p)    _mbg_swab16( _p )

Definition at line 9556 of file gpsdefs.h.

◆ _mbg_swab_evt_info

#define _mbg_swab_evt_info (   _p)    _mbg_swab16( _p )

Definition at line 9559 of file gpsdefs.h.

◆ _mbg_swab_mbg_evt_log_entry

#define _mbg_swab_mbg_evt_log_entry (   _p)
Value:
do \
{ \
_mbg_swab32( &(_p)->time ); \
_mbg_swab_evt_code( &(_p)->code ); \
_mbg_swab_evt_info( &(_p)->info ); \
} while ( 0 )

Definition at line 9572 of file gpsdefs.h.

Referenced by mbg_get_first_evt_log_entry(), mbg_get_next_evt_log_entry(), mbgextio_get_first_evt_log_entry(), and mbgextio_get_next_evt_log_entry().

◆ _mbg_swab_mbg_num_evt_log_entries

#define _mbg_swab_mbg_num_evt_log_entries (   _p)
Value:
do \
{ \
_mbg_swab32( &(_p)->used ); \
_mbg_swab32( &(_p)->max ); \
} while ( 0 )

Definition at line 9547 of file gpsdefs.h.

Referenced by mbg_get_num_evt_log_entries(), and mbgextio_get_num_evt_log_entries().

◆ ENG_EVT_ID_NAME_ANT_DISCONN

#define ENG_EVT_ID_NAME_ANT_DISCONN   "Antenna Disconn."

Definition at line 9652 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_ANT_OK

#define ENG_EVT_ID_NAME_ANT_OK   "Antenna OK"

Definition at line 9654 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_ANT_SHORT

#define ENG_EVT_ID_NAME_ANT_SHORT   "Ant. Short-Circ."

Definition at line 9653 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_COLD_BOOT

#define ENG_EVT_ID_NAME_COLD_BOOT   "Cold Boot"

Definition at line 9649 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_DATABASE_CONNECTED

#define ENG_EVT_ID_NAME_DATABASE_CONNECTED   "Database(s) connected"

Definition at line 9671 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_FW_ACTIVATED

#define ENG_EVT_ID_NAME_FW_ACTIVATED   "Firmware activated"

Definition at line 9667 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_FW_DELETED

#define ENG_EVT_ID_NAME_FW_DELETED   "Firmware deleted"

Definition at line 9668 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_FW_INSTALLED

#define ENG_EVT_ID_NAME_FW_INSTALLED   "Firmware installed"

Definition at line 9656 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_FW_ROLLBACK

#define ENG_EVT_ID_NAME_FW_ROLLBACK   "Firmware rollback"

Definition at line 9669 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_LOW_SATS

#define ENG_EVT_ID_NAME_LOW_SATS   "Few Sats Only"

Definition at line 9655 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_NONE

#define ENG_EVT_ID_NAME_NONE   "No event"

Definition at line 9646 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_NORMAL_OP

#define ENG_EVT_ID_NAME_NORMAL_OP   "Normal Operation"

Definition at line 9651 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_POW_UP_RES

#define ENG_EVT_ID_NAME_POW_UP_RES   "Power Up Reset"

Definition at line 9647 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_PTP_PORT_STATE_DISABLED

#define ENG_EVT_ID_NAME_PTP_PORT_STATE_DISABLED   "PTP state: DISABLED"

Definition at line 9660 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_PTP_PORT_STATE_FAULTY

#define ENG_EVT_ID_NAME_PTP_PORT_STATE_FAULTY   "PTP state: FAULTY"

Definition at line 9659 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_PTP_PORT_STATE_INITIALIZING

#define ENG_EVT_ID_NAME_PTP_PORT_STATE_INITIALIZING   "PTP state: INITIALIZING"

Definition at line 9658 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_PTP_PORT_STATE_LISTENING

#define ENG_EVT_ID_NAME_PTP_PORT_STATE_LISTENING   "PTP state: LISTENING"

Definition at line 9661 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_PTP_PORT_STATE_MASTER

#define ENG_EVT_ID_NAME_PTP_PORT_STATE_MASTER   "PTP state: MASTER"

Definition at line 9663 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_PTP_PORT_STATE_PASSIVE

#define ENG_EVT_ID_NAME_PTP_PORT_STATE_PASSIVE   "PTP state: PASSIVE"

Definition at line 9664 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_PTP_PORT_STATE_PRE_MASTER

#define ENG_EVT_ID_NAME_PTP_PORT_STATE_PRE_MASTER   "PTP state: PRE_MASTER"

Definition at line 9662 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_PTP_PORT_STATE_SLAVE

#define ENG_EVT_ID_NAME_PTP_PORT_STATE_SLAVE   "PTP state: SLAVE"

Definition at line 9666 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_PTP_PORT_STATE_UNCALIBRATED

#define ENG_EVT_ID_NAME_PTP_PORT_STATE_UNCALIBRATED   "PTP state: UNCALIBRATED"

Definition at line 9665 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_PTP_PORT_STATE_UNINITIALIZED

#define ENG_EVT_ID_NAME_PTP_PORT_STATE_UNINITIALIZED   "PTP state: UNINITIALIZED"

Definition at line 9657 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_UFU_FLASHED

#define ENG_EVT_ID_NAME_UFU_FLASHED   "UFU flashed"

Definition at line 9670 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_WARM_BOOT

#define ENG_EVT_ID_NAME_WARM_BOOT   "Warm Boot"

Definition at line 9650 of file gpsdefs.h.

◆ ENG_EVT_ID_NAME_WDOG_RES

#define ENG_EVT_ID_NAME_WDOG_RES   "Watchdog Reset"

Definition at line 9648 of file gpsdefs.h.

◆ ENG_EVT_LVL_NAME_CRIT

#define ENG_EVT_LVL_NAME_CRIT   "Crit."

Definition at line 9730 of file gpsdefs.h.

◆ ENG_EVT_LVL_NAME_DEBUG

#define ENG_EVT_LVL_NAME_DEBUG   "Debug"

Definition at line 9726 of file gpsdefs.h.

◆ ENG_EVT_LVL_NAME_ERR

#define ENG_EVT_LVL_NAME_ERR   "Err"

Definition at line 9729 of file gpsdefs.h.

◆ ENG_EVT_LVL_NAME_INFO

#define ENG_EVT_LVL_NAME_INFO   "Info"

Definition at line 9727 of file gpsdefs.h.

◆ ENG_EVT_LVL_NAME_NONE

#define ENG_EVT_LVL_NAME_NONE   "None"

Definition at line 9725 of file gpsdefs.h.

◆ ENG_EVT_LVL_NAME_WARN

#define ENG_EVT_LVL_NAME_WARN   "Warn"

Definition at line 9728 of file gpsdefs.h.

◆ MBG_EVT_ANT_DISCONN

#define MBG_EVT_ANT_DISCONN   _mbg_mk_evt_code( MBG_EVT_ID_ANT_DISCONN, MBG_EVT_LVL_CRIT )

Definition at line 9758 of file gpsdefs.h.

◆ MBG_EVT_ANT_OK

#define MBG_EVT_ANT_OK   _mbg_mk_evt_code( MBG_EVT_ID_ANT_OK, MBG_EVT_LVL_INFO )

Definition at line 9760 of file gpsdefs.h.

◆ MBG_EVT_ANT_SHORT

#define MBG_EVT_ANT_SHORT   _mbg_mk_evt_code( MBG_EVT_ID_ANT_SHORT, MBG_EVT_LVL_CRIT )

Definition at line 9759 of file gpsdefs.h.

◆ MBG_EVT_COLD_BOOT

#define MBG_EVT_COLD_BOOT   _mbg_mk_evt_code( MBG_EVT_ID_COLD_BOOT, MBG_EVT_LVL_ERR )

Definition at line 9755 of file gpsdefs.h.

◆ MBG_EVT_FW_INSTALLED

#define MBG_EVT_FW_INSTALLED   _mbg_mk_evt_code( MBG_EVT_ID_FW_INSTALLED, MBG_EVT_LVL_INFO )

Definition at line 9762 of file gpsdefs.h.

◆ MBG_EVT_ID_BITS

#define MBG_EVT_ID_BITS   13

Definition at line 9585 of file gpsdefs.h.

◆ MBG_EVT_ID_MASK

#define MBG_EVT_ID_MASK   ( (MBG_EVT_CODE) ( 1UL << MBG_EVT_ID_BITS ) - 1 )

Definition at line 9588 of file gpsdefs.h.

◆ MBG_EVT_ID_NAMES_ENG

#define MBG_EVT_ID_NAMES_ENG
Value:
{ \
ENG_EVT_ID_NAME_NONE, \
ENG_EVT_ID_NAME_POW_UP_RES, \
ENG_EVT_ID_NAME_WDOG_RES, \
ENG_EVT_ID_NAME_COLD_BOOT, \
ENG_EVT_ID_NAME_WARM_BOOT, \
ENG_EVT_ID_NAME_NORMAL_OP, \
ENG_EVT_ID_NAME_ANT_DISCONN, \
ENG_EVT_ID_NAME_ANT_SHORT, \
ENG_EVT_ID_NAME_ANT_OK, \
ENG_EVT_ID_NAME_LOW_SATS, \
ENG_EVT_ID_NAME_FW_INSTALLED, \
ENG_EVT_ID_NAME_PTP_PORT_STATE_UNINITIALIZED, \
ENG_EVT_ID_NAME_PTP_PORT_STATE_INITIALIZING, \
ENG_EVT_ID_NAME_PTP_PORT_STATE_FAULTY, \
ENG_EVT_ID_NAME_PTP_PORT_STATE_DISABLED, \
ENG_EVT_ID_NAME_PTP_PORT_STATE_LISTENING, \
ENG_EVT_ID_NAME_PTP_PORT_STATE_PRE_MASTER, \
ENG_EVT_ID_NAME_PTP_PORT_STATE_MASTER, \
ENG_EVT_ID_NAME_PTP_PORT_STATE_PASSIVE, \
ENG_EVT_ID_NAME_PTP_PORT_STATE_UNCALIBRATED, \
ENG_EVT_ID_NAME_PTP_PORT_STATE_SLAVE, \
ENG_EVT_ID_NAME_FW_ACTIVATED, \
ENG_EVT_ID_NAME_FW_DELETED, \
ENG_EVT_ID_NAME_FW_ROLLBACK, \
ENG_EVT_ID_NAME_UFU_FLASHED, \
ENG_EVT_ID_NAME_DATABASE_CONNECTED \
}

Definition at line 9674 of file gpsdefs.h.

◆ MBG_EVT_LOW_SATS

#define MBG_EVT_LOW_SATS   _mbg_mk_evt_code( MBG_EVT_ID_LOW_SATS, MBG_EVT_LVL_WARN )

Definition at line 9761 of file gpsdefs.h.

◆ MBG_EVT_LVL_BITS

#define MBG_EVT_LVL_BITS   3

Definition at line 9586 of file gpsdefs.h.

◆ MBG_EVT_LVL_MASK

#define MBG_EVT_LVL_MASK   ( (MBG_EVT_CODE) ( 1UL << MBG_EVT_LVL_BITS ) - 1 )

Definition at line 9589 of file gpsdefs.h.

◆ MBG_EVT_LVL_NAMES_ENG

#define MBG_EVT_LVL_NAMES_ENG
Value:
{ \
ENG_EVT_LVL_NAME_NONE, \
ENG_EVT_LVL_NAME_DEBUG, \
ENG_EVT_LVL_NAME_INFO, \
ENG_EVT_LVL_NAME_WARN, \
ENG_EVT_LVL_NAME_ERR, \
ENG_EVT_LVL_NAME_CRIT \
}

Definition at line 9733 of file gpsdefs.h.

◆ MBG_EVT_NONE

#define MBG_EVT_NONE   _mbg_mk_evt_code( MBG_EVT_ID_NONE, MBG_EVT_LVL_NONE )

Predefined event codes with associated severity levels.

See also
MBG_EVT_IDS
MBG_EVT_LVLS

Definition at line 9752 of file gpsdefs.h.

◆ MBG_EVT_NORMAL_OP

#define MBG_EVT_NORMAL_OP   _mbg_mk_evt_code( MBG_EVT_ID_NORMAL_OP, MBG_EVT_LVL_INFO )

Definition at line 9757 of file gpsdefs.h.

◆ MBG_EVT_POW_UP_RES

#define MBG_EVT_POW_UP_RES   _mbg_mk_evt_code( MBG_EVT_ID_POW_UP_RES, MBG_EVT_LVL_WARN )

Definition at line 9753 of file gpsdefs.h.

◆ MBG_EVT_PTP_PORT_STATE_DISABLED

#define MBG_EVT_PTP_PORT_STATE_DISABLED   _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_DISABLED, MBG_EVT_LVL_INFO )

Definition at line 9766 of file gpsdefs.h.

◆ MBG_EVT_PTP_PORT_STATE_FAULTY

#define MBG_EVT_PTP_PORT_STATE_FAULTY   _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_FAULTY, MBG_EVT_LVL_ERR )

Definition at line 9765 of file gpsdefs.h.

◆ MBG_EVT_PTP_PORT_STATE_INITIALIZING

#define MBG_EVT_PTP_PORT_STATE_INITIALIZING   _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_INITIALIZING, MBG_EVT_LVL_INFO )

Definition at line 9764 of file gpsdefs.h.

◆ MBG_EVT_PTP_PORT_STATE_LISTENING

#define MBG_EVT_PTP_PORT_STATE_LISTENING   _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_LISTENING, MBG_EVT_LVL_INFO )

Definition at line 9767 of file gpsdefs.h.

◆ MBG_EVT_PTP_PORT_STATE_MASTER

#define MBG_EVT_PTP_PORT_STATE_MASTER   _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_MASTER, MBG_EVT_LVL_INFO )

Definition at line 9769 of file gpsdefs.h.

◆ MBG_EVT_PTP_PORT_STATE_PASSIVE

#define MBG_EVT_PTP_PORT_STATE_PASSIVE   _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_PASSIVE, MBG_EVT_LVL_INFO )

Definition at line 9770 of file gpsdefs.h.

◆ MBG_EVT_PTP_PORT_STATE_PRE_MASTER

#define MBG_EVT_PTP_PORT_STATE_PRE_MASTER   _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_PRE_MASTER, MBG_EVT_LVL_INFO )

Definition at line 9768 of file gpsdefs.h.

◆ MBG_EVT_PTP_PORT_STATE_SLAVE

#define MBG_EVT_PTP_PORT_STATE_SLAVE   _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_SLAVE, MBG_EVT_LVL_INFO )

Definition at line 9772 of file gpsdefs.h.

◆ MBG_EVT_PTP_PORT_STATE_UNCALIBRATED

#define MBG_EVT_PTP_PORT_STATE_UNCALIBRATED   _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_UNCALIBRATED, MBG_EVT_LVL_INFO )

Definition at line 9771 of file gpsdefs.h.

◆ MBG_EVT_PTP_PORT_STATE_UNINITIALIZED

#define MBG_EVT_PTP_PORT_STATE_UNINITIALIZED   _mbg_mk_evt_code( MBG_EVT_ID_PTP_PORT_STATE_UNINITIALIZED, MBG_EVT_LVL_WARN )

Definition at line 9763 of file gpsdefs.h.

◆ MBG_EVT_WARM_BOOT

#define MBG_EVT_WARM_BOOT   _mbg_mk_evt_code( MBG_EVT_ID_WARM_BOOT, MBG_EVT_LVL_ERR )

Definition at line 9756 of file gpsdefs.h.

◆ MBG_EVT_WDOG_RES

#define MBG_EVT_WDOG_RES   _mbg_mk_evt_code( MBG_EVT_ID_WDOG_RES, MBG_EVT_LVL_CRIT )

Definition at line 9754 of file gpsdefs.h.

Typedef Documentation

◆ MBG_EVT_CODE

Definition at line 9555 of file gpsdefs.h.

◆ MBG_EVT_INFO

Definition at line 9558 of file gpsdefs.h.

Enumeration Type Documentation

◆ MBG_EVT_IDS

Enumeration of event IDs.

See also
MBG_EVENT_CODES
MBG_EVT_ID_BITS
MBG_EVT_LVL_BITS
Enumerator
MBG_EVT_ID_NONE 

no event (empty entry)

MBG_EVT_ID_POW_UP_RES 

power up reset

MBG_EVT_ID_WDOG_RES 

watchdog reset

MBG_EVT_ID_COLD_BOOT 

entering cold boot mode

MBG_EVT_ID_WARM_BOOT 

entering warm boot mode

MBG_EVT_ID_NORMAL_OP 

entering normal operation

MBG_EVT_ID_ANT_DISCONN 

antenna disconnect detected

MBG_EVT_ID_ANT_SHORT 

antenna short circuit detected

MBG_EVT_ID_ANT_OK 

antenna OK after failure

MBG_EVT_ID_LOW_SATS 

no satellites can be received though antenna not failing

MBG_EVT_ID_FW_INSTALLED 

Firmware has successfully been installed.

MBG_EVT_ID_PTP_PORT_STATE_UNINITIALIZED 

PTP state changed to UNINITIALIZED.

MBG_EVT_ID_PTP_PORT_STATE_INITIALIZING 

PTP state changed to INITIALIZING.

MBG_EVT_ID_PTP_PORT_STATE_FAULTY 

PTP state changed to FAULTY.

MBG_EVT_ID_PTP_PORT_STATE_DISABLED 

PTP state changed to DISABLED.

MBG_EVT_ID_PTP_PORT_STATE_LISTENING 

PTP state changed to LISTENING.

MBG_EVT_ID_PTP_PORT_STATE_PRE_MASTER 

PTP state changed to PRE_MASTER.

MBG_EVT_ID_PTP_PORT_STATE_MASTER 

PTP state changed to MASTER.

MBG_EVT_ID_PTP_PORT_STATE_PASSIVE 

PTP state changed to PASSIVE.

MBG_EVT_ID_PTP_PORT_STATE_UNCALIBRATED 

PTP state changed to UNCALIBRATED.

MBG_EVT_ID_PTP_PORT_STATE_SLAVE 

PTP state changed to SLAVE.

MBG_EVT_ID_FW_ACTIVATED 

Firmware has been activated.

MBG_EVT_ID_FW_DELETED 

Firmware has been deleted.

MBG_EVT_ID_FW_ROLLBACK 

Firmware reset to factory defaults.

MBG_EVT_ID_UFU_FLASHED 

UFU file has been flashed.

MBG_EVT_ID_UFU_PROGRESS 

UFU flashing is in progress.

MBG_EVT_ID_DATABASE_CONNECTED 

Database(s) have been (re-)connected.

N_MBG_EVT_ID 

Definition at line 9613 of file gpsdefs.h.

◆ MBG_EVT_LVLS

Enumeration of event severity levels.

See also
MBG_EVENT_CODES
MBG_EVT_ID_BITS
MBG_EVT_LVL_BITS
Enumerator
MBG_EVT_LVL_NONE 
MBG_EVT_LVL_DEBUG 
MBG_EVT_LVL_INFO 
MBG_EVT_LVL_WARN 
MBG_EVT_LVL_ERR 
MBG_EVT_LVL_CRIT 
N_MBG_EVT_LVL 

Definition at line 9713 of file gpsdefs.h.