bRAWcap 1.0.1
b-plus Technologies - Ethernet Performance Transmitter Receiver
|
Contains generic types and functions of bRAWcap. More...
Macros | |
#define | BRAWCAP_HANDLES_PER_ADAPTER_MAX 5 |
Specifies the maximum supported bRAWcap handles per adapter. | |
Typedefs | |
typedef UINT32 | brawcap_queue_size_t |
The number of packets which can be (temporary) buffered by the bRAWcap driver queue. | |
typedef struct _brawcap_handle | brawcap_handle_t |
A bRAWcap handle. | |
Functions | |
brawcap_status_t | brawcap_open (const brawcap_adapter_name_t name, brawcap_handle_t **const pHandle) |
Opens a new bRAWcap handle on the adapter, specified by it´s name. | |
brawcap_status_t | brawcap_close (brawcap_handle_t *pHandle) |
Closes the specified bRAWcap handle. | |
Contains generic types and functions of bRAWcap.
Everything in here is not part of any specific module, instead those types and functions are relevant for many other modules. It contains for example functions to open/create and close a bRAWcap handle.
List of examples:
#define BRAWCAP_HANDLES_PER_ADAPTER_MAX 5 |
#include <brawcap_types_shared.h>
Specifies the maximum supported bRAWcap handles per adapter.
typedef UINT32 brawcap_queue_size_t |
#include <brawcap_types_shared.h>
The number of packets which can be (temporary) buffered by the bRAWcap driver queue.
The total number of packets which can be buffered by the driver queue is limited to:
typedef struct _brawcap_handle brawcap_handle_t |
#include <brawcap_types_um.h>
A bRAWcap handle.
It can be created/opened and deleted/closed. In general every function which communicates with the bRAWcap driver requires a open bRAWcap handle.
brawcap_status_t brawcap_open | ( | const brawcap_adapter_name_t | name, |
brawcap_handle_t **const | pHandle | ||
) |
#include <brawcap.h>
Opens a new bRAWcap handle on the adapter, specified by it´s name.
The created/opened bRAWcap handle should be saved by the user application and used for calling further bRAWcap functions. Each opened handle shall be closed, if it is not required anymore.
[in] | name | The name of the adapter to open a bRAWcap handle. |
[out] | pHandle | Will contain the opened bRAWcap handle, afterwards. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_INVALID_PARAM | The specified name does not represent a adapter name (GUID). |
BRAWCAP_STATUS_ERROR_NOT_FOUND | Specified adapter name not found/not available. |
BRAWCAP_STATUS_ERROR_DRIVER_NOT_AVAILABLE | bRAWcap driver is not running on specified adapter. |
BRAWCAP_STATUS_ERROR_DRIVER_IO_FAILED | Communicating with bRAWcap driver failed. |
brawcap_status_t brawcap_close | ( | brawcap_handle_t * | pHandle | ) |
#include <brawcap.h>
Closes the specified bRAWcap handle.
The user application should not use the specified handle anymore, after calling this function.
[in] | pHandle | bRAWcap handle to be closed. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_FAILED | A system error occurred. |