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