Library Information¶
The following functions query the host library, and provide information on the library, and on the packet version the library uses.
-
uint32_t vxsdr::get_library_version()¶
Gets the version number of this library.
- Returns
the library version number as 10,000 * major_version + 100 * minor_version + patch_level
Host Control Functions¶
-
double vxsdr::get_host_command_timeout() const¶
Get the current timeout used by the host for commands sent to the device.
- Returns
the timeout in seconds
-
bool vxsdr::set_host_command_timeout(const double timeout_s)¶
Set the timeout used by the host for commands sent to the device. We do not recommend values less than 0.5 seconds.
- Parameters
timeout_s – the timeout in seconds (must be greater than 0 and less than or equal to 3600)
- Returns
true
if the timeout is set,false
if it is out of range