1
0
mirror of https://github.com/cathery/sys-con.git synced 2024-07-05 10:48:46 +00:00
sys-con/SwitchUSB/include/SwitchUSBDevice.h

26 lines
739 B
C
Raw Normal View History

2019-10-31 18:00:42 +00:00
#pragma once
#include "IUSBDevice.h"
#include "switch.h"
#include "SwitchUSBInterface.h"
#include <vector>
class SwitchUSBDevice : public IUSBDevice
{
public:
SwitchUSBDevice();
~SwitchUSBDevice();
//Initialize the class with the SetInterfaces call.
SwitchUSBDevice(UsbHsInterface *interfaces, int length);
//There are no devices to open on the switch, so instead this returns success if there are any interfaces
virtual Result Open();
//Closes all the interfaces associated with the class
virtual void Close();
// Resets the device
virtual void Reset();
//Create interfaces from the given array of specified element length
void SetInterfaces(UsbHsInterface *interfaces, int length);
};