Exemplo n.º 1
0
        /// <summary>
        /// Translate the given packet into a RS232 data stream
        /// </summary>
        public static byte[] Translate(BitStream packet)
        {
            var translater = new PacketTranslater(packet);

            return(translater.Translate());
        }
Exemplo n.º 2
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public PacketSender(string portName)
 {
     idlePacket = PacketTranslater.Translate(Packets.CreateIdle());
     PortName   = portName;
 }