laatzen/Common/Hardware/Interfaces/Ports/SerialPorts/LedSerialPort.cs
2022-04-06 10:42:16 +02:00

29 lines
722 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;
}
}
}