Ejemplo n.º 1
0
        public override void StreamFrom(Stream _stream)
        {
            byte b65 = (byte)_stream.ReadByte();
            byte b26 = (byte)_stream.ReadByte();

            PRA  = (byte)_stream.ReadByte();
            PRB  = (byte)_stream.ReadByte();
            DDRA = (byte)_stream.ReadByte();
            DDRB = (byte)_stream.ReadByte();
            SDR  = (byte)_stream.ReadByte();
            CRA  = (byte)_stream.ReadByte();
            CRB  = (byte)_stream.ReadByte();

            TimerA         = StreamHelpers.ReadInt16(_stream);
            TimerA_LatchLO = (byte)_stream.ReadByte();
            TimerA_LatchHI = (byte)_stream.ReadByte();

            TimerB         = StreamHelpers.ReadInt16(_stream);
            TimerB_LatchLO = (byte)_stream.ReadByte();
            TimerB_LatchHI = (byte)_stream.ReadByte();

            INT_DATA = (byte)_stream.ReadByte();
            INT_MASK = (byte)_stream.ReadByte();

            FlagPIN = StreamHelpers.ReadBool(_stream);
        }