///////////////////////////////////////////////////////////////////////////////// /// Copyright (c) 2015 China Merchants Bank, all rights reserved /// /// Adapter Interface for Device control. /// /// /// /// /// ///////////////////////////////////////////////////////////////////////////////// #ifndef __DEVICE_CONTROL_CLASS_H #define __DEVICE_CONTROL_CLASS_H #include "DeviceBaseClass.h" enum ControlType { USB_PORT_DISABLE, //disable the USB port USB_PORT_ENABLE, //enable the USB port }; class DeviceControlClass : public DeviceBaseClass { public: // // Connect to device and do initialization. // Make preparations for controlling the device. // Arguments: // - dwPort[in] com port number // - dwBaudRate[in] Baud rate // virtual ErrorCodeEnum DevOpen(DWORD dwPort,DWORD dwBaudRate) = 0; // // Open/Close port. // virtual ErrorCodeEnum PortControl(ControlType eType) { return Error_NotImpl; } }; #endif //__CARD_SWIPER_CLASS_H