---
title: GetFrameNumber
framework: usbdriverkit
role: symbol
role_heading: Instance Method
path: usbdriverkit/iousbhostdevice/getframenumber
---

# GetFrameNumber

Gets the current frame number of the USB controller.

## Declaration

```occ
virtual kern_return_t GetFrameNumber(uint64_t *frameNumber, uint64_t *theTime);
```

## Parameters

- `frameNumber`: A pointer to a variable. On return, this variable contains the current frame number.
- `theTime`: A pointer to a variable. On return, this variable contains the current time.

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.

## Discussion

Discussion This method returns the current frame number of the USB controller, omitting the microframe. Use this information to schedule future isochronous requests.

## See Also

### Getting Device Information

- [GetAddress](usbdriverkit/iousbhostdevice/getaddress.md)
- [GetSpeed](usbdriverkit/iousbhostdevice/getspeed.md)
- [GetPortStatus](usbdriverkit/iousbhostdevice/getportstatus.md)
- [tIOUSBHostConnectionSpeed](usbdriverkit/tiousbhostconnectionspeed.md)
- [tIOUSBHostPortStatus](usbdriverkit/tiousbhostportstatus.md)
- [tIOUSBHostPortType](usbdriverkit/tiousbhostporttype.md)
