class::sys::SysInfo

class sys::SysInfo
  : public api::SysInfoObject

This class holds the system information.

#include <sapi/sys.hpp>
SysInfo info = SysInfo::get(); //grab system information
Printer p;
p << info; //print system information using the printer

Members

SysInfo()
SysInfo(

const sys_info_t & info
)

u32 application_signature() const
var::ConstString arch() const
var::ConstString bsp_git_hash() const
var::ConstString bsp_version() const
void clear()
var::ConstString cpu_architecture() const
u32 cpu_frequency() const
u32 hardware_id() const
var::ConstString id() const
bool is_valid() const
var::ConstString kernel_version() const
var::ConstString mcu_git_hash() const
var::ConstString name() const
u32 o_flags() const
operator const sys_info_t &() const
SerialNumber serial_number() const
var::ConstString sos_git_hash() const
var::ConstString sos_version() const
var::ConstString stdin_name() const
var::ConstString stdout_name() const
var::ConstString system_version() const
var::ConstString trace_name() const
static SysInfo get()

Details

SysInfo()

Constructs an empty SysInfo object.


SysInfo(

const sys_info_t & info
)

Constructs an object from info.


u32 application_signature() const

Returns the signature for the system call table.

Applications that are installed must have a compatible signature.


var::ConstString arch() const

var::ConstString bsp_git_hash() const

Returns the GIT Hash of the OS package as built.


var::ConstString bsp_version() const

Returns the board support package version (same as system_version()).


void clear()

var::ConstString cpu_architecture() const

Returns the CPU architecture.

Applications that are installed on the system must have a compatible architecture.


u32 cpu_frequency() const

Returns the CPU core clock frequency in Hertz.


u32 hardware_id() const

var::ConstString id() const

Returns the OS package project ID.


bool is_valid() const

Returns true if the object is valid.


var::ConstString kernel_version() const

Returns the kernel version (same as sos_version()).


var::ConstString mcu_git_hash() const

Returns the Stratify OS MCU library used to link the OS package.


var::ConstString name() const

Returns the name of the system.


u32 o_flags() const

operator const sys_info_t &() const

SerialNumber serial_number() const

var::ConstString sos_git_hash() const

Returns the Stratify OS library used to link the OS package.


var::ConstString sos_version() const

Returns the Stratify OS version version.


var::ConstString stdin_name() const

var::ConstString stdout_name() const

var::ConstString system_version() const

Returns the system version.


var::ConstString trace_name() const

static SysInfo get()

X

Thanks for Coming!

Subscribe to news and updates