MCPcopy Create free account
hub / github.com/cathery/sys-con / GetEndpoint

Method GetEndpoint

source/ControllerSwitch/SwitchUSBInterface.cpp:101–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101IUSBEndpoint *SwitchUSBInterface::GetEndpoint(IUSBEndpoint::Direction direction, uint8_t index)
102{
103 if (direction == IUSBEndpoint::USB_ENDPOINT_IN)
104 return m_inEndpoints[index].get();
105 else
106 return m_outEndpoints[index].get();
107}
108
109Result SwitchUSBInterface::Reset()
110{

Callers 6

OpenInterfacesMethod · 0.80
OpenInterfacesMethod · 0.80
OpenInterfacesMethod · 0.80
OpenInterfacesMethod · 0.80
OpenInterfacesMethod · 0.80
OpenInterfacesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected