parameters: (self, port=DEFAULT_PORT, baud=ESP_ROM_BAUD, trace_enabled=False)
docstring: Base constructor for ESPLoader bootloader interaction
  
          Don't call this constructor, either instantiate ESP8266ROM
          or ESP32ROM, or use ESPLoader.detect_chip().
  
          This base class has all of the instance methods for bootloader
          functionality supported across various chips & stub
          loaders. Subclasses replace the functions they don't support
          with ones which throw NotImplementedInROMError().
docstring_summary: Base constructor for ESPLoader bootloader interaction
docstring_tokens: Base constructor for ESPLoader bootloader interaction
function: def __init__(self, port=DEFAULT_PORT, baud=ESP_ROM_BAUD, trace_enabled=False):
          """Base constructor for ESPLoader bootloader interaction
  
          Don't call this constructor, either instantiate ESP8266ROM
          or ESP32ROM, or use ESPLoader.detect_chip().
  
          This base class has all of the instance methods for bootloader
          functionality supported across various chips & stub
          loaders. Subclasses replace the functions they don't support
          with ones which throw NotImplementedInROMError().
  
          """
          if isinstance(port, basestring):
              self._port = serial.serial_for_url(port)
          else:
              self._port = port
          self._slip_reader = slip_reader(self._port, self.trace)
          # setting baud rate in a separate step is a workaround for
          # CH341 driver on some Linux versions (this opens at 9600 then
          # sets), shouldn't matter for other platforms/drivers. See
          # https://github.com/espressif/esptool/issues/44#issuecomment-107094446
          self._set_port_baudrate(baud)
          self._trace_enabled = trace_enabled
          # set write timeout, to prevent esptool blocked at write forever.
          try:
              self._port.write_timeout = DEFAULT_SERIAL_WRITE_TIMEOUT
          except NotImplementedError:
              # no write timeout for RFC2217 ports
              # need to set the property back to None or it will continue to fail
              self._port.write_timeout = None
function_tokens: def __init__ ( self , port = DEFAULT_PORT , baud = ESP_ROM_BAUD , trace_enabled = False ) : if isinstance ( port , basestring ) : self . _port = serial . serial_for_url ( port ) else : self . _port = port self . _slip_reader = slip_reader ( self . _port , self . trace ) # setting baud rate in a separate step is a workaround for # CH341 driver on some Linux versions (this opens at 9600 then # sets), shouldn't matter for other platforms/drivers. See # https://github.com/espressif/esptool/issues/44#issuecomment-107094446 self . _set_port_baudrate ( baud ) self . _trace_enabled = trace_enabled # set write timeout, to prevent esptool blocked at write forever. try : self . _port . write_timeout = DEFAULT_SERIAL_WRITE_TIMEOUT except NotImplementedError : # no write timeout for RFC2217 ports # need to set the property back to None or it will continue to fail self . _port . write_timeout = None