Returns a list of the available modes of the port.

def modes(self):
        """
        Returns a list of the available modes of the port.
        """
        (self._modes, value) = self.get_cached_attr_set(self._modes, 'modes')
        return value