public void Add8BitChannel(SlotIds id, string description, byte defaultValue) { RdmSlot slot = new RdmSlot(); slot.Information = new SlotInfo.SlotInformation((short)this.Count, id); slot.Description = description; slot.DefaultValue = new DefaultSlotValue.SlotValue((short)this.Count, defaultValue); Add(slot); }
public void Add16BitChannel(SlotIds id, string description, byte defaultValue) { RdmSlot slot1 = new RdmSlot(); slot1.Information = new SlotInfo.SlotInformation((short)this.Count, id); slot1.Description = description; slot1.DefaultValue = new DefaultSlotValue.SlotValue((short)this.Count, defaultValue); Add(slot1); RdmSlot slot2 = new RdmSlot(); slot2.Information = new SlotInfo.SlotInformation((short)this.Count, SlotTypes.Fine, (short)this.Count); slot2.Description = description; slot2.DefaultValue = new DefaultSlotValue.SlotValue((short)this.Count, defaultValue); Add(slot2); }
public SlotInformation(short offset, SlotIds id) : this() { this.Offset = offset; this.Type = SlotTypes.Primary; this.Id = id; }