mbgtools-lx  4.2.8
Extended system information

Data Structures

struct  MBG_EXT_SYS_INFO
 

Macros

#define MBG_EXT_SYS_INFO_PROC_STRS
 
#define MBG_EXT_SYS_INFO_FPGA_STRS
 
#define MBG_EXT_SYS_INFO_CORE_MOD_STRS
 
#define MBG_EXT_SYS_INFO_OS_SHORT_STRS
 
#define MBG_EXT_SYS_INFO_OS_STRS
 
#define MBG_EXT_SYS_INFO_CPU_MSK   0xff
 CPU mainline. More...
 
#define MBG_EXT_SYS_INFO_CPU_GEN_MSK   0xf
 CPU generation. More...
 
#define MBG_EXT_SYS_INFO_CPU_VAR_MSK   0xf
 CPU variant. More...
 
#define _mbg_ext_sys_info_get_cpu(var)   (((var) >> 8) & MBG_EXT_SYS_INFO_CPU_MSK)
 
#define _mbg_ext_sys_info_get_cpu_gen(var)   (((var) >> 4) & MBG_EXT_SYS_INFO_CPU_GEN_MSK)
 
#define _mbg_ext_sys_info_get_cpu_var(var)   ((var) & MBG_EXT_SYS_INFO_CPU_VAR_MSK)
 
#define MBG_EXT_SYS_INFO_CPU_STRS
 
#define __CPU_CODEC(cpu, gen, var)
 
#define HPS_USB_HOST_G1_V0   __CPU_CODEC(MBG_EXT_SYS_INFO_CPU_HPS_USB_HOST, 1, 0)
 
#define HPS_USB_DEVICE_G1_V0   __CPU_CODEC(MBG_EXT_SYS_INFO_CPU_HPS_USB_DEVICE, 1, 0)
 
#define HPS_USB_DEVICE_G1_V1   __CPU_CODEC(MBG_EXT_SYS_INFO_CPU_HPS_USB_DEVICE, 1, 1)
 
#define _mbg_swab_ext_sys_info(_p)
 
#define _mbg_encode_revision(_major, _minor, _patch)   ( ( (_major) << 24) | ( (_minor) << 16 ) | (_patch) )
 
#define _mbg_decode_revision(_rev, _major, _minor, _patch)
 

Enumerations

enum  MBG_EXT_SYS_INFO_BITS {
  MBG_EXT_SYS_INFO_BIT_SW_REV, MBG_EXT_SYS_INFO_BIT_HW_REV, MBG_EXT_SYS_INFO_BIT_OS_REV, MBG_EXT_SYS_INFO_BIT_FPGA_REV,
  MBG_EXT_SYS_INFO_BIT_CORE_MOD_REV, MBG_EXT_SYS_INFO_BIT_OS_TYPE, MBG_EXT_SYS_INFO_BIT_RAM_SIZE, MBG_EXT_SYS_INFO_BIT_STORAGE_SIZE,
  MBG_EXT_SYS_INFO_BIT_RELEASE_CANDIDATE, MBG_EXT_SYS_INFO_BIT_OS_TARGET, N_MBG_EXT_SYS_INFO_BITS
}
 Bits used to define MBG_EXT_SYS_INFO_MSKS. More...
 
enum  MBG_EXT_SYS_INFO_MSKS {
  MBG_EXT_SYS_INFO_MSK_SW_REV = ( 1UL << MBG_EXT_SYS_INFO_BIT_SW_REV ), MBG_EXT_SYS_INFO_MSK_HW_REV = ( 1UL << MBG_EXT_SYS_INFO_BIT_HW_REV ), MBG_EXT_SYS_INFO_MSK_OS_REV = ( 1UL << MBG_EXT_SYS_INFO_BIT_OS_REV ), MBG_EXT_SYS_INFO_MSK_FPGA_REV = ( 1UL << MBG_EXT_SYS_INFO_BIT_FPGA_REV ),
  MBG_EXT_SYS_INFO_MSK_CORE_MOD_REV = ( 1UL << MBG_EXT_SYS_INFO_BIT_CORE_MOD_REV ), MBG_EXT_SYS_INFO_MSK_OS_TYPE = ( 1UL << MBG_EXT_SYS_INFO_BIT_OS_TYPE ), MBG_EXT_SYS_INFO_MSK_RAM_SIZE = ( 1UL << MBG_EXT_SYS_INFO_BIT_RAM_SIZE ), MBG_EXT_SYS_INFO_MSK_STORAGE_SIZE = ( 1UL << MBG_EXT_SYS_INFO_BIT_STORAGE_SIZE ),
  MBG_EXT_SYS_INFO_MSK_RELEASE_CANDIDATE = ( 1UL << MBG_EXT_SYS_INFO_BIT_RELEASE_CANDIDATE ), MBG_EXT_SYS_INFO_MSK_OS_TARGET = ( 1UL << MBG_EXT_SYS_INFO_BIT_OS_TARGET )
}
 Bit masks of supported revision numbers. More...
 
