Infineon Logo AIROC BTSDK v4.0 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
wiced_bt_sco.h File Reference

Bluetooth Synchronous Connection Oriented Channel Application Programming Interface. More...

Data Structures

struct  wiced_bt_sco_params_t
 Subset for the enhanced setup/accept synchronous connection paramters. More...
 
struct  wiced_bt_voice_path_setup_t
 SCO path config. More...
 

Macros

#define WICED_BT_SCO_CONNECTION_ACCEPT   0x00
 
#define WICED_BT_SCO_CONNECTION_REJECT_RESOURCES   0x0D
 
#define WICED_BT_SCO_CONNECTION_REJECT_SECURITY   0x0E
 
#define WICED_BT_SCO_CONNECTION_REJECT_DEVICE   0x0F
 
#define WICED_INVALID_SCO_INDEX   0xFFFF
 
#define WICED_SCO_LINK_ALL_PKT_MASK   0x003F
 
#define WICED_SCO_LINK_ONLY_MASK   0x0007
 
#define WICED_SCO_PKT_TYPES_MASK_HV3   0x0004
 
#define WICED_SCO_PKT_TYPES_MASK_EV3   0x0008
 
#define WICED_SCO_PKT_TYPES_MASK_EV4   0x0010
 
#define WICED_SCO_PKT_TYPES_MASK_EV5   0x0020
 
#define WICED_SCO_PKT_TYPES_MASK_NO_2_EV3   0x0040
 
#define WICED_SCO_PKT_TYPES_MASK_NO_3_EV3   0x0080
 
#define WICED_SCO_PKT_TYPES_MASK_NO_2_EV5   0x0100
 
#define WICED_SCO_PKT_TYPES_MASK_NO_3_EV5   0x0200
 
#define WICED_BT_SCO_DATA_CB_GET_LENGTH(ltch_len)   ((ltch_len>>8)&0xff)
 SCO data callback length.
 

Typedefs

typedef void( wiced_bt_sco_data_cb_t )(uint32_t ltch_len, uint8_t *p_data)
 Call back function for pcm data transfer, ltch_len = (length)<<8|(sco_channel)
 

Enumerations

enum  wiced_bt_sco_route_path_t { WICED_BT_SCO_OVER_PCM = 0 }
 SCO route path. More...
 

Functions

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_params_t *p_params)
 Function wiced_bt_sco_create_as_initiator. More...
 
wiced_bt_dev_status_t wiced_bt_sco_create_as_acceptor (uint16_t *p_sco_index)
 Function wiced_bt_sco_create_as_acceptor. More...
 
wiced_bt_dev_status_t wiced_bt_sco_create_as_acceptor_with_specific_ag (wiced_bt_device_address_t ag_addr, uint16_t *p_sco_index)
 Function wiced_bt_sco_create_as_acceptor. More...
 
wiced_bt_dev_status_t wiced_bt_sco_remove (uint16_t sco_index)
 Function wiced_bt_sco_remove. More...
 
void wiced_bt_sco_accept_connection (uint16_t sco_index, uint8_t hci_status, wiced_bt_sco_params_t *p_params)
 Function wiced_bt_sco_accept_connection. More...
 
wiced_bt_dev_status_t wiced_bt_sco_setup_voice_path (wiced_bt_voice_path_setup_t *pData)
 Function wiced_bt_sco_setup_voice_path. More...
 
uint16_t wiced_bt_sco_output_stream (uint16_t sco_index, uint8_t *p_pcmsrc, uint16_t len)
 Function wiced_bt_sco_output_stream. More...
 
void wiced_bt_sco_turn_off_pcm_clock (void)
 Function wiced_bt_sco_turn_off_pcm_clock. More...
 

Detailed Description

Bluetooth Synchronous Connection Oriented Channel Application Programming Interface.