| 66 | } |
| 67 | |
| 68 | void 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 |
| 81 | IOReturn WirelessHIDDevice::setReport(IOMemoryDescriptor *report, IOHIDReportType reportType, IOOptionBits options) |
no test coverage detected