def get_proto_cls(protocol_array, values):
    """
    Given a garmin protocol_array, return
    the first value in values which is implemented
    by the device.
    """
    for val in values:
        if val.__name__ in protocol_array:
            return val