2019-08-27 01:20:54 +01:00
|
|
|
|
using Crc;
|
2019-08-22 00:55:40 +01:00
|
|
|
|
|
|
|
|
|
namespace libsharperang {
|
|
|
|
|
public abstract class Base {
|
|
|
|
|
public enum ConnectionType {
|
|
|
|
|
None,
|
|
|
|
|
UART,
|
|
|
|
|
USB,
|
|
|
|
|
Bluetooth
|
|
|
|
|
}
|
2019-08-27 01:20:54 +01:00
|
|
|
|
internal DataTransforms transform=new DataTransforms();
|
|
|
|
|
//public Printer printer;
|
|
|
|
|
public string Model { get; internal set; }
|
2019-08-22 00:55:40 +01:00
|
|
|
|
public string FirmwareVer { get; internal set; }
|
|
|
|
|
public int Battery { get; internal set; }
|
2019-09-10 00:43:58 +01:00
|
|
|
|
public int ImageWidth { get; internal set; }
|
2019-08-22 00:55:40 +01:00
|
|
|
|
public ConnectionType ActiveConnectionType { get; internal set; } = ConnectionType.None;
|
2019-08-27 01:20:54 +01:00
|
|
|
|
internal bool InitialiseConnection() => false;
|
|
|
|
|
internal bool DestroyConnection() => false;
|
|
|
|
|
public Base() => InitialiseConnection();
|
|
|
|
|
~Base() => DestroyConnection();
|
2019-08-22 00:55:40 +01:00
|
|
|
|
}
|
|
|
|
|
}
|