Skip to main content

Interface IMeadowDevice

Contract for Meadow boards.

Assembly: Meadow.Contracts.dll
View Source
public interface IMeadowDevice : IDigitalInputOutputController, IDigitalInputController, IDigitalInterruptController, IBiDirectionalController, IAnalogInputController, IPwmOutputController, ISerialController, ISerialMessageController, ISpiController, IDigitalOutputController, II2cController, IWatchdogController, ICounterController, IPinController, INetworkAdapterController

Properties

PlatformOS

Retrieves OS-Specific implementations for the IMeadowDevice

View Source
IPlatformOS PlatformOS { get; }

Information

Retrieves the IDeviceInformation for the current IMeadowDevice

View Source
IDeviceInformation Information { get; }

Capabilities

Gets the device capabilities.

View Source
DeviceCapabilities Capabilities { get; }

Methods

GetPin(string)

Retrieves an IPin from the device by string

View Source
IPin GetPin(string name)
Returns

Meadow.Hardware.IPin

Parameters
TypeNameDescription
System.StringnameEither the string Name or Key or the IPin

Initialize()

Method called by the Core stack to initialize the IMeadowDevice

View Source
void Initialize()

GetBatteryInfo()

Retrieves battery info about the current IMeadowDevice

View Source
BatteryInfo? GetBatteryInfo()
Returns

Meadow.Hardware.BatteryInfo