code: def halted(self):
          
          result = int(self._dll.JLINKARM_IsHalted())
          if result < 0:
              raise errors.JLinkException(result)
  
          return (result > 0)
docs: Returns whether the CPU core was halted.
  
          Args:
            self (JLink): the ``JLink`` instance
  
          Returns:
            ``True`` if the CPU core is halted, otherwise ``False``.
  
          Raises:
            JLinkException: on device errors.