enum  MBG_EXT_SYS_INFO_PROC_TYPES {
  MBG_EXT_SYS_INFO_PROC_TYPE_NONE, MBG_EXT_SYS_INFO_PROC_TYPE_CORTEX_A9, MBG_EXT_SYS_INFO_PROC_TYPE_CORTEX_SAM3u, MBG_EXT_SYS_INFO_PROC_TYPE_CORTEX_SAM3s,
  MBG_EXT_SYS_INFO_PROC_TYPE_CORTEX_STM32F4, N_MBG_EXT_SYS_INFO_PROC_TYPES
}
 
enum  MBG_EXT_SYS_INFO_FPGA_TYPES {
  MBG_EXT_SYS_INFO_FPGA_TYPE_NONE, MBG_EXT_SYS_INFO_FPGA_TYPE_CYCLONE5_SOC, MBG_EXT_SYS_INFO_FPGA_TYPE_CYCLONE5, MBG_EXT_SYS_INFO_FPGA_TYPE_CYCLONE4GX15,
  MBG_EXT_SYS_INFO_FPGA_TYPE_CYLCONE4CE22, N_MBG_EXT_SYS_INFO_FPGA_TYPES
}
 
enum  MBG_EXT_SYS_INFO_CORE_MOD_TYPES { MBG_EXT_SYS_INFO_CORE_MOD_TYPE_NONE, MBG_EXT_SYS_INFO_CORE_MOD_TYPE_UBX_LEA_M8F, MBG_EXT_SYS_INFO_CORE_MOD_TYPE_UBX_LEA_M8T, N_MBG_EXT_SYS_INFO_CORE_MOD_TYPES }
 
enum  MBG_EXT_SYS_INFO_OS_TYPES {
  MBG_EXT_SYS_INFO_OS_TYPE_NONE, MBG_EXT_SYS_INFO_OS_TYPE_PICO_OS, MBG_EXT_SYS_INFO_OS_TYPE_NANO_OS, MBG_EXT_SYS_INFO_OS_TYPE_MICRO_OS,
  MBG_EXT_SYS_INFO_OS_TYPE_SYNC_OS, MBG_EXT_SYS_INFO_OS_TYPE_ANY_OS, N_MBG_EXT_SYS_INFO_OS_TYPES
}
 
enum  MBG_EXT_SYS_INFO_CPUS { MBG_EXT_SYS_INFO_CPU_UNKNOWN, MBG_EXT_SYS_INFO_CPU_HPS_USB_HOST, MBG_EXT_SYS_INFO_CPU_HPS_USB_DEVICE, N_MBG_EXT_SYS_INFO_CPUS }
 

Detailed Description

Note
This structure and its definitions are only supported by a device if MBG_XFEATURE_EXT_SYS_INFO is set in the extended device features.

Macro Definition Documentation

◆ __CPU_CODEC

#define __CPU_CODEC (   cpu,
  gen,
  var 
)
Value:
(((cpu) & MBG_EXT_SYS_INFO_CPU_MSK) << 8) | \
(((gen) & MBG_EXT_SYS_INFO_CPU_GEN_MSK) << 4) | \
#define MBG_EXT_SYS_INFO_CPU_GEN_MSK
CPU generation.
Definition: gpsdefs.h:19357
#define MBG_EXT_SYS_INFO_CPU_VAR_MSK
CPU variant.
Definition: gpsdefs.h:19360
#define MBG_EXT_SYS_INFO_CPU_MSK
CPU mainline.
Definition: gpsdefs.h:19354

