using System;

namespace SL200_RTLogViewer.lib
{
	// Token: 0x02000023 RID: 35
	public class ACPU201
	{
		// Token: 0x0600013C RID: 316 RVA: 0x00024274 File Offset: 0x00022474
		public static ACPU201Class SetData(byte[] data)
		{
			return new ACPU201Class
			{
				seq = Convert.ToInt32(data[0]),
				atolimit = Convert.ToInt32(data[1]),
				ebreq = ((data[2] & 128) > 0),
				stationvalid = ((data[2] & 32) > 0),
				dcwvalid = ((data[2] & 16) > 0),
				dcw = ((data[2] & 8) > 0),
				wrongdoor = ((data[2] & 4) > 0),
				nextStationDr = ((data[2] & 2) > 0),
				prestation = Convert.ToInt32(data[3]),
				nextstation = Convert.ToInt32(data[4]),
				deststation = Convert.ToInt32(data[5]),
				trainnumber = Convert.ToString((int)data[6] << 8 | (int)data[7], 16)
			};
		}
	}
}
