#include <bt_hci_api.h>
For asynchronous use of a function call, pass a pointer to this struct. As soon as the event is SIGNALED, a short response value will be set in the struct. For results of more complex commands (e.g., inquiry), a special struct is used! use NUT-Functions for event in the response struct:
the directory bt/hci-cmds for the different commands that can be used with this struct
Data Fields | |
HANDLE | block |
u_short | cmd_handle |
u_short | ogfocf |
void * | ptr |
long | response |
This is the wait-queue (is set by internal functions, for internal use only!)
The cmd handle (is set by internal functions, for internal use only!)
The ogfocf pair (is set by internal functions, for internal use only!)
void* bt_hci_cmd_response::ptr |
This is a pointer to a result, if it is bigger than short.
The response value of the function if max. short, values <0 represent an error!