Class Board
- Namespace
- DuetAPI.ObjectModel
- Assembly
- DuetAPI.dll
Information about a connected board
public class Board : ModelObject, INotifyPropertyChanging, IStaticModelObject, IModelObject, ICloneable, INotifyPropertyChanged
- Inheritance
-
Board
- Implements
- Inherited Members
Constructors
Board()
public Board()
Properties
Accelerometer
Accelerometer of this board or null if unknown
public Accelerometer? Accelerometer { get; set; }
Property Value
BootloaderFileName
Filename of the bootloader binary or null if unknown
public string? BootloaderFileName { get; set; }
Property Value
CanAddress
CAN address of this board or null if not applicable
public int? CanAddress { get; set; }
Property Value
- int?
ClosedLoop
Closed loop data of this board or null if unknown
public BoardClosedLoop? ClosedLoop { get; set; }
Property Value
DirectDisplay
Details about a connected display or null if none is connected
public DirectDisplay? DirectDisplay { get; set; }
Property Value
Drivers
Drivers of this board
public StaticModelCollection<Driver>? Drivers { get; set; }
Property Value
FirmwareDate
Date of the firmware build
public string FirmwareDate { get; set; }
Property Value
FirmwareFileName
Filename of the firmware binary or null if unknown
public string? FirmwareFileName { get; set; }
Property Value
FirmwareName
Name of the firmware build
public string FirmwareName { get; set; }
Property Value
FirmwareVersion
Version of the firmware build
public string FirmwareVersion { get; set; }
Property Value
FreeRam
Amount of free RAM on this board (in bytes or null if unknown)
public int? FreeRam { get; set; }
Property Value
- int?
IapFileNameSBC
Filename of the IAP binary that is used for updates from the SBC or null if unsupported
public string? IapFileNameSBC { get; set; }
Property Value
Remarks
This is only available for the mainboard (first board item)
IapFileNameSD
Filename of the IAP binary that is used for updates from the SD card or null if unsupported
public string? IapFileNameSD { get; set; }
Property Value
Remarks
This is only available for the mainboard (first board item)
InductiveSensor
Information about an inductive sensor or null if not present
public InductiveSensor? InductiveSensor { get; set; }
Property Value
MaxHeaters
Maximum number of heaters this board can control
public int MaxHeaters { get; set; }
Property Value
MaxMotors
Maximum number of motors this board can drive
public int MaxMotors { get; set; }
Property Value
McuTemp
Minimum, maximum, and current temperatures of the MCU or null if unknown
public MinMaxCurrent? McuTemp { get; set; }
Property Value
Name
Full name of the board
public string Name { get; set; }
Property Value
ShortName
Short name of this board
public string ShortName { get; set; }
Property Value
State
State of this board
public BoardState State { get; set; }
Property Value
SupportsDirectDisplay
Indicates if this board supports external displays
public bool SupportsDirectDisplay { get; set; }
Property Value
UniqueId
Unique identifier of the board or null if unknown
public string? UniqueId { get; set; }
Property Value
V12
Minimum, maximum, and current voltages on the 12V rail or null if unknown
public MinMaxCurrent? V12 { get; set; }
Property Value
VIn
Minimum, maximum, and current voltages on the input rail or null if unknown
public MinMaxCurrent? VIn { get; set; }
Property Value
WifiFirmwareFileName
Filename of the on-board WiFi chip or null if not present
public string? WifiFirmwareFileName { get; set; }
Property Value
Methods
Assign(IStaticModelObject)
Assign the properties from another instance. This is required to update model properties which do not have a setter
public void Assign(IStaticModelObject from)
Parameters
fromIStaticModelObjectOther instance
Clone()
Clone this instance
public object Clone()
Returns
- object
Cloned instance
Remarks
This method is auto-generated
UpdateFromJson(JsonElement, bool)
Update this instance from a given JSON element
public void UpdateFromJson(JsonElement jsonElement, bool ignoreSbcProperties)
Parameters
jsonElementJsonElementElement to update this intance from
ignoreSbcPropertiesboolWhether SBC properties are ignored
Remarks
This method is auto-generated
Exceptions
- JsonException
Failed to deserialize data
UpdateFromJsonReader(ref Utf8JsonReader, bool)
Update this instance from a given JSON element
public void UpdateFromJsonReader(ref Utf8JsonReader reader, bool ignoreSbcProperties)
Parameters
readerUtf8JsonReaderReader to update this intance from
ignoreSbcPropertiesboolWhether SBC properties are ignored
Remarks
This method is auto-generated
Exceptions
- JsonException
Failed to deserialize data