Пример #1
0
        private void FelRequest(AWFELStandardRequest.RequestType command)
        {
            var req = new AWFELStandardRequest();

            req.Cmd = command;
            FelWrite(req.Data);
        }
Пример #2
0
 public AWFELMessage(byte[] data)
 {
     Cmd     = (AWFELStandardRequest.RequestType)(data[0] | (data[1] * 0x100));
     Tag     = (UInt16)(data[2] | (data[3] * 0x100));
     Address = (UInt32)(data[4] | (data[5] * 0x100) | (data[6] * 0x10000) | (data[7] * 0x1000000));
     Len     = (UInt32)(data[8] | (data[9] * 0x100) | (data[10] * 0x10000) | (data[11] * 0x1000000));
     Flags   = (UInt32)(data[12] | (data[13] * 0x100) | (data[14] * 0x10000) | (data[15] * 0x1000000));
 }
Пример #3
0
 private void FelRequest(AWFELStandardRequest.RequestType command, UInt32 address, UInt32 length)
 {
     var req = new AWFELMessage();
     req.Cmd = command;
     req.Address = address;
     req.Len = length;
     FelWrite(req.Data);
 }