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

Method Close

source/ControllerSwitch/SwitchUSBInterface.cpp:47–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 return rc;
46}
47void SwitchUSBInterface::Close()
48{
49 for (auto &&endpoint : m_inEndpoints)
50 {
51 if (endpoint)
52 {
53 endpoint->Close();
54 }
55 }
56 for (auto &&endpoint : m_outEndpoints)
57 {
58 if (endpoint)
59 {
60 endpoint->Close();
61 }
62 }
63 usbHsIfClose(&m_session);
64}
65
66Result SwitchUSBInterface::ControlTransfer(u8 bmRequestType, u8 bmRequest, u16 wValue, u16 wIndex, u16 wLength, void *buffer)
67{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected