Skip to main content

Interface IMeadowDevice

Contract for Meadow boards.

Assembly: Meadow.Contracts.dll
View Source
Declaration
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
Declaration
IPlatformOS PlatformOS { get; }

Information

Retrieves the IDeviceInformation for the current IMeadowDevice

View Source
Declaration
IDeviceInformation Information { get; }

Capabilities

Gets the device capabilities.

View Source
Declaration
DeviceCapabilities Capabilities { get; }

Methods

GetPin(string)

Retrieves an IPin from the device by string

View Source
Declaration
IPin GetPin(string name)
Returns

Meadow.Hardware.IPin

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

Initialize(MeadowPlatform)

Method called by the Core stack to initialize the IMeadowDevice

View Source
Declaration
void Initialize(MeadowPlatform detectedPlatform)
Parameters
TypeNameDescription
Meadow.Hardware.MeadowPlatformdetectedPlatformThe MeadowPlatform that core detected the application is running on

GetBatteryInfo()

Retrieves battery info about the current IMeadowDevice

View Source
Declaration
BatteryInfo? GetBatteryInfo()
Returns

Meadow.Hardware.BatteryInfo