Definition at line 19381 of file gpsdefs.h.

◆ _mbg_decode_revision

#define _mbg_decode_revision (   _rev,
  _major,
  _minor,
  _patch 
)
Value:
{ \
(_major) = ( (_rev) >> 24 ) & 0xff; \
(_minor) = ( (_rev) >> 16 ) & 0xff; \
(_patch) = (_rev) & 0xffff; \
}

Definition at line 19467 of file gpsdefs.h.

Referenced by mbg_snprint_revision().

◆ _mbg_encode_revision

#define _mbg_encode_revision (   _major,
  _minor,
  _patch 
)    ( ( (_major) << 24) | ( (_minor) << 16 ) | (_patch) )

Definition at line 19463 of file gpsdefs.h.

◆ _mbg_ext_sys_info_get_cpu

#define _mbg_ext_sys_info_get_cpu (   var)    (((var) >> 8) & MBG_EXT_SYS_INFO_CPU_MSK)

Definition at line 19362 of file gpsdefs.h.

◆ _mbg_ext_sys_info_get_cpu_gen

#define _mbg_ext_sys_info_get_cpu_gen (   var)    (((var) >> 4) & MBG_EXT_SYS_INFO_CPU_GEN_MSK)

Definition at line 19363 of file gpsdefs.h.

◆ _mbg_ext_sys_info_get_cpu_var

#define _mbg_ext_sys_info_get_cpu_var (   var)    ((var) & MBG_EXT_SYS_INFO_CPU_VAR_MSK)

Definition at line 19364 of file gpsdefs.h.

◆ _mbg_swab_ext_sys_info

#define _mbg_swab_ext_sys_info (   _p)
Value:
do \
{ \
_mbg_swab32( &(_p)->supp_members ); \
_mbg_swab32( &(_p)->sw_rev ); \
_mbg_swab32( &(_p)->hw_rev ); \
_mbg_swab32( &(_p)->os_rev ); \
_mbg_swab32( &(_p)->fpga_rev ); \
_mbg_swab16( &(_p)->proc_type ); \
_mbg_swab16( &(_p)->fpga_type ); \
_mbg_swab16( &(_p)->core_mod_type ); \
_mbg_swab16( &(_p)->os_type ); \
_mbg_swab16( &(_p)->reserved ); \
_mbg_swab32( &(_p)->core_mod_rev ); \
_mbg_swab32( &(_p)->ram_size ); \
_mbg_swab32( &(_p)->storage_size ); \
_mbg_swab16( &(_p)->os_target ); \
} while ( 0 )

Definition at line 19443 of file gpsdefs.h.

Referenced by mbgextio_get_ext_sys_info().

◆ HPS_USB_DEVICE_G1_V0

#define HPS_USB_DEVICE_G1_V0   __CPU_CODEC(MBG_EXT_SYS_INFO_CPU_HPS_USB_DEVICE, 1, 0)

CPU 2 : HPS USB device Gen 1 : HPS100 Var 0 : Base (4xLED, USB to serial, 2xSMA, SFP, RJ-45) Product(s) : HPS100

Definition at line 19396 of file gpsdefs.h.

◆ HPS_USB_DEVICE_G1_V1

#define HPS_USB_DEVICE_G1_V1   __CPU_CODEC(MBG_EXT_SYS_INFO_CPU_HPS_USB_DEVICE, 1, 1)

CPU 2 : HPS USB device Gen 1 : HPS100 Var 1 : USB lock (4xLED, USB to serial, SMA, USB lock, SFP, RJ-45) Product(s) : SSP100

Definition at line 19402 of file gpsdefs.h.

◆ HPS_USB_HOST_G1_V0

#define HPS_USB_HOST_G1_V0   __CPU_CODEC(MBG_EXT_SYS_INFO_CPU_HPS_USB_HOST, 1, 0)

CPU 1 : HPS USB host Gen 1 : HPS100 Var 0 : Base (4xLED, USB to serial, 2xSMA, SFP, RJ-45) Product(s) : microSYNC HSXXX

Definition at line 19390 of file gpsdefs.h.

◆ MBG_EXT_SYS_INFO_CORE_MOD_STRS

