parameters: (self, clock)
docstring: Sets up the SWD clock timing
  
          :param clock: clock value in Hz
docstring_summary: Sets up the SWD clock timing
docstring_tokens: Sets up the SWD clock timing
function: def dap_swj_clock(self, clock):
          """
          Sets up the SWD clock timing
  
          :param clock: clock value in Hz
          """
          self.logger.debug("dap_swj_clk (%d)", clock)
          cmd = bytearray(1)
          cmd[0] = self.ID_DAP_SWJ_Clock
          cmd.extend(binary.pack_le32(clock))
          rsp = self.dap_command_response(cmd)
          self._check_response(cmd, rsp)
          if rsp[1] != self.DAP_OK:
              raise PyedbglibError("SWJ clock setting failed (0x{0:02X})".format(rsp[1]))
function_tokens: def dap_swj_clock ( self , clock ) : self . logger . debug ( "dap_swj_clk (%d)" , clock ) cmd = bytearray ( 1 ) cmd [ 0 ] = self . ID_DAP_SWJ_Clock cmd . extend ( binary . pack_le32 ( clock ) ) rsp = self . dap_command_response ( cmd ) self . _check_response ( cmd , rsp ) if rsp [ 1 ] != self . DAP_OK : raise PyedbglibError ( "SWJ clock setting failed (0x{0:02X})" . format ( rsp [ 1 ] ) )