Driver SDK  1.6
Functions
Device Information

Functions

BBT_SDK_API int bbt_driver_get_hw_version (const bbt_driver_t *driver, unsigned short *major, unsigned short *minor)
 Gets the hardware version of the device. More...
 
BBT_SDK_API int bbt_driver_get_fw_version (const bbt_driver_t *driver, unsigned short *major, unsigned short *minor)
 Gets the major and minor firmware version of the device. More...
 
BBT_SDK_API unsigned short bbt_driver_get_frequency (const bbt_driver_t *driver)
 Gets the number of data messages sent by the device each second. More...
 

Detailed Description

Functions to gather read only device information

unsigned short hw_major = 0, hw_minor = 0, fw_major = 0, fw_minor = 0;
if (bbt_driver_get_hw_version(driver, &hw_major, &hw_minor))
std::cout << "Hardware version: " << hw_major << "." << hw_minor << "\n";
if (bbt_driver_get_fw_version(driver, &fw_major, &fw_minor))
std::cout << "Firmware version: " << fw_major << "." << fw_minor << "\n";
std::cout << "Frequency: " << bbt_driver_get_frequency(driver) << " messages per second\n";
BBT_SDK_API int bbt_driver_get_hw_version(const bbt_driver_t *driver, unsigned short *major, unsigned short *minor)
Gets the hardware version of the device.
BBT_SDK_API int bbt_driver_get_fw_version(const bbt_driver_t *driver, unsigned short *major, unsigned short *minor)
Gets the major and minor firmware version of the device.
BBT_SDK_API unsigned short bbt_driver_get_frequency(const bbt_driver_t *driver)
Gets the number of data messages sent by the device each second.

Function Documentation

◆ bbt_driver_get_hw_version()

BBT_SDK_API int bbt_driver_get_hw_version ( const bbt_driver_t driver,
unsigned short *  major,
unsigned short *  minor 
)

Gets the hardware version of the device.

Parameters
[in]driverThe driver object
[out]majorThe major hardware version number.
[out]minorThe minor hardware version number.
Returns
True on success.
Precondition
The object driver must be not NULL
The driver must be connected (bbt_driver_is_connected() == true)
Examples
example/main.cpp.

◆ bbt_driver_get_fw_version()

BBT_SDK_API int bbt_driver_get_fw_version ( const bbt_driver_t driver,
unsigned short *  major,
unsigned short *  minor 
)

Gets the major and minor firmware version of the device.

Parameters
[in]driverThe driver object
[out]majorThe major firmware version number
[out]minorThe minor firmware version number
Returns
True on success.
Precondition
The object driver must be not NULL
The driver must be connected (bbt_driver_is_connected() == true)
Examples
example/main.cpp.

◆ bbt_driver_get_frequency()

BBT_SDK_API unsigned short bbt_driver_get_frequency ( const bbt_driver_t driver)

Gets the number of data messages sent by the device each second.

Parameters
[in]driverThe driver object
Precondition
The object driver must be not NULL
The driver must be connected (bbt_driver_is_connected() == true)
Returns
The message frequency in Hertzs
Examples
example/main.cpp.