Zivid C++ API 2.9.0+4dbba385-1
Defining the Future of 3D Machine Vision
Typedefs | Functions
Zivid::Firmware Namespace Reference

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...
 

Detailed Description

Interface for verifying and configuring firmware

Typedef Documentation

◆ ProgressCallback

using Zivid::Firmware::ProgressCallback = typedef std::function<void(double, const std::string &)>

A progress callback function type.

Parameters
progressPercentageThe progress completion percentage (0 - 100%).
updateStageDescriptionA textual description of the progress stage.

Function Documentation

◆ isUpToDate()

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.

Parameters
cameraA camera to check if firmware is up to date.

◆ update()

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.

Parameters
cameraA disconnected camera with out of sync firmware.
progressCallbackA callback function to track progress of update.