code: def swo_disable(self, port_mask):
          
          res = self._dll.JLINKARM_SWO_DisableTarget(port_mask)
          if res != 0:
              raise errors.JLinkException(res)
          return None
docs: Disables ITM & Stimulus ports.
  
          Args:
            self (JLink): the ``JLink`` instance
            port_mask (int): mask specifying which ports to disable
  
          Returns:
            ``None``
  
          Raises:
            JLinkException: on error