示例#1
0
        public void RequestPersonality()
        {
            DmxPersonalityDescription.Get packet = new DmxPersonalityDescription.Get();
            packet.PersonalityIndex = DeviceInformation.DmxPersonality;
            SendRdm(packet);

            SlotInfo.Get slotPacket = new SlotInfo.Get();
            SendRdm(slotPacket);
        }
示例#2
0
        protected RdmPacket GetSlotInfo(RdmPacket packet)
        {
            SlotInfo.Get requestPacket = packet as SlotInfo.Get;
            if (requestPacket != null)
            {
                SlotInfo.GetReply replyPacket = new SlotInfo.GetReply();

                foreach (RdmSlot slot in this)
                {
                    replyPacket.Slots.Add(slot.Information);
                }

                return(replyPacket);
            }

            return(null);
        }