mention if an element can be read.

    :param variable: the element to evaluate.
    :type variable: Lifepo4weredEnum
    :return: true when read access is available, otherwise false.
    :rtype: bool
    :raises ValueError: if parameter value is not a member of Lifepo4weredEnum.

def canRead(variable):
    """
    mention if an element can be read.

    :param variable: the element to evaluate.
    :type variable: Lifepo4weredEnum
    :return: true when read access is available, otherwise false.
    :rtype: bool
    :raises ValueError: if parameter value is not a member of Lifepo4weredEnum.
    """
    if variable not in variablesEnum:
        raise ValueError('Use a lifepo4wered enum element as parameter.')

    return lifepo4weredSO.access_lifepo4wered(variable.value, defines.ACCESS_READ)