Zivid C++ API 2.9.0+4dbba385-1
Defining the Future of 3D Machine Vision
|
Interface for verifying and configuring firmware More...
Typedefs | |
using | ProgressCallback = std::function< void(double, const std::string &)> |
A progress callback function type. More... | |
Functions | |
ZIVID_CORE_EXPORT bool | isUpToDate (const Camera &camera) |
Check if the firmware on the camera is of the version that is required by the API. More... | |
ZIVID_CORE_EXPORT void | update (Camera &camera, const ProgressCallback &progressCallback={}) |
Update camera firmware More... | |
Interface for verifying and configuring firmware
using Zivid::Firmware::ProgressCallback = typedef std::function<void(double, const std::string &)> |
A progress callback function type.
progressPercentage | The progress completion percentage (0 - 100%). |
updateStageDescription | A textual description of the progress stage. |
ZIVID_CORE_EXPORT bool Zivid::Firmware::isUpToDate | ( | const Camera & | camera | ) |
Check if the firmware on the camera is of the version that is required by the API.
camera | A camera to check if firmware is up to date. |
ZIVID_CORE_EXPORT void Zivid::Firmware::update | ( | Camera & | camera, |
const ProgressCallback & | progressCallback = {} |
||
) |
Update camera firmware
If the current API requires a different firmware than what is present on the camera, the firmware will be updated to this version. The function throws if the camera is connected, or if the camera is already up to date. Call isUpToDate first to check if the camera is up to date.
camera | A disconnected camera with out of sync firmware. |
progressCallback | A callback function to track progress of update. |