get_bos_descriptor
Description:
[ Version ( since = "0.4.0" ) ]
public BosDescriptor get_bos_descriptor (uint8 capability) throws Error
public BosDescriptor get_bos_descriptor (uint8 capability) throws Error
Gets the first bos_descriptor that matches the descriptor capability.
If you want to find all the BOS descriptors that match (there may be other matching BOS descriptors you have to use `g_usb_device_get_bos_descriptors()` and check each one manually.
Parameters:
this |
a Device |
capability |
a BOS capability type |
Returns:
a BosDescriptor or null for not found |