#define MBG_EXT_SYS_INFO_CORE_MOD_STRS
Value:
{ \
"None", \
"u-blox LEA-M8F", \
"u-blox LEA-M8T" \
}

Definition at line 19310 of file gpsdefs.h.

◆ MBG_EXT_SYS_INFO_CPU_GEN_MSK

#define MBG_EXT_SYS_INFO_CPU_GEN_MSK   0xf

CPU generation.

Definition at line 19357 of file gpsdefs.h.

◆ MBG_EXT_SYS_INFO_CPU_MSK

#define MBG_EXT_SYS_INFO_CPU_MSK   0xff

CPU mainline.

Definition at line 19354 of file gpsdefs.h.

◆ MBG_EXT_SYS_INFO_CPU_STRS

#define MBG_EXT_SYS_INFO_CPU_STRS
Value:
{ \
"Unknown", \
"HPS USB host", \
"HPS USB device" \
}

Definition at line 19374 of file gpsdefs.h.

◆ MBG_EXT_SYS_INFO_CPU_VAR_MSK

#define MBG_EXT_SYS_INFO_CPU_VAR_MSK   0xf

CPU variant.

Definition at line 19360 of file gpsdefs.h.

◆ MBG_EXT_SYS_INFO_FPGA_STRS

#define MBG_EXT_SYS_INFO_FPGA_STRS
Value:
{ \
"None", \
"Cyclone5 SoC", \
"Cyclone5", \
"Cyclone4GX15", \
"Cyclone4CE22" \
}

Definition at line 19293 of file gpsdefs.h.

◆ MBG_EXT_SYS_INFO_OS_SHORT_STRS

#define MBG_EXT_SYS_INFO_OS_SHORT_STRS
Value:
{ \
" ", \
"p", \
"n", \
"u", \
"s", \
"x" \
}

Definition at line 19332 of file gpsdefs.h.

◆ MBG_EXT_SYS_INFO_OS_STRS

#define MBG_EXT_SYS_INFO_OS_STRS
Value:
{ \
"none", \
"pico", \
"nano", \
"micro", \
"sync", \
"any" \
}

Definition at line 19343 of file gpsdefs.h.

◆ MBG_EXT_SYS_INFO_PROC_STRS

#define MBG_EXT_SYS_INFO_PROC_STRS
Value:
{ \
"None", \
"Cortex A9", \
"Cortex SAM3u", \
"Cortex SAM3s", \
"Cortex STM32F4" \
}

Definition at line 19274 of file gpsdefs.h.

Enumeration Type Documentation

◆ MBG_EXT_SYS_INFO_BITS

Bits used to define MBG_EXT_SYS_INFO_MSKS.

See also
MBG_EXT_SYS_INFO_MSKS
Enumerator
MBG_EXT_SYS_INFO_BIT_SW_REV 
MBG_EXT_SYS_INFO_BIT_HW_REV 
MBG_EXT_SYS_INFO_BIT_OS_REV 
MBG_EXT_SYS_INFO_BIT_FPGA_REV 
MBG_EXT_SYS_INFO_BIT_CORE_MOD_REV 
MBG_EXT_SYS_INFO_BIT_OS_TYPE 
MBG_EXT_SYS_INFO_BIT_RAM_SIZE 
MBG_EXT_SYS_INFO_BIT_STORAGE_SIZE 
MBG_EXT_SYS_INFO_BIT_RELEASE_CANDIDATE 
MBG_EXT_SYS_INFO_BIT_OS_TARGET 
N_MBG_EXT_SYS_INFO_BITS 

Definition at line 19227 of file gpsdefs.h.

◆ MBG_EXT_SYS_INFO_CORE_MOD_TYPES

Enumerator
MBG_EXT_SYS_INFO_CORE_MOD_TYPE_NONE 
MBG_EXT_SYS_INFO_CORE_MOD_TYPE_UBX_LEA_M8F 

u-blox GNSS module without Galileo support

MBG_EXT_SYS_INFO_CORE_MOD_TYPE_UBX_LEA_M8T 

u-blox GNSS module with Galileo support

N_MBG_EXT_SYS_INFO_CORE_MOD_TYPES 

Definition at line 19302 of file gpsdefs.h.

