def build_request_type(direction, type, recipient):
 return ((recipient | type) | direction)

def build_request_type ( direction , type , recipient ) : return ( ( recipient | type ) | direction )
build a bmrequesttype field for control requests .