code: def version(self):
          
          version = int(self._dll.JLINKARM_GetDLLVersion())
          major = version / 10000
          minor = (version / 100) % 100
          rev = version % 100
          rev = '' if rev == 0 else chr(rev + ord('a') - 1)
          return '%d.%02d%s' % (major, minor, rev)
docs: Returns the device's version.
  
          The device's version is returned as a string of the format: M.mr where
          ``M`` is major number, ``m`` is minor number, and ``r`` is revision
          character.
  
          Args:
            self (JLink): the ``JLink`` instance
  
          Returns:
            Device version string.