code: def canWrite(variable):
      
      if variable not in variablesEnum:
          raise ValueError('Use a lifepo4wered enum element as parameter.')
  
      return lifepo4weredSO.access_lifepo4wered(variable.value, defines.ACCESS_WRITE)
docs: mention if an element can be written.
  
      :param variable: the element to evaluate.
      :type variable: Lifepo4weredEnum
      :return: true when write access is available, otherwise false
      :rtype: bool
      :raises ValueError: if parameter value is not a member of Lifepo4weredEnum