MCPcopy Create free account
hub / github.com/360Controller/360Controller / GetMaxPacketSize

Function GetMaxPacketSize

360Controller/_60Controller.cpp:55–61  ·  view source on GitHub ↗

Find the maximum packet size of this pipe

Source from the content-addressed store, hash-verified

53
54// Find the maximum packet size of this pipe
55static UInt32 GetMaxPacketSize(IOUSBPipe *pipe)
56{
57 const IOUSBEndpointDescriptor *ed = pipe->GetEndpointDescriptor();
58
59 if(ed==NULL) return 0;
60 else return ed->wMaxPacketSize;
61}
62
63void Xbox360Peripheral::SendSpecial(UInt16 value)
64{

Callers 1

startMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected