Ejemplo n.º 1
0
        public byte[] GetReadData(byte[] output)
        {
            int  offset  = Convert.ToInt32(output[0]);
            byte address = output[1];
            int  amount  = Convert.ToInt32(output[2]);

            return(api.ReadData(address, amount, offset, channel_num));
        }
Ejemplo n.º 2
0
 private void Flash_Fail_Verify_Check(string Show_Memory_Block)
 {
     byte[] readdata = api.ReadData(address: Convert.ToByte("DD", 16), amount: 1, offset: 2, channel_num);
     if (readdata[0] == Convert.ToByte("01", 16))
     {
         api.WriteLine(Show_Memory_Block + " Writing is not finished yet(Flash Busy). it needs to be set more writing time", Color.Red);
     }
     else if (readdata[0] == Convert.ToByte("80", 16))
     {
         api.WriteLine(Show_Memory_Block + " OC Writing Failed.", Color.Red);
     }
     else if (readdata[0] == Convert.ToByte("00", 16) || readdata[0] == Convert.ToByte("02", 16))
     {
         api.WriteLine(Show_Memory_Block + " Flash OC Writing OK", Color.Green);
     }
     else
     {
         api.WriteLine("Unknown Status, DD(P3) = " + readdata[0], Color.Blue);
     }
 }