export enum TransactionMode {
    MPOS_TRANSACTION_OUT = 0,
    MPOS_TRANSACTION_IN = 1
}

export enum CommandMode {
    MPOS_MODE_DEFAULT = 0,
    MPOS_MODE_BYPASS = 1
}

export enum ReadMode {
    MPOS_READMODE_ALWAYS = 0,
    MPOS_READMODE_ONCE = 1,
    MPOS_READMODE_NONE = 2
}

export enum InterfaceType {
    MPOS_INTERFACE_WIFI = 1,
    MPOS_INTERFACE_ETHERNET = 2,
    MPOS_INTERFACE_BLUETOOTH = 4,
    MPOS_INTERFACE_BLE = 8,
    MPOS_INTERFACE_USB = 16
}

export enum DeviceType {
    MPOS_DEVICE_LABEL_PRINTER = 1,
    MPOS_DEVICE_PRINTER = 10,
    MPOS_DEVICE_MSR = 30,
    MPOS_DEVICE_SCANNER = 40,
    MPOS_DEVICE_RFID = 60,
    MPOS_DEVICE_DALLASKEY = 70,
    MPOS_DEVICE_NFC = 80,
    MPOS_DEVICE_DISPLAY = 110,
    MPOS_DEVICE_USB_TO_SERIAL = 120,
    MPOS_DEVICE_SCALE = 130
}

export enum BaudRateType {
    MPOS_BAUDRATE_2400 = 0,
    MPOS_BAUDRATE_4800 = 1,
    MPOS_BAUDRATE_9600 = 2,
    MPOS_BAUDRATE_19200 = 3,
    MPOS_BAUDRATE_38400 = 4,
    MPOS_BAUDRATE_57600 = 5,
    MPOS_BAUDRATE_115200 = 6,
    MPOS_BAUDRATE_230400 = 7
}

export enum DataBitType {
    MPOS_DATABIT_7 = 0,
    MPOS_DATABIT_8 = 1
}

export enum StopBitType {
    MPOS_STOPBIT_1 = 0,
    MPOS_STOPBIT_2 = 1
}

export enum ParityBitType {
    MPOS_PARITYBIT_NONE = 0,
    MPOS_PARITYBIT_EVEN = 1,
    MPOS_PARITYBIT_ODD = 2
}

export enum FlowControlType {
    MPOS_FLOWCONTROL_NONE = 0,
    MPOS_FLOWCONTROL_HW = 1
}