def get_status(dev, recipient=None):
 (bmRequestType, wIndex) = _parse_recipient(recipient, util.CTRL_IN)
 ret = dev.ctrl_transfer(bmRequestType=bmRequestType, bRequest=0, wIndex=wIndex, data_or_wLength=2)
 return (ret[0] | (ret[1] << 8))

def get_status ( dev , recipient = None ) : ( bmRequestType , wIndex ) = _parse_recipient ( recipient , util . CTRL_IN ) ret = dev . ctrl_transfer ( bmRequestType = bmRequestType , bRequest = 0 , wIndex = wIndex , data_or_wLength = 2 ) return ( ret [ 0 ] | ( ret [ 1 ] << 8 ) )
return the status for the specified recipient .