This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
using DTS.Common.Enums.DASFactory;
using DTS.DASLib.Command.SLICE;
namespace DTS.DASLib.Service
{
/// <summary>
/// While the unit is waiting for a flash erase to complete, an object of this type in the
/// corresponding <see cref="IDASCommunication" /> can be updated to reflect the progress and
/// any errors for the current flash erase.
/// </summary>
public class FlashEraseStatus
{
/// <summary>
/// The last error that occurred during flash erase. This could be
/// DFConstantsAndEnums.CommandStatus .StatusNoError if everything is okay.
/// </summary>
public DFConstantsAndEnums.CommandStatus LastError { get; set; }
/// <summary>
/// How far along is the current flash erase?
/// </summary>
public float PercentComplete { get; set; }
}
}

View File

@@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DTS.DASLib.Service.Interfaces
{
public interface IUARTDownloadActions
{
/// <summary>
/// Download the data specified in the WhatToDownload property
/// </summary>
/// <param name="callback">The function to call with information</param>
/// <param name="userData">Whatever you want to pass along</param>
void UARTDownload(ServiceCallback callback, object userData);
/// <summary>
/// Retrieve UART info about available events to download
/// </summary>
/// <param name="callback">The function to call with information</param>
/// <param name="userData">Whatever you want to pass along</param>
void QueryUARTDownload(ServiceCallback callback, object userData, int eventIndex, TDASServiceSetupInfo setupInfo);
/// <summary>
/// FB15268: Set UART connection settings
/// </summary>
/// <param name="callback">The function to call with information</param>
/// <param name="userData">Whatever you want to pass along</param>
/// <param name="baudRate"></param>
/// <param name="dataBits"></param>
/// <param name="stopBits"></param>
/// <param name="parity"></param>
/// <param name="flowControl"></param>
void SetUARTSettings(ServiceCallback callback, object userData, uint baudRate, uint dataBits, uint stopBits, uint parity, uint flowControl);
void GetUARTSettings(ServiceCallback callback, object userData);
}
}