aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-05-06 13:50:14 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-05-06 13:50:14 +0300
commitc14073e78d2c5b9569f91f47609d431da48ba706 (patch)
tree1498d47e10c6e97d28c3f45f5f9ac57276801a98 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common
parent551ca57984c369ce6084a612c8def44e2dbc3cc8 (diff)
downloadTango-c14073e78d2c5b9569f91f47609d431da48ba706.tar.gz
Tango-c14073e78d2c5b9569f91f47609d431da48ba706.zip
Added start/stop diagnostics and debugging on PMR.
Added device info to connected machine view. Added enable/disable diagnostics/debugging to connected machine view. Improved transfer rate calculation.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/DefaultDiagnosticsFrameProvider.cs8
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/IDiagnosticsFrameProvider.cs4
2 files changed, 6 insertions, 6 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/DefaultDiagnosticsFrameProvider.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/DefaultDiagnosticsFrameProvider.cs
index 63612d420..42eab20a5 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/DefaultDiagnosticsFrameProvider.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/DefaultDiagnosticsFrameProvider.cs
@@ -40,7 +40,7 @@ namespace Tango.MachineStudio.Common.Diagnostics
/// <summary>
/// Occurs when a new data frame is available.
/// </summary>
- public event EventHandler<PushDiagnosticsResponse> FrameReceived;
+ public event EventHandler<StartDiagnosticsResponse> FrameReceived;
/// <summary>
/// Initializes a new instance of the <see cref="DefaultDiagnosticsFrameProvider"/> class.
@@ -70,7 +70,7 @@ namespace Tango.MachineStudio.Common.Diagnostics
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="frame">The frame.</param>
- private void DefaultDiagnosticsFrameProvider_DiagnosticsDataAvailable(object sender, PushDiagnosticsResponse frame)
+ private void DefaultDiagnosticsFrameProvider_DiagnosticsDataAvailable(object sender, StartDiagnosticsResponse frame)
{
if (!Disable)
{
@@ -82,7 +82,7 @@ namespace Tango.MachineStudio.Common.Diagnostics
/// Push frames manual. (Only when Disable = true)
/// </summary>
/// <param name="frame">The frame.</param>
- public void PushFrame(PushDiagnosticsResponse frame)
+ public void PushFrame(StartDiagnosticsResponse frame)
{
if (Disable)
{
@@ -94,7 +94,7 @@ namespace Tango.MachineStudio.Common.Diagnostics
/// Raises the <see cref="FrameReceived"/> event.
/// </summary>
/// <param name="frame">The frame.</param>
- protected virtual void OnFrameReceived(PushDiagnosticsResponse frame)
+ protected virtual void OnFrameReceived(StartDiagnosticsResponse frame)
{
FrameReceived?.Invoke(this, frame);
}
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/IDiagnosticsFrameProvider.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/IDiagnosticsFrameProvider.cs
index 3294b341d..3944fe8cb 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/IDiagnosticsFrameProvider.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/IDiagnosticsFrameProvider.cs
@@ -16,7 +16,7 @@ namespace Tango.MachineStudio.Common.Diagnostics
/// <summary>
/// Occurs when a new data frame is available.
/// </summary>
- event EventHandler<PushDiagnosticsResponse> FrameReceived;
+ event EventHandler<StartDiagnosticsResponse> FrameReceived;
/// <summary>
/// Disables the frame delivery from the current connected machine and enables the manual push frame method.
@@ -27,6 +27,6 @@ namespace Tango.MachineStudio.Common.Diagnostics
/// Push frames manual. (Only when Disable = true)
/// </summary>
/// <param name="frame">The frame.</param>
- void PushFrame(PushDiagnosticsResponse frame);
+ void PushFrame(StartDiagnosticsResponse frame);
}
}