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