Device Management Functions.
More...
Device Management Functions.
Function wiced_bt_dev_read_local_addr.
Read the local device address
- Parameters
-
[out] | bd_addr | : Local bd address |
- Returns
- void
wiced_result_t wiced_bt_dev_set_connectability |
( |
uint8_t |
page_mode, |
|
|
uint16_t |
window, |
|
|
uint16_t |
interval |
|
) |
| |
Function wiced_bt_dev_set_connectability.
Set connectablilty
- Note
- The duration (window parameter) must be less than or equal to the interval.
- Parameters
-
[in] | page_mode | : Connectability mode (see wiced_bt_connectability_mode_e) |
[in] | window | : Duration (in 0.625 msec intervals). BTM_DEFAULT_CONN_WINDOW, or range: 0x0012 ~ 0x1000 (11.25 ~ 2560 msecs) |
[in] | interval | : Interval (in 0.625 msec intervals). BTM_DEFAULT_CONN_INTERVAL, or range: 0x0012 ~ 0x1000 (11.25 ~ 2560 msecs) |
- Returns
WICED_BT_SUCCESS: If successful
WICED_BT_ILLEGAL_VALUE: If a bad parameter is detected
WICED_BT_NO_RESOURCES: If could not allocate a message buffer
WICED_BT_WRONG_MODE: If the device is not up
wiced_result_t wiced_bt_dev_set_discoverability |
( |
uint8_t |
inq_mode, |
|
|
uint16_t |
duration, |
|
|
uint16_t |
interval |
|
) |
| |
Function wiced_bt_dev_set_discoverability.
Set discoverability
- Note
- The duration must be less than or equal to the interval.
- Parameters
-
[in] | inq_mode | : Discoverability mode (see wiced_bt_discoverability_mode_e) |
[in] | duration | : Duration (in 0.625 msec intervals). BTM_DEFAULT_DISC_WINDOW, or range: 0x0012 ~ 0x1000 (11.25 ~ 2560 msecs) |
[in] | interval | : Interval (in 0.625 msec intervals). BTM_DEFAULT_DISC_INTERVAL, or range: 0x0012 ~ 0x1000 (11.25 ~ 2560 msecs) |
- Returns
WICED_BT_SUCCESS: If successful
WICED_BT_BUSY: If a setting of the filter is already in progress
WICED_BT_NO_RESOURCES: If couldn't get a memory pool buffer
WICED_BT_ILLEGAL_VALUE: If a bad parameter was detected
WICED_BT_WRONG_MODE: If the device is not up
Function wiced_bt_dev_vendor_specific_command.
Send a vendor specific HCI command to the controller.
- Parameters
-
[in] | opcode | : Opcode of vendor specific command |
[in] | param_len | : Length of parameter buffer |
[in] | p_param_buf | : Parameters |
[in] | p_cback | : Callback for command complete |
- Returns
WICED_BT_SUCCESS : Command sent. Does not expect command complete event. (command complete callback param is NULL)
WICED_BT_PENDING : Command sent. Waiting for command complete event.
WICED_BT_BUSY : Command not sent. Waiting for command complete event for prior command.