Files
DP44/DataPRO/IService/Interfaces/IUARTDownloadActions.cs
2026-04-17 14:55:32 -04:00

39 lines
1.6 KiB
C#

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);
}
}