using System;

namespace SL200_RTLogViewer.lib
{
	// Token: 0x02000021 RID: 33
	public class ACPU200
	{
		// Token: 0x06000139 RID: 313 RVA: 0x000240A0 File Offset: 0x000222A0
		public static ACPU200Class SetData(byte[] data)
		{
			return new ACPU200Class
			{
				seq = Convert.ToInt32(data[0]),
				ver = Convert.ToInt32((int)(data[1] & 252)),
				boardStat = Convert.ToInt32((int)(data[1] & 3)),
				source = Convert.ToInt32((int)(data[2] & 240)),
				destination = Convert.ToInt32((int)(data[2] & 15)),
				pwm = Convert.ToInt32(data[3]),
				dr = ((data[4] & 128) > 0),
				br = ((data[4] & 64) > 0),
				cs = ((data[4] & 32) > 0),
				ador = ((data[4] & 16) > 0),
				adol = ((data[4] & 8) > 0),
				adc = ((data[4] & 4) > 0),
				recovery = ((data[4] & 2) > 0),
				nomal = ((data[4] & 1) > 0),
				aa = ((data[5] & 128) > 0),
				am = ((data[5] & 64) > 0),
				mm = ((data[5] & 32) > 0),
				ats = ((data[5] & 16) > 0),
				pgx = ((data[5] & 8) > 0),
				pg32 = ((data[5] & 4) > 0),
				pg2 = ((data[5] & 2) > 0),
				pg1 = ((data[5] & 1) > 0),
				distance = Convert.ToDouble((int)data[6] << 8 | (int)data[7])
			};
		}
	}
}
