def to_ver32(version):
    """
    Converts version in Redfish format (e.g. v1_0_0) to a PLDM ver32

    Args:
        version: The Redfish version to convert

    Returns:
        The version in ver32 format
    """

    # The last item in result will have the latest version
    if version != 'v0_0_0':  # This is a versioned namespace
        ver_array = version[1:].split('_')   # skip the 'v' and split the major, minor and errata
        ver_number = ((int(ver_array[0]) | 0xF0) << 24) | ((int(ver_array[1]) | 0xF0) << 16) | ((int(ver_array[2])
                                                                                                 | 0xF0) << 8)
        return ver_number
    else:  # This is an un-versioned entity, return v0_0_0
        return 0xFFFFFFFF