-
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 #258 from WildernessLabs/feature/can-errors
added can error info
- Loading branch information
Showing
3 changed files
with
43 additions
and
22 deletions.
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
16 changes: 16 additions & 0 deletions
16
Source/Meadow.Contracts/Hardware/Contracts/PortsAndBuses/CAN/CanErrorInfo.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,16 @@ | ||
namespace Meadow.Hardware; | ||
|
||
/// <summary> | ||
/// Represents CAN bus error information | ||
/// </summary> | ||
public class CanErrorInfo | ||
{ | ||
/// <summary> | ||
/// The number of transmit errors detected | ||
/// </summary> | ||
public byte TransmitErrorCount { get; set; } | ||
/// <summary> | ||
/// The number of receive errors detected | ||
/// </summary> | ||
public byte ReceiveErrorCount { get; set; } | ||
} |
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