◆ MBG_EXT_SYS_INFO_CPUS

Enumerator
MBG_EXT_SYS_INFO_CPU_UNKNOWN 
MBG_EXT_SYS_INFO_CPU_HPS_USB_HOST 
MBG_EXT_SYS_INFO_CPU_HPS_USB_DEVICE 
N_MBG_EXT_SYS_INFO_CPUS 

Definition at line 19366 of file gpsdefs.h.

◆ MBG_EXT_SYS_INFO_FPGA_TYPES

Enumerator
MBG_EXT_SYS_INFO_FPGA_TYPE_NONE 
MBG_EXT_SYS_INFO_FPGA_TYPE_CYCLONE5_SOC 

System on chip.

MBG_EXT_SYS_INFO_FPGA_TYPE_CYCLONE5 

Stand alone FPGA.

MBG_EXT_SYS_INFO_FPGA_TYPE_CYCLONE4GX15 
MBG_EXT_SYS_INFO_FPGA_TYPE_CYLCONE4CE22 
N_MBG_EXT_SYS_INFO_FPGA_TYPES 

Definition at line 19283 of file gpsdefs.h.

◆ MBG_EXT_SYS_INFO_MSKS

Bit masks of supported revision numbers.

Used with MBG_EXT_SYS_INFO::supp_members

See also
MBG_EXT_SYS_INFO_BITS
Enumerator
MBG_EXT_SYS_INFO_MSK_SW_REV 

see MBG_EXT_SYS_INFO_BIT_SW_REV

MBG_EXT_SYS_INFO_MSK_HW_REV 

see MBG_EXT_SYS_INFO_BIT_HW_REV

MBG_EXT_SYS_INFO_MSK_OS_REV 

see MBG_EXT_SYS_INFO_BIT_OS_REV

MBG_EXT_SYS_INFO_MSK_FPGA_REV 

see MBG_EXT_SYS_INFO_BIT_FPGA_REV

MBG_EXT_SYS_INFO_MSK_CORE_MOD_REV 

see MBG_EXT_SYS_INFO_BIT_CORE_MOD_REV

MBG_EXT_SYS_INFO_MSK_OS_TYPE 

see MBG_EXT_SYS_INFO_BIT_OS_TYPE

MBG_EXT_SYS_INFO_MSK_RAM_SIZE 

see MBG_EXT_SYS_INFO_BIT_RAM_SIZE

MBG_EXT_SYS_INFO_MSK_STORAGE_SIZE 

see MBG_EXT_SYS_INFO_BIT_STORAGE_SIZE

MBG_EXT_SYS_INFO_MSK_RELEASE_CANDIDATE 

see MBG_EXT_SYS_INFO_BIT_RELEASE_CANDIDATE

MBG_EXT_SYS_INFO_MSK_OS_TARGET 

see MBG_EXT_SYS_INFO_BIT_OS_TARGET

Definition at line 19249 of file gpsdefs.h.

◆ MBG_EXT_SYS_INFO_OS_TYPES

Enumerator
MBG_EXT_SYS_INFO_OS_TYPE_NONE 
MBG_EXT_SYS_INFO_OS_TYPE_PICO_OS 
MBG_EXT_SYS_INFO_OS_TYPE_NANO_OS 
MBG_EXT_SYS_INFO_OS_TYPE_MICRO_OS 
MBG_EXT_SYS_INFO_OS_TYPE_SYNC_OS 
MBG_EXT_SYS_INFO_OS_TYPE_ANY_OS 
N_MBG_EXT_SYS_INFO_OS_TYPES 

Definition at line 19320 of file gpsdefs.h.

◆ MBG_EXT_SYS_INFO_PROC_TYPES

Enumerator
MBG_EXT_SYS_INFO_PROC_TYPE_NONE 
MBG_EXT_SYS_INFO_PROC_TYPE_CORTEX_A9 
MBG_EXT_SYS_INFO_PROC_TYPE_CORTEX_SAM3u 
MBG_EXT_SYS_INFO_PROC_TYPE_CORTEX_SAM3s 
MBG_EXT_SYS_INFO_PROC_TYPE_CORTEX_STM32F4 
N_MBG_EXT_SYS_INFO_PROC_TYPES 

Definition at line 19264 of file gpsdefs.h.