Changeset View
Changeset View
Standalone View
Standalone View
src/core/atcore.h
Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Line(s) | 84 | public: | |||
---|---|---|---|---|---|
139 | * @return the port atcore is connected to or empty string if none | 139 | * @return the port atcore is connected to or empty string if none | ||
140 | */ | 140 | */ | ||
141 | QString connectedPort() const; | 141 | QString connectedPort() const; | ||
142 | 142 | | |||
143 | /** | 143 | /** | ||
144 | * @brief Initialize a connection to \p port at a speed of \p baud <br /> | 144 | * @brief Initialize a connection to \p port at a speed of \p baud <br /> | ||
145 | * @param port: the port to initialize | 145 | * @param port: the port to initialize | ||
146 | * @param baud: the baud of the port | 146 | * @param baud: the baud of the port | ||
147 | * @param disableROC: atcore will attempt to disable reset on connect for this device. | ||||
147 | * @return True is connection was successful | 148 | * @return True is connection was successful | ||
148 | * @sa serialPorts(),serial(),closeConnection() | 149 | * @sa serialPorts(),serial(),closeConnection() | ||
149 | */ | 150 | */ | ||
150 | Q_INVOKABLE bool initSerial(const QString &port, int baud); | 151 | Q_INVOKABLE bool initSerial(const QString &port, int baud, bool disableROC = false); | ||
151 | 152 | | |||
152 | /** | 153 | /** | ||
153 | * @brief Returns a list of valid baud speeds | 154 | * @brief Returns a list of valid baud speeds | ||
154 | */ | 155 | */ | ||
155 | QStringList portSpeeds() const; | 156 | QStringList portSpeeds() const; | ||
156 | 157 | | |||
157 | /** | 158 | /** | ||
158 | * @brief Main access to the serialLayer | 159 | * @brief Main access to the serialLayer | ||
▲ Show 20 Lines • Show All 337 Lines • ▼ Show 20 Line(s) | 475 | private slots: | |||
496 | void findFirmware(const QByteArray &message); | 497 | void findFirmware(const QByteArray &message); | ||
497 | 498 | | |||
498 | /** | 499 | /** | ||
499 | * @brief Search for new serial ports | 500 | * @brief Search for new serial ports | ||
500 | */ | 501 | */ | ||
501 | void locateSerialPort(); | 502 | void locateSerialPort(); | ||
502 | 503 | | |||
503 | /** | 504 | /** | ||
505 | * @brief Attempts to disableResetOnConnect for the selected port. | ||||
506 | * @param port: the port. | ||||
507 | */ | ||||
508 | void disableResetOnConnect(const QString &port); | ||||
509 | | ||||
510 | /** | ||||
504 | * @brief Send request to the printer for the sd card file list. | 511 | * @brief Send request to the printer for the sd card file list. | ||
505 | */ | 512 | */ | ||
506 | void getSDFileList(); | 513 | void getSDFileList(); | ||
507 | 514 | | |||
508 | private: | 515 | private: | ||
509 | /** | 516 | /** | ||
510 | * @brief True if a firmware plugin is loaded | 517 | * @brief True if a firmware plugin is loaded | ||
511 | */ | 518 | */ | ||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |