领胜LDS 键盘AOI检测项目
xcd
2020-07-03 cf4babd9a65efdb44163822f0b9137bef83a0bbf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace Bro.Device.Common.Model
{
    public class MessageFrame
    {
        public byte[] DataFrame { get; set; }
 
        public byte[] StartFrame { get; set; } = new byte[] { (byte)1, (byte)2, (byte)11, (byte)12 };
        public byte[] EndFrame { get; set; } = new byte[] { (byte)12, (byte)11, (byte)2, (byte)1 };
 
        public byte[] SendFrame { get; set; }
 
        public MessageFrame() { }
 
        public MessageFrame(byte[] buffer)
        {
            DataFrame = buffer;
            SendFrame = StartFrame.Concat(buffer).Concat(EndFrame).ToArray();
        }
    }
}