AIROC™ BTSDK v4.2 - Documentation | ||||
Ischoronous(ISOC) Functions. More...
Functions | |
void | wiced_bt_isoc_register_cb (wiced_bt_isoc_cback_t isoc_cb) |
Function wiced_bt_isoc_register_cb. More... | |
void | wiced_bt_isoc_register_data_cb (wiced_bt_iso_rx_cb_t rx_data_cb, wiced_bt_iso_num_complete_cb_t num_complete_cb) |
Register ISO data event callbacks. More... | |
wiced_result_t | wiced_bt_isoc_central_set_cig_param (wiced_bt_ble_cig_param_t *cig_params, void *ctx) |
Function wiced_bt_isoc_central_set_cig_param. More... | |
wiced_result_t | wiced_bt_isoc_central_set_cig_param_test (wiced_bt_ble_cig_param_test_t *cig_params, void *ctx) |
Function wiced_bt_isoc_central_set_cig_param_test. More... | |
wiced_result_t | wiced_bt_isoc_central_create_cis (wiced_bt_isoc_create_cis_param_t *create_cis_param) |
Function wiced_bt_isoc_central_create_cis. More... | |
wiced_result_t | wiced_bt_isoc_create_cis_by_bda (uint8_t cis_count, uint8_t *peer_bda_list, uint16_t *cis_handle_list) |
Function wiced_bt_isoc_create_cis_by_bda. More... | |
wiced_result_t | wiced_bt_isoc_peripheral_accept_cis (uint8_t cig_id, uint8_t cis_id, uint16_t cis_conn_handle, uint8_t src_ase_id, uint8_t sink_ase_id) |
Function wiced_bt_isoc_peripheral_accept_cis. More... | |
wiced_result_t | wiced_bt_isoc_peripheral_reject_cis (uint16_t cis_handle, uint8_t reason) |
Function wiced_bt_isoc_peripheral_reject_cis. More... | |
wiced_result_t | wiced_bt_isoc_peripheral_remove_cig (uint8_t cig_id) |
Function wiced_bt_isoc_peripheral_remove_cig. More... | |
wiced_result_t | wiced_bt_isoc_disconnect_cis (uint16_t cis_handle) |
Function wiced_bt_isoc_disconnect_cis. More... | |
wiced_bool_t | wiced_bt_isoc_is_cis_connected (uint8_t cig_id, uint8_t cis_id) |
Get CIS connection status. More... | |
wiced_bool_t | wiced_bt_isoc_is_cis_connected_by_conn_id (uint16_t cis_conn_id) |
Get CIS connection status by CIS conn id. More... | |
wiced_result_t | wiced_bt_isoc_central_request_peer_sca (wiced_bt_device_address_t peer_bda) |
Function wiced_bt_isoc_central_request_peer_sca. More... | |
wiced_result_t | wiced_bt_isoc_central_remove_cig (uint8_t cig_id) |
Function wiced_bt_isoc_central_remove_cig. More... | |
uint16_t | wiced_bt_isoc_central_get_psn_by_cis_handle (uint16_t handle) |
wiced_bt_isoc_central_get_psn_by_cis_handle More... | |
uint16_t | wiced_bt_isoc_get_psn_by_bis_handle (uint16_t handle) |
wiced_bt_isoc_get_psn_by_bis_handle More... | |
wiced_bool_t | wiced_bt_isoc_is_bis_created (uint16_t bis_conn_handle) |
wiced_bt_isoc_is_bis_created More... | |
wiced_result_t | wiced_bt_isoc_central_create_big (wiced_bt_isoc_create_big_param_t *p_big_param) |
Create BIG with provided parameters. More... | |
wiced_result_t | wiced_bt_isoc_central_terminate_big (uint8_t big_handle, uint8_t reason) |
terminate a BIG identified by the BIG_Handle More... | |
wiced_bool_t | wiced_bt_isoc_peripheral_big_create_sync (wiced_bt_isoc_big_create_sync_t *p_create_sync) |
Sync to the BIS stream described by wiced_bt_isoc_big_create_sync_t. More... | |
wiced_result_t | wiced_bt_isoc_peripheral_big_terminate_sync (uint8_t big_handle) |
Stop synchronizing or cancel the process of synchronizing to the BIG identified by the BIG_Handle. More... | |
wiced_bool_t | wiced_bt_isoc_remove_data_path (uint16_t conn_hdl, wiced_bool_t is_cis, wiced_bt_isoc_data_path_bit_t data_path_dir_bitfield) |
Remove data path setup for a CIS/BIS. More... | |
wiced_bool_t | wiced_bt_isoc_is_data_path_active (uint8_t cig_id, uint8_t cis_id, wiced_bt_isoc_data_path_direction_t data_path_dir) |
Get status of the ISO CIS/BIS data path. More... | |
void | wiced_bt_isoc_update_cis_conn_handle (uint8_t cig_id, uint8_t cis_id, uint16_t cis_conn_handle) |
uint16_t | wiced_bt_isoc_get_cis_conn_handle (uint8_t cig_id, uint8_t cis_id) |
wiced_bool_t | wiced_bt_isoc_setup_data_path (uint16_t conn_hdl, wiced_bool_t is_cis, wiced_bt_isoc_data_path_direction_t data_path_dir, wiced_bt_isoc_data_path_id_t data_path_id, uint32_t controller_delay, uint8_t csc_length, uint8_t *csc) |
Can be invoked twice per connection handle (once per direction) Supports only HCI for datapath and Does not support configuring codec in the controller. More... | |
wiced_bool_t | wiced_bt_isoc_configure_data_path (wiced_bt_isoc_data_path_direction_t data_path_dir, wiced_bt_isoc_data_path_id_t data_path_id) |
Ischoronous(ISOC) Functions.
wiced_result_t wiced_bt_isoc_central_create_big | ( | wiced_bt_isoc_create_big_param_t * | p_big_param | ) |
Create BIG with provided parameters.
p_big_param | Number of BIS, SDU Interval, Packing, Framing |
wiced_result_t wiced_bt_isoc_central_create_cis | ( | wiced_bt_isoc_create_cis_param_t * | create_cis_param | ) |
Function wiced_bt_isoc_central_create_cis.
This API is invoked to create one or more CIS channels
[in] | cis_count | : Number of elements in CIS handle list and ACL handle list. These lists must be of the same length |
[in] | cis_handle_list | : List of connection handles of the cis to be established |
[in] | acl_handle_list | : ACL connection handle associated with the cis handles. The ith acl handle corresponds to the ith cis handle, etc. |
Note : Once CIS is establish WICED_BLE_ISOC_CIS_ESTABLISHED event will be received in registered application callback.
uint16_t wiced_bt_isoc_central_get_psn_by_cis_handle | ( | uint16_t | handle | ) |
wiced_bt_isoc_central_get_psn_by_cis_handle
[in] | handle | : CIS handle |
wiced_result_t wiced_bt_isoc_central_remove_cig | ( | uint8_t | cig_id | ) |
Function wiced_bt_isoc_central_remove_cig.
Remove given CIG
[in] | cig_id | : CIG ID |
wiced_result_t wiced_bt_isoc_central_request_peer_sca | ( | wiced_bt_device_address_t | peer_bda | ) |
Function wiced_bt_isoc_central_request_peer_sca.
Request for Slave Clock Accuracy
[in] | peer_bda | : Peer Bluetooth Address |
Note : WICED_BLE_ISOC_SLAVE_CLOCK_ACCURACY event will be received in registered application callback.
wiced_result_t wiced_bt_isoc_central_set_cig_param | ( | wiced_bt_ble_cig_param_t * | cig_params, |
void * | ctx | ||
) |
Function wiced_bt_isoc_central_set_cig_param.
Used by a master’s Host to set the parameters of one or more CISes that are associated with a CIG in the Controller. If none of the CISes in that CIG have been created, this command may also be used to modify or add CIS(s) to that CIG.
[in] | cig_params | : CIG parameter (wiced_bt_ble_cig_param_t) |
[in] | ctx | : pointer to application data that will be given back to application through the WICED_BLE_ISOC_SET_CIG_CMD_COMPLETE event |
wiced_result_t wiced_bt_isoc_central_set_cig_param_test | ( | wiced_bt_ble_cig_param_test_t * | cig_params, |
void * | ctx | ||
) |
Function wiced_bt_isoc_central_set_cig_param_test.
Command should only be used for testing purposes only.
Used by a master’s Host to set the parameters of one or more CISes that are associated with a CIG in the Controller. If none of the CISes in that CIG have been created, this command may also be used to modify or add CIS(s) to that CIG.
[in] | cig_params | : CIG parameter (wiced_bt_ble_cig_param_t) |
[in] | ctx | : pointer to application data that will be given back to application through the WICED_BLE_ISOC_SET_CIG_CMD_COMPLETE event |
wiced_result_t wiced_bt_isoc_central_terminate_big | ( | uint8_t | big_handle, |
uint8_t | reason | ||
) |
terminate a BIG identified by the BIG_Handle
big_handle | Used to identify the BIG |
reason | Reason the BIG is terminated. |
wiced_result_t wiced_bt_isoc_create_cis_by_bda | ( | uint8_t | cis_count, |
uint8_t * | peer_bda_list, | ||
uint16_t * | cis_handle_list | ||
) |
Function wiced_bt_isoc_create_cis_by_bda.
Create CIS (Connected Isochronous Stream) connection
[in] | cis_count | : Number of elements in Peer BDA list and CIS handle list. |
[in] | peer_bda_list | : Peer Bluetooth Address List |
[in] | cis_handle_list | : CIS handles List |
Note : Once CIS is establish WICED_BLE_ISOC_CIS_ESTABLISHED event will be received in registered application callback.
wiced_result_t wiced_bt_isoc_disconnect_cis | ( | uint16_t | cis_handle | ) |
Function wiced_bt_isoc_disconnect_cis.
Disconnect CIS (Connected Isochronous Stream) connection
[in] | cis_handle | : CIS handle |
Note : Once CIS is disconnected WICED_BLE_ISOC_CIS_DISCONNECTED event will be received in registered application callback.
uint16_t wiced_bt_isoc_get_cis_conn_handle | ( | uint8_t | cig_id, |
uint8_t | cis_id | ||
) |
cig_id | CIG identifier |
cis_id | CIS identifier |
uint16_t wiced_bt_isoc_get_psn_by_bis_handle | ( | uint16_t | handle | ) |
wiced_bt_isoc_get_psn_by_bis_handle
[in] | handle | : BIS handle |
wiced_bool_t wiced_bt_isoc_is_bis_created | ( | uint16_t | bis_conn_handle | ) |
wiced_bt_isoc_is_bis_created
[in] | handle | : BIS Connection handle |
wiced_bool_t wiced_bt_isoc_is_cis_connected | ( | uint8_t | cig_id, |
uint8_t | cis_id | ||
) |
Get CIS connection status.
cig_id | CIG identifier |
cis_id | CIS identifier |
wiced_bool_t wiced_bt_isoc_is_cis_connected_by_conn_id | ( | uint16_t | cis_conn_id | ) |
Get CIS connection status by CIS conn id.
cis_conn_id | CIS conn id |
wiced_bool_t wiced_bt_isoc_is_data_path_active | ( | uint8_t | cig_id, |
uint8_t | cis_id, | ||
wiced_bt_isoc_data_path_direction_t | data_path_dir | ||
) |
Get status of the ISO CIS/BIS data path.
cig_id | CIG identifier |
cis_id | CIS identifier |
data_path_dir | INPUT/OUTPUT see #wiced_bt_isoc_data_path_direction_t |
wiced_result_t wiced_bt_isoc_peripheral_accept_cis | ( | uint8_t | cig_id, |
uint8_t | cis_id, | ||
uint16_t | cis_conn_handle, | ||
uint8_t | src_ase_id, | ||
uint8_t | sink_ase_id | ||
) |
Function wiced_bt_isoc_peripheral_accept_cis.
Accept CIS (Connected Isochronous Stream) connection request Slave should call this API on receiving WICED_BLE_ISOC_CIS_REQUEST event in registered application callback
[in] | cis_handle | : CIS handle |
Note : Once CIS is establish WICED_BLE_ISOC_CIS_ESTABLISHED event will be received in registered application callback.
wiced_bool_t wiced_bt_isoc_peripheral_big_create_sync | ( | wiced_bt_isoc_big_create_sync_t * | p_create_sync | ) |
Sync to the BIS stream described by wiced_bt_isoc_big_create_sync_t.
p_create_sync | sync_handle, list of BIS indices |
wiced_result_t wiced_bt_isoc_peripheral_big_terminate_sync | ( | uint8_t | big_handle | ) |
Stop synchronizing or cancel the process of synchronizing to the BIG identified by the BIG_Handle.
big_handle | Used to identify the BIG |
wiced_result_t wiced_bt_isoc_peripheral_reject_cis | ( | uint16_t | cis_handle, |
uint8_t | reason | ||
) |
Function wiced_bt_isoc_peripheral_reject_cis.
Reject CIS (Connected Isochronous Stream) connection request Slave should call this API on receiving WICED_BLE_ISOC_CIS_REQUEST event in registered application callback
[in] | cis_handle | : CIS handle |
[in] | reason | : Reject Reason |
wiced_result_t wiced_bt_isoc_peripheral_remove_cig | ( | uint8_t | cig_id | ) |
Function wiced_bt_isoc_peripheral_remove_cig.
Remove CIG (Connected Isochronous Group) Slave should call this API on receiving WICED_BLE_ISOC_CIS_DISCONNECTED event in registered application callback and if ASCS State is Releasing
[in] | cig_id | : CIG ID |
void wiced_bt_isoc_register_cb | ( | wiced_bt_isoc_cback_t | isoc_cb | ) |
Function wiced_bt_isoc_register_cb.
ISOC Register event callback handler
[in] | isoc_cb | : ISOC event callback |
void wiced_bt_isoc_register_data_cb | ( | wiced_bt_iso_rx_cb_t | rx_data_cb, |
wiced_bt_iso_num_complete_cb_t | num_complete_cb | ||
) |
Register ISO data event callbacks.
rx_data_cb | Callback upon receiving ISO data |
num_complete_cb | Callback after transmitting ISO data |
wiced_bool_t wiced_bt_isoc_remove_data_path | ( | uint16_t | conn_hdl, |
wiced_bool_t | is_cis, | ||
wiced_bt_isoc_data_path_bit_t | data_path_dir_bitfield | ||
) |
Remove data path setup for a CIS/BIS.
conn_hdl | CIS/BIS Connection handle |
is_cis | TRUE if CIS connection handle is provided |
data_path_dir_bitfield | see #wiced_bt_isoc_data_path_bit_t bit 0: Remove Input data path bit 1: Remove output data path |
wiced_bool_t wiced_bt_isoc_setup_data_path | ( | uint16_t | conn_hdl, |
wiced_bool_t | is_cis, | ||
wiced_bt_isoc_data_path_direction_t | data_path_dir, | ||
wiced_bt_isoc_data_path_id_t | data_path_id, | ||
uint32_t | controller_delay, | ||
uint8_t | csc_length, | ||
uint8_t * | csc | ||
) |
Can be invoked twice per connection handle (once per direction) Supports only HCI for datapath and Does not support configuring codec in the controller.
conn_hdl | CIS/BIS Connection handle |
is_cis | TRUE if CIS connection handle is provided |
data_path_dir | see #wiced_bt_isoc_data_path_direction_t |
data_path_id | see #wiced_bt_isoc_data_path_id_t |
controller_delay | select a suitable Controller_Delay value from the range of values provided by the HCI_Read_Local_Supported_Controller_Delay command |
void wiced_bt_isoc_update_cis_conn_handle | ( | uint8_t | cig_id, |
uint8_t | cis_id, | ||
uint16_t | cis_conn_handle | ||
) |
cig_id | CIG identifier |
cis_id | CIS identifier |