MCPcopy Create free account
hub / github.com/acidanthera/BrcmPatchRAM / getDeviceStatus

Method getDeviceStatus

BrcmPatchRAM/BrcmPatchRAM.cpp:894–908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

892}
893
894int BrcmPatchRAM::getDeviceStatus()
895{
896 IOReturn result;
897 USBStatus status;
898
899 if ((result = mDevice.getDeviceStatus(this, &status)) != kIOReturnSuccess)
900 {
901 AlwaysLog("[%04x:%04x]: Unable to get device status (\"%s\" 0x%08x).\n", mVendorId, mProductId, stringFromReturn(result), result);
902 return 0;
903 }
904 else
905 DebugLog("[%04x:%04x]: Device status 0x%08x.\n", mVendorId, mProductId, (int)status);
906
907 return (int)status;
908}
909
910bool BrcmPatchRAM::setConfiguration(int configurationIndex)
911{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected