code: def hardware_status(self):
          
          stat = structs.JLinkHardwareStatus()
          res = self._dll.JLINKARM_GetHWStatus(ctypes.byref(stat))
          if res == 1:
              raise errors.JLinkException('Error in reading hardware status.')
          return stat
docs: Retrieves and returns the hardware status.
  
          Args:
            self (JLink): the ``JLink`` instance
  
          Returns:
            A ``JLinkHardwareStatus`` describing the J-Link hardware.