---
title: handleInterruptPacket
framework: usbserialdriverkit
role: symbol
role_heading: Instance Method
path: usbserialdriverkit/iouserusbserial/handleinterruptpacket
---

# handleInterruptPacket

Processes an interrupt packet that originated from the device.

## Declaration

```occ
virtual void handleInterruptPacket(const uint8_t *packet, uint32_t size);
```

## Parameters

- `packet`: A buffer containing the interrupt-related data.
- `size`: The number of bytes in the packet buffer.

## Discussion

Discussion Override this method if you want to process interrupt packets sent by the device. The default implementation of this method does nothing.

## See Also

### Transmitting and Receiving Data

- [handleRxPacket](usbserialdriverkit/iouserusbserial/handlerxpacket.md)
- [RxFreeSpaceAvailable](usbserialdriverkit/iouserusbserial/rxfreespaceavailable.md)
- [TxDataAvailable](usbserialdriverkit/iouserusbserial/txdataavailable.md)
