-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #215 from WildernessLabs/feature/electrical-sensors
Added interfaces for electrical sensors
- Loading branch information
Showing
5 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
Source/Meadow.Contracts/Peripherals/Sensors/Electrical/ICurrentSensor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Meadow.Units; | ||
|
||
namespace Meadow.Peripherals.Sensors; | ||
|
||
/// <summary> | ||
/// Electrical Current sensor interface requirements. | ||
/// </summary> | ||
public interface ICurrentSensor : ISamplingSensor<Current> | ||
{ | ||
/// <summary> | ||
/// Last value read from the Current sensor. | ||
/// </summary> | ||
public Current? Current { get; } | ||
} |
14 changes: 14 additions & 0 deletions
14
Source/Meadow.Contracts/Peripherals/Sensors/Electrical/IPowerSensor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Meadow.Units; | ||
|
||
namespace Meadow.Peripherals.Sensors; | ||
|
||
/// <summary> | ||
/// Electrical Power sensor interface requirements. | ||
/// </summary> | ||
public interface IPowerSensor : ISamplingSensor<Power> | ||
{ | ||
/// <summary> | ||
/// Last value read from the Power sensor. | ||
/// </summary> | ||
public Power? Power { get; } | ||
} |
14 changes: 14 additions & 0 deletions
14
Source/Meadow.Contracts/Peripherals/Sensors/Electrical/IVoltageSensor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Meadow.Units; | ||
|
||
namespace Meadow.Peripherals.Sensors; | ||
|
||
/// <summary> | ||
/// Voltage sensor interface requirements. | ||
/// </summary> | ||
public interface IVoltageSensor : ISamplingSensor<Voltage> | ||
{ | ||
/// <summary> | ||
/// Last value read from the Voltage sensor. | ||
/// </summary> | ||
public Voltage? Voltage { get; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters