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

Method PowerOff

WirelessGamingReceiver/WirelessHIDDevice.cpp:68–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void WirelessHIDDevice::PowerOff(void)
69{
70 static const unsigned char buf[] = {0x00, 0x00, 0x08, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
71 WirelessDevice *device = OSDynamicCast(WirelessDevice, getProvider());
72
73 if (device != NULL)
74 {
75 device->SendPacket(buf, sizeof(buf));
76 // device->SendPacket(weirdStart, sizeof(weirdStart));
77 }
78}
79
80// Called from userspace to do something, like set the LEDs
81IOReturn WirelessHIDDevice::setReport(IOMemoryDescriptor *report, IOHIDReportType reportType, IOOptionBits options)

Callers 1

Calls 1

SendPacketMethod · 0.80

Tested by

no test coverage detected