AIROC™ BTSDK v4.6 - Documentation | ||||
Functions | |
wiced_result_t | wiced_bt_start_inquiry (wiced_bt_dev_inq_parms_t *p_inqparms, wiced_bt_inquiry_result_cback_t *p_inquiry_result_cback) |
Starts BR/EDR inquiry. More... | |
wiced_result_t | wiced_bt_cancel_inquiry (void) |
Cancels an active inquiry. More... | |
wiced_result_t | wiced_bt_dev_set_advanced_connection_params (wiced_bt_dev_inquiry_scan_result_t *p_inquiry_scan_result) |
Sets advanced connection parameters for subsequent BR/EDR connections (remote clock offset, page scan mode, and other information obtained during inquiry). More... | |
wiced_result_t | wiced_bt_dev_set_discoverability (uint8_t inq_mode, uint16_t duration, uint16_t interval) |
Sets inquiry scan. More... | |
wiced_result_t | wiced_bt_dev_set_connectability (uint8_t page_mode, uint16_t window, uint16_t interval) |
Sets page scan mode settings for BR/EDR. More... | |
wiced_result_t | wiced_bt_dev_set_sniff_mode (wiced_bt_device_address_t remote_bda, uint16_t min_period, uint16_t max_period, uint16_t attempt, uint16_t timeout) |
Sets a connection into Sniff mode. More... | |
wiced_result_t | wiced_bt_dev_cancel_sniff_mode (wiced_bt_device_address_t remote_bda) |
Takes a connection out of Sniff mode. More... | |
wiced_result_t | wiced_bt_dev_set_sniff_subrating (wiced_bt_device_address_t remote_bda, uint16_t max_latency, uint16_t min_remote_timeout, uint16_t min_local_timeout) |
Sets sniff-subrating parameters for an active connection. More... | |
wiced_result_t | wiced_bt_dev_write_eir (uint8_t *p_buff, uint16_t len) |
Writes EIR data to the controller. More... | |
wiced_result_t | wiced_bt_dev_set_afh_channel_classification (const wiced_bt_br_chnl_map_t afh_channel_map) |
Sends the HCI_SET_AFH_CHANNELS command to the BR/EDR controller. More... | |
wiced_result_t | wiced_bt_dev_get_remote_name (wiced_bt_device_address_t bd_addr, wiced_bt_remote_name_cback_t *p_remote_name_result_cback) |
Gets the Bluetooth Friendly name from the remote device. More... | |
wiced_result_t wiced_bt_cancel_inquiry | ( | void | ) |
Cancels an active inquiry.
void |
wiced_result_t wiced_bt_dev_cancel_sniff_mode | ( | wiced_bt_device_address_t | remote_bda | ) |
Takes a connection out of Sniff mode.
Checks if the connection is already in Sniff mode, and if not, the cancel Sniff mode is ignored.
[in] | remote_bda | Peer BD_ADDR to cancel sniff to |
wiced_result_t wiced_bt_dev_get_remote_name | ( | wiced_bt_device_address_t | bd_addr, |
wiced_bt_remote_name_cback_t * | p_remote_name_result_cback | ||
) |
Gets the Bluetooth Friendly name from the remote device.
[in] | bd_addr | Peer BD address |
[in] | p_remote_name_result_cback | remote name result callback |
wiced_result_t wiced_bt_dev_set_advanced_connection_params | ( | wiced_bt_dev_inquiry_scan_result_t * | p_inquiry_scan_result | ) |
Sets advanced connection parameters for subsequent BR/EDR connections (remote clock offset, page scan mode, and other information obtained during inquiry).
If not called, then default connection parameters are used.
[in] | p_inquiry_scan_result | wiced_bt_inquiry_result_cback_t |
wiced_result_t wiced_bt_dev_set_afh_channel_classification | ( | const wiced_bt_br_chnl_map_t | afh_channel_map | ) |
Sends the HCI_SET_AFH_CHANNELS command to the BR/EDR controller.
[in] | afh_channel_map | AFH Host Channel Classification array |
wiced_result_t wiced_bt_dev_set_connectability | ( | uint8_t | page_mode, |
uint16_t | window, | ||
uint16_t | interval | ||
) |
Sets page scan mode settings for BR/EDR.
[in] | page_mode | wiced_bt_connectability_mode_e |
[in] | window | Scan Window (in 0.625 msec increments) Range: 0x0012 ~ 0x1000 (11.25 ~ 2560 msecs) |
[in] | interval | Scan Interval (in 0.625 msec intervals) Range: 0x0012 ~ 0x1000 (11.25 ~ 2560 msecs) |
wiced_result_t wiced_bt_dev_set_discoverability | ( | uint8_t | inq_mode, |
uint16_t | duration, | ||
uint16_t | interval | ||
) |
Sets inquiry scan.
[in] | inq_mode | wiced_bt_discoverability_mode_e |
[in] | duration | Scan Duration (in 0.625 msec increments) Range: 0x0012 ~ 0x1000 (11.25 ~ 2560 msecs) |
[in] | interval | Scan Interval (in 0.625 msec intervals) Range: 0x0012 ~ 0x1000 (11.25 ~ 2560 msecs) |
wiced_result_t wiced_bt_dev_set_sniff_mode | ( | wiced_bt_device_address_t | remote_bda, |
uint16_t | min_period, | ||
uint16_t | max_period, | ||
uint16_t | attempt, | ||
uint16_t | timeout | ||
) |
Sets a connection into Sniff mode.
[in] | remote_bda | Link for which to put into sniff mode |
[in] | min_period | Minimum sniff period |
[in] | max_period | Maximum sniff period |
[in] | attempt | Number of attempts for switching to sniff mode |
[in] | timeout | Timeout for attempting to switch to sniff mode |
wiced_result_t wiced_bt_dev_set_sniff_subrating | ( | wiced_bt_device_address_t | remote_bda, |
uint16_t | max_latency, | ||
uint16_t | min_remote_timeout, | ||
uint16_t | min_local_timeout | ||
) |
Sets sniff-subrating parameters for an active connection.
[in] | remote_bda | Device address of desired ACL connection |
[in] | max_latency | Maximum latency (in 0.625ms units) (range: 0x0002-0xFFFE) |
[in] | min_remote_timeout | Minimum remote timeout |
[in] | min_local_timeout | Minimum local timeout |
wiced_result_t wiced_bt_dev_write_eir | ( | uint8_t * | p_buff, |
uint16_t | len | ||
) |
Writes EIR data to the controller.
[in] | p_buff | Pointer to EIR data |
[in] | len | Length of EIR data |
wiced_result_t wiced_bt_start_inquiry | ( | wiced_bt_dev_inq_parms_t * | p_inqparms, |
wiced_bt_inquiry_result_cback_t * | p_inquiry_result_cback | ||
) |
Starts BR/EDR inquiry.
[in] | p_inqparms | wiced_bt_dev_inq_parms_t |
[in] | p_inquiry_result_cback | inquiry results callback |