|
ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
|
This application demonstrates how to update the firmware of devices using a .guf file. More...
#include <cstddef>#include <iostream>#include <iomanip>#include <peak/peak.hpp>Classes | |
| struct | DeviceUpdateInformation |
Macros | |
| #define | VERSION "1.0.1" |
Functions | |
| std::vector< DeviceUpdateInformation > | FindCompatibleDevices (const peak::DeviceManager &deviceManager, peak::core::FirmwareUpdater &updater, const char *gufPath) |
Find connected devices that can be updated using the provided .guf file at gufPath. | |
| int | main (int argc, const char *argv[]) |
| void | RegisterObserverCallbacks (peak::core::FirmwareUpdateProgressObserver &observer, const DeviceUpdateInformation &update) |
| Register message callbacks on the update observer, so we get notified about firmware update status changes. | |
| void | wait_for_enter () |
This application demonstrates how to update the firmware of devices using a .guf file.
Copyright (C) 2024 - 2025, IDS Imaging Development Systems GmbH.
The information in this document is subject to change without notice and should not be construed as a commitment by IDS Imaging Development Systems GmbH. IDS Imaging Development Systems GmbH does not assume any responsibility for any errors that may appear in this document.
This document, or source code, is provided solely as an example of how to utilize IDS Imaging Development Systems GmbH software libraries in a sample application. IDS Imaging Development Systems GmbH does not assume any responsibility for the use or reliability of any portion of this document.
General permission to copy or modify is hereby granted.
| #define VERSION "1.0.1" |
| std::vector< DeviceUpdateInformation > FindCompatibleDevices | ( | const peak::DeviceManager & | deviceManager, |
| peak::core::FirmwareUpdater & | updater, | ||
| const char * | gufPath ) |
Find connected devices that can be updated using the provided .guf file at gufPath.
| int main | ( | int | argc, |
| const char * | argv[] ) |
| void RegisterObserverCallbacks | ( | peak::core::FirmwareUpdateProgressObserver & | observer, |
| const DeviceUpdateInformation & | update ) |
Register message callbacks on the update observer, so we get notified about firmware update status changes.
| void wait_for_enter | ( | ) |
\bief Wait for enter function
The function waits for the user pressing the enter key.
This function is called from main() whenever the program exits, either in consequence of an error or after normal termination.