|
bRAWcap 1.1.0
b-plus Technologies - Ethernet Performance Transmitter Receiver
|
Types and functions for operating with bRAWcap version(s). More...
Data Structures | |
| struct | brawcap_version_fragments_t |
| Struct containing the separated version parts. More... | |
| union | brawcap_version_t |
| bRAWcap version. More... | |
Functions | |
| brawcap_status_t | brawcap_version_api (brawcap_version_t *const pVersion) |
| Returns loaded bRAWcap library version. | |
| brawcap_status_t | brawcap_version_driver (brawcap_handle_t *const pHandle, brawcap_version_t *const pVersion) |
| Reads current version of loaded bRAWcap driver. | |
Types and functions for operating with bRAWcap version(s).
Here our bRAWcap version structure is defined. This structure allows easy access to each part of the version and due to it´s union the complete value can be used for easy version compares.
There are currently two functions to retrieve a version. One for the version of the loaded library and another one for the version of the loaded bRAWcap driver on the machine.
List of examples:
| struct brawcap_version_fragments_t |
Struct containing the separated version parts.
| union brawcap_version_t |
bRAWcap version.
The version is implemented as a union. The complete member allows easy compare between versions. While the fragments allow easy access to each version part (major, minor, patch, build).
| Data Fields | ||
|---|---|---|
| brawcap_version_fragments_t | fragments |
Separated parts of the version. |
| UINT64 | complete |
Complete version as integer. Use this for comparing versions. |
| brawcap_status_t brawcap_version_api | ( | brawcap_version_t *const | pVersion | ) |
#include <brawcap.h>
Returns loaded bRAWcap library version.
| [out] | pVersion | Will contain the loaded library version, afterwards. |
| Status | Description |
|---|---|
| BRAWCAP_STATUS_SUCCESS | Success. |
| BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the pointer parameters was invalid. |
| brawcap_status_t brawcap_version_driver | ( | brawcap_handle_t *const | pHandle, |
| brawcap_version_t *const | pVersion | ||
| ) |
#include <brawcap.h>
Reads current version of loaded bRAWcap driver.
| [in] | pHandle | bRAWcap handle to read from. |
| [out] | pVersion | Will contain the bRAWcap driver version, afterwards. |
| Status | Description |
|---|---|
| BRAWCAP_STATUS_SUCCESS | Success. |
| BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the pointer parameters was invalid. |
| BRAWCAP_STATUS_ERROR_DRIVER_IO_FAILED | Communicating with bRAWcap driver failed. |