Handle new data from the device
| 162 | |
| 163 | // Handle new data from the device |
| 164 | void WirelessHIDDevice::receivedData(void) |
| 165 | { |
| 166 | IOMemoryDescriptor *data; |
| 167 | WirelessDevice *device = OSDynamicCast(WirelessDevice, getProvider()); |
| 168 | if (device == NULL) |
| 169 | return; |
| 170 | |
| 171 | while ((data = device->NextPacket()) != NULL) |
| 172 | { |
| 173 | receivedMessage(data); |
| 174 | data->release(); |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | const char *HexData = "0123456789ABCDEF"; |
| 179 |
no test coverage detected