usb_find_object
Prev | 4.8. reference.h | Next

## Name

usb_find_object — find an object, or enumerate current objects

## Synopsis

``extern void* usb_find_object`(void* master_structure, unsigned long object_tag, int reference_type, unsigned long behaviour_control, unsigned long* result_tag, int* result);`

## Arguments

`master_structure`
`object_tag`
`reference_type`
`behaviour_control`
`result_tag`
`result`

## Description

find an object, or enumerate current objects This call can either be used to find a specific object given a base to start from, or can be used to enumerate all objects of a specific type. When used with USB_FIND_NEXT_OBJECT the system will keep returning objects until the full set is enumerated. search_result is used to keep track of where the search is currently, and it should be initialised to NULL. object_tag provides a filter for the objects when searching, or the value of the specific object when finding. The type of object_tag is dependant on the object type, USB_REFERENCE_ENDPOINT takes the endpoint number, USB_REFERENCE_DEVICE takes the device number, and USB_REFERENCE_CONTROLLER takes a pointer to the controller name. result points to a integer to place the result of the search in and returns a pointer to the item if result == USB_RESULT_OK

## See Also

USB_FindObject (SWI&55387), USB_FIND_KEEP_REFERENCE, USB_FIND_NEXT_OBJECT, USB_REFERENCE_ENDPOINT, USB_REFERENCE_DEVICE, USB_REFERENCE_CONTROLLER

Prev | Up | Next
usb_reference_deregister | Home | usb_request_start