public object ToWriteReturn(byte[] byData, byte byteOrder, Type type) { return(ConvertHelper.BytesToStuct(ModBusHelper.GetDataByte(byData, byteOrder, 4, 2), type)); }
public T ToSingleField <T>(byte[] byRead, byte byteOrder, int byteSize) { return((T)ConvertHelper.BytesToStuct(ModBusHelper.GetDataByte(byRead, byteOrder, 3, byteSize), typeof(T))); }