code: def read(variable):
      
      if variable not in variablesEnum:
          raise ValueError('Use a lifepo4wered enum element as read parameter.')
      
      if canRead(variable):
          return lifepo4weredSO.read_lifepo4wered(variable.value)
      else:
          raise RuntimeError('You cannot read {0} value, just write it'.format(variable.name))
docs: read an element from LiFePO4wered.
  
      :param variable: the element to read.
      :type variable: Lifepo4weredEnum
      :return: the value of the element
      :rtype: int
      :raises ValueError: if parameter value is not a member of Lifepo4weredEnum