3.0.0.0R11
Software Development Kit
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
wiced_bt_sco.h File Reference

Typedefs

typedef void( wiced_bt_sco_data_cback_t )(uint16_t sco_index, BT_HDR *sco_data, wiced_bt_sco_data_packet_status_t status)
 
typedef uint8_t wiced_bt_sco_data_packet_status_t
 
typedef uint8_t wiced_bt_sco_esco_codec_setting_id_t
 

Enumerations

enum  wiced_bt_sco_data_packet_status_e { WICED_BT_SCO_DATA_CORRECT = 0, WICED_BT_SCO_DATA_PARTIAL_ERROR, WICED_BT_SCO_DATA_NONE, WICED_BT_SCO_DATA_PARTIAL_LOST }
 
enum  wiced_bt_sco_esco_codec_setting_id_e { WICED_BT_SCO_ESCO_SETTING_ID_CVSD = 0, WICED_BT_SCO_ESCO_SETTING_ID_MSBC_T2 }
 

Functions

wiced_bt_dev_status_t wiced_bt_sco_accept_connection (uint16_t sco_index, uint8_t hci_status, wiced_bt_sco_esco_codec_setting_id_t esco_set_id)
 
wiced_bt_dev_status_t wiced_bt_sco_create_as_acceptor (uint16_t *p_sco_index)
 
wiced_bt_dev_status_t wiced_bt_sco_create_as_initiator (wiced_bt_device_address_t bd_addr, uint16_t *p_sco_index, wiced_bt_sco_esco_codec_setting_id_t esco_set_id)
 
void * wiced_bt_sco_get_buffer_pool (void)
 
wiced_bt_dev_status_t wiced_bt_sco_remove (uint16_t sco_index)
 
wiced_bt_dev_status_t wiced_bt_sco_set_buffer_pool (uint16_t buffer_size, uint16_t buffer_count)
 
wiced_bt_dev_status_t wiced_bt_sco_set_data_callback (wiced_bt_sco_data_cback_t *p_cback)
 
wiced_bt_dev_status_t wiced_bt_sco_write_data (uint16_t sco_index, uint8_t *sco_data, uint16_t data_length)
 

Detailed Description

Bluetooth Synchronous Connection Oriented Channel Application Programming Interface

Typedef Documentation

typedef void( wiced_bt_sco_data_cback_t)(uint16_t sco_index, BT_HDR *sco_data, wiced_bt_sco_data_packet_status_t status)

Callback wiced_bt_sco_data_cback_t

SCO data packet callback (registered with wiced_bt_sco_set_data_callback)

Parameters
sco_index: SCO Index
sco_data: pointer to BT_HDR struct containing SCO data.
status: one of the following values - 0 = WICED_BT_SCO_DATA_CORRECT, 1 = WICED_BT_SCO_DATA_PARTIAL_ERROR, 2 = WICED_BT_SCO_DATA_NONE, 3 = WICED_BT_SCO_DATA_PARTIAL_LOST
Returns

SCO Data Packet Status (See wiced_bt_sco_data_packet_status_e)

eSCO Codec Settings ID (See wiced_bt_sco_esco_codec_setting_id_e)

Enumeration Type Documentation

Enumerator
WICED_BT_SCO_DATA_CORRECT 

Correctly received SCO data

WICED_BT_SCO_DATA_PARTIAL_ERROR 

SCO data with possible errors

WICED_BT_SCO_DATA_NONE 

No SCO data received

WICED_BT_SCO_DATA_PARTIAL_LOST 

SCO data partially lost

Enumerator
WICED_BT_SCO_ESCO_SETTING_ID_CVSD 

eSCO setting for CVSD

WICED_BT_SCO_ESCO_SETTING_ID_MSBC_T2 

eSCO setting for mSBC T2