using System; using System.Collections.Generic; using System.Linq; using System.Text; using Crestron.SimplSharp; using PepperDash.Essentials.Core; namespace PepperDash.Essentials.Bridges { [Obsolete("Please use version PepperDash.Essentials.Core.Bridges")] public class IBasicCommunicationJoinMap : JoinMapBase { #region Digitals /// /// Set High to connect, Low to disconnect /// public uint Connect { get; set; } /// /// Reports Connected State (High = Connected) /// public uint Connected { get; set; } #endregion #region Analogs /// /// Reports the connections status value /// public uint Status { get; set; } #endregion #region Serials /// /// Data back from port /// public uint TextReceived { get; set; } /// /// Sends data to the port /// public uint SendText { get; set; } /// /// Takes a JSON serialized string that sets a COM port's parameters /// public uint SetPortConfig { get; set; } #endregion public IBasicCommunicationJoinMap() { TextReceived = 1; SendText = 1; SetPortConfig = 2; Connect = 1; Connected = 1; Status = 1; } public override void OffsetJoinNumbers(uint joinStart) { var joinOffset = joinStart - 1; TextReceived = TextReceived + joinOffset; SendText = SendText + joinOffset; SetPortConfig = SetPortConfig + joinOffset; Connect = Connect + joinOffset; Connected = Connected + joinOffset; Status = Status + joinOffset; } } }