MCPcopy Create free account
hub / github.com/Santroller/Santroller / initialize

Method initialize

src/usb/device/switch_device.cpp:84–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 factoryConfig->rightStickCalibration.getRealMax(rightMaxX, rightMaxY);
83}
84void SwitchGamepadDevice::initialize()
85{
86 m_epin = next_epin();
87 m_epout = next_epout();
88 usb_instances_by_epin[m_epin & (~0x80)] = usb_instances[interface_id];
89 usb_instances_by_epout[m_epout] = usb_instances[interface_id];
90}
91bool SwitchGamepadDevice::sendReport(uint8_t reportID, void const *reportData, uint16_t reportLength)
92{
93 bool response = send_report(reportLength, 0, reportData);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected