2024-04-08 03:10:24 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "UsbBase.h"
|
|
|
|
#include "File.h"
|
|
|
|
|
|
|
|
namespace ehs
|
|
|
|
{
|
2024-07-24 01:36:20 -07:00
|
|
|
class EHS_LIB_IO Usb final : public UsbBase
|
2024-04-08 03:10:24 -07:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
int hdl;
|
|
|
|
|
|
|
|
public:
|
|
|
|
~Usb() override;
|
|
|
|
|
|
|
|
Usb();
|
|
|
|
|
|
|
|
Usb(UInt_32 bus, UInt_32 address);
|
|
|
|
|
|
|
|
Usb(Usb&& usb) noexcept;
|
|
|
|
|
|
|
|
Usb(const Usb& usb);
|
|
|
|
|
|
|
|
Usb& operator=(Usb&& usb) noexcept;
|
|
|
|
|
|
|
|
Usb& operator=(const Usb& usb);
|
|
|
|
|
|
|
|
void Initialize() override;
|
|
|
|
|
|
|
|
void Release() override;
|
|
|
|
|
|
|
|
bool IsInitialized() const override;
|
|
|
|
};
|
|
|
|
}
|