Mercurial > public > ostc_companion
comparison HardwareOperations.h @ 5:115cfa4a3239 default tip
Added icon upload function for OSTC 4/5
For the upload the same process as the one for the firmware update is used => CRC functionality has been copied from the ostc_pack SW
| author | Ideenmodellierer |
|---|---|
| date | Tue, 30 Dec 2025 21:41:02 +0100 |
| parents | 0b3630a29ad8 |
| children |
comparison
equal
deleted
inserted
replaced
| 4:e30f00f760d3 | 5:115cfa4a3239 |
|---|---|
| 164 /// \brief Features supported by OSTC Companion on the connected device. | 164 /// \brief Features supported by OSTC Companion on the connected device. |
| 165 /// | 165 /// |
| 166 /// Each driver (instance of this class) is requested to tell *Companion* | 166 /// Each driver (instance of this class) is requested to tell *Companion* |
| 167 /// what are the supported command. | 167 /// what are the supported command. |
| 168 /// | 168 /// |
| 169 enum CompanionFeatures { | 169 enum CompanionFeature { |
| 170 PARAMETERS = (1<<0), ///< Download/Edit/Upload various parameters. | 170 PARAMETERS = (1<<0), ///< Download/Edit/Upload various parameters. |
| 171 DATE = (1<<1), ///< Set date & time. | 171 DATE = (1<<1), ///< Set date & time. |
| 172 NAME = (1<<2), ///< Set custom text displayed on main screen. | 172 NAME = (1<<2), ///< Set custom text displayed on main screen. |
| 173 ICON = (1<<3), ///< Set custom image displayed on main screen. | 173 ICON = (1<<3), ///< Set custom image displayed on main screen. |
| 174 DUMPSCREEN = (1<<4), ///< Makes copy of current screen. | 174 DUMPSCREEN = (1<<4), ///< Makes copy of current screen. |
| 177 CCR_DIVE = (1<<7), ///< Computes deco stops for rebreather dives. | 177 CCR_DIVE = (1<<7), ///< Computes deco stops for rebreather dives. |
| 178 BLUETOOTH = (1<<8), ///< Use Bluetooh communication (instead of USB) | 178 BLUETOOTH = (1<<8), ///< Use Bluetooh communication (instead of USB) |
| 179 VPM_MODEL = (1<<9), ///< Also propose VPM deco stops. | 179 VPM_MODEL = (1<<9), ///< Also propose VPM deco stops. |
| 180 SIGNAL_CHECK = (1<<10) ///< Echo signal quality for bluetooth computer | 180 SIGNAL_CHECK = (1<<10) ///< Echo signal quality for bluetooth computer |
| 181 }; | 181 }; |
| 182 | 182 Q_DECLARE_FLAGS(CompanionFeatures, CompanionFeature) |
| 183 /// \brief Tells what is supported for a given computer. | 183 /// \brief Tells what is supported for a given computer. |
| 184 virtual CompanionFeatures supported() const = 0; | 184 virtual CompanionFeatures supported() const = 0; |
| 185 | 185 |
| 186 //------------------------------------------------------------------------ | 186 //------------------------------------------------------------------------ |
| 187 /// \brief Length of the custom text displayed by the device. | 187 /// \brief Length of the custom text displayed by the device. |
