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
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Either 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
Type | Name | Description |
---|---|---|
Meadow.Hardware.MeadowPlatform | detectedPlatform | The MeadowPlatform that core detected the application is running on |
GetBatteryInfo()
Retrieves battery info about the current IMeadowDevice
View Source
Declaration
BatteryInfo? GetBatteryInfo()