#include <uhd/image_loader.hpp>
◆ loader_fcn_t
Signature of an image loading function.
This is the function signature for an image loading function. See the declaration of load() for the meaning of these arguments.
This function must return true upon the end of a successful image load or false if no applicable device was found. It may only throw a runtime error under one of three conditions:
- The function finds multiple devices that fit the user's arguments.
- The function has already engaged with a specific device and something goes wrong.
- The user gives arguments that unambiguously lead to a specific device and expect the default image(s) to be loaded, but the specific model of the device cannot be determined beyond a category.
◆ get_recovery_instructions()
static std::string uhd::image_loader::get_recovery_instructions |
( |
const std::string & |
device_type | ) |
|
|
static |
Get the instructions on how to recovery a particular device.
These instructions should be queried if the user interrupts an image loading session, as this will likely leave the device in an unstable state.
- Parameters
-
device_type | the "type=foo" value given in an –args option |
- Returns
- recoverying instructions
◆ load()
Load firmware and/or FPGA onto a device.
- Parameters
-
image_loader_args | arguments to pass into image loading function |
◆ register_image_loader()
static void uhd::image_loader::register_image_loader |
( |
const std::string & |
device_type, |
|
|
const loader_fcn_t & |
loader_fcn, |
|
|
const std::string & |
recovery_instructions |
|
) |
| |
|
static |
Register an image loader.
- Parameters
-
device_type | the "type=foo" value given in an –args option |
loader_fcn | the loader function for the given device |
recovery_instructions | instructions on how to restore a device |
The documentation for this class was generated from the following file: