def enumerate(vendor_id=<NUM_LIT:0>, product_id=<NUM_LIT:0>):
info = hidapi.hid_enumerate(vendor_id, product_id)<EOL>while info:<EOL><INDENT>yield DeviceInfo(info)<EOL>info = info.next<EOL><DEDENT>hidapi.hid_free_enumeration(info)<EOL>
Enumerate the HID Devices.

    Returns a generator that yields all of the HID devices attached to the
    system.

    :param vendor_id:   Only return devices which match this vendor id
    :type vendor_id:    int
    :param product_id:  Only return devices which match this product id
    :type product_id:   int
    :return:            Generator that yields informations about attached
                        HID devices
    :rval:              generator(DeviceInfo)