common/Hardware/Interfaces/Ports/SerialPorts/LedSerialPort.cs
2026-04-23 17:50:07 +02:00

29 lines
721 B
C#

using System;
using System.IO.Ports;
using NLog;
using Xylem.Common.Hardware.Interfaces.Ports.PortCore;
namespace Xylem.Common.Hardware.Interfaces.Ports.SerialPorts
{
/// <inheritdoc />
public class LedSerialPort : BaseSerialPort
{
/// <inheritdoc />
public LedSerialPort(String ident, SerialPort serialPort, TransmitPortSettings setting) : base(ident, serialPort, setting)
{
}
/// <inheritdoc />
protected override void SpecificPortWrite(Byte[] tx)
{
throw new NotSupportedException("Led port does not support writing");
}
public ILogger GetRawLogger()
{
return AsciiDataLogger;
}
}
}