<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def swo_stop(self):
 """Stops collecting SWO data. Args: self (JLink):
 the ``JLink`` instance Returns: ``None`` Raises: JLinkException: on error """

        res = self._dll.JLINKARM_SWO_Control(enums.JLinkSWOCommands.STOP, 0)
        if res < 0:
            raise errors.JLinkException(res)

        return None