Unosquare
    Show / Hide Table of Contents

    Class SystemInfo

    Retrieves the RaspberryPI System Information.

    http://raspberry-pi-guide.readthedocs.io/en/latest/system.html.

    Inheritance
    Object
    SystemInfo
    Namespace: Unosquare.RaspberryIO.Computer
    Syntax
    public sealed class SystemInfo : SingletonBase<SystemInfo>

    Properties

    BoardModel

    Gets the board model (accordingly to new-style revision codes).

    Declaration
    public BoardModel BoardModel { get; }
    Property Value
    Type Description
    BoardModel
    Exceptions
    Type Condition
    InvalidOperationException

    This board does not support new-style revision codes. Use {nameof(RaspberryPiVersion)}.

    BoardRevision

    Gets the board revision (1 or 2).

    Declaration
    public int BoardRevision { get; set; }
    Property Value
    Type Description
    Int32

    The wiring pi board revision.

    CpuArchitecture

    Gets the CPU architecture code.

    Declaration
    public string CpuArchitecture { get; }
    Property Value
    Type Description
    String

    CpuImplementer

    Gets the CPU implementer hex code.

    Declaration
    public string CpuImplementer { get; }
    Property Value
    Type Description
    String

    CpuPart

    Gets the CPU part code.

    Declaration
    public string CpuPart { get; }
    Property Value
    Type Description
    String

    CpuRevision

    Gets the CPU revision code.

    Declaration
    public string CpuRevision { get; }
    Property Value
    Type Description
    String

    CpuVariant

    Gets the CPU variant code.

    Declaration
    public string CpuVariant { get; }
    Property Value
    Type Description
    String

    Features

    Gets a list of supported CPU features.

    Declaration
    public string[] Features { get; }
    Property Value
    Type Description
    String[]

    Hardware

    Gets the hardware model number.

    Declaration
    public string Hardware { get; }
    Property Value
    Type Description
    String

    InstalledRam

    Gets the installed ram in bytes.

    Declaration
    public int InstalledRam { get; }
    Property Value
    Type Description
    Int32

    IsLittleEndian

    Gets a value indicating whether this CPU is little endian.

    Declaration
    public bool IsLittleEndian { get; }
    Property Value
    Type Description
    Boolean

    LibraryVersion

    Gets the library version.

    Declaration
    public Version LibraryVersion { get; }
    Property Value
    Type Description
    Version

    Manufacturer

    Gets the manufacturer of the board (accordingly to new-style revision codes).

    Declaration
    public Manufacturer Manufacturer { get; }
    Property Value
    Type Description
    Manufacturer
    Exceptions
    Type Condition
    InvalidOperationException

    This board does not support new-style revision codes. Use {nameof(RaspberryPiVersion)}.

    MemorySize

    Gets the size of the memory (accordingly to new-style revision codes).

    Declaration
    public MemorySize MemorySize { get; }
    Property Value
    Type Description
    MemorySize
    Exceptions
    Type Condition
    InvalidOperationException

    This board does not support new-style revision codes. Use {nameof(RaspberryPiVersion)}.

    ModelName

    Gets the CPU model name.

    Declaration
    public string ModelName { get; }
    Property Value
    Type Description
    String

    OperatingSystem

    Gets the OS information.

    Declaration
    public OsInfo OperatingSystem { get; set; }
    Property Value
    Type Description
    OsInfo

    The os information.

    ProcessorCount

    Gets the number of processor cores.

    Declaration
    public int ProcessorCount { get; }
    Property Value
    Type Description
    Int32

    ProcessorModel

    Gets processor model (accordingly to new-style revision codes).

    Declaration
    public ProcessorModel ProcessorModel { get; }
    Property Value
    Type Description
    ProcessorModel
    Exceptions
    Type Condition
    InvalidOperationException

    This board does not support new-style revision codes. Use {nameof(RaspberryPiVersion)}.

    RaspberryPiVersion

    Gets the Raspberry Pi version.

    Declaration
    public PiVersion RaspberryPiVersion { get; set; }
    Property Value
    Type Description
    PiVersion

    Revision

    Gets the hardware revision number.

    Declaration
    public string Revision { get; }
    Property Value
    Type Description
    String

    RevisionNumber

    Gets the revision number (accordingly to new-style revision codes).

    Declaration
    public int RevisionNumber { get; set; }
    Property Value
    Type Description
    Int32

    Serial

    Gets the serial number.

    Declaration
    public string Serial { get; }
    Property Value
    Type Description
    String

    Uptime

    Gets the system up-time (in seconds).

    Declaration
    public double Uptime { get; }
    Property Value
    Type Description
    Double

    UptimeTimeSpan

    Gets the uptime in TimeSpan.

    Declaration
    public TimeSpan UptimeTimeSpan { get; }
    Property Value
    Type Description
    TimeSpan

    Methods

    ToString()

    Returns a String that represents this instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    A String that represents this instance.

    Comments

    Back to top Copyright © 2017-2019 Unosquare