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

This file provides definitions of the SPP implementation. More...

Data Structures

struct  wiced_bt_spp_reg_t
 Following structure is used to register application with wiced_bt_spp library. More...
 

Macros

#define SPP_MAX_PACKET_SIZE   1013
 
#define PORT_PURGE_TXCLEAR   0x01
 
#define PORT_PURGE_RXCLEAR   0x02
 

Typedefs

typedef void(* wiced_bt_spp_connection_up_callback_t )(uint16_t handle, uint8_t *bd_addr)
 The application must implement connection up callback to be called by the library. More...
 
typedef void(* wiced_bt_spp_connection_failed_callback_t )(void)
 Connection failed callback indicates to the application that the library failed to establish RFCOMM connection with the peer device after connection was requested by the wiced_bt_spp_connect call. More...
 
typedef void(* wiced_bt_spp_service_not_found_callback_t )(void)
 Service not found callback indicates wiced_bt_spp_connect call requested to establish connection to a device which is currently not present, or which is not running SPP service. More...
 
typedef void(* wiced_bt_spp_connection_down_callback_t )(uint16_t handle)
 Connection Down callback indicates that an active session has been terminated. More...
 
typedef wiced_bool_t(* wiced_bt_spp_rx_data_callback_t )(uint16_t handle, uint8_t *data, uint32_t data_len)
 Rx Data callback passed to the application data received over the SPP session. More...
 

Functions

wiced_result_t wiced_bt_spp_startup (wiced_bt_spp_reg_t *p_reg)
 Function wiced_bt_spp_startup. More...
 
wiced_result_t wiced_bt_spp_connect (BD_ADDR bd_addr)
 Function wiced_bt_spp_connect. More...
 
wiced_result_t wiced_bt_spp_disconnect (uint16_t handle)
 Function wiced_bt_spp_disconnect. More...
 
wiced_bool_t wiced_bt_spp_send_session_data (uint16_t handle, uint8_t *p_data, uint32_t len)
 Send data over the established External Accessory connection. More...
 
void wiced_bt_spp_rx_flow_enable (uint16_t handle, wiced_bool_t enable)
 SPP application may use this call to disable or reenable the RX data flow. More...
 
wiced_bool_t wiced_bt_spp_can_send_more_data (uint16_t handle)
 Function wiced_bt_spp_can_send_more_data. More...
 
uint8_t wiced_bt_spp_port_purge (uint16_t handle, uint8_t purge_flags)
 SPP application may use this function to discard all the data from the output or input queues of the specified connection. More...
 
uint16_t wiced_bt_spp_rfcomm_get_peer_mtu (uint16_t handle)
 SPP application may use this function to read the peer_mtu size when rfcomm connection made. More...
 
uint8_t wiced_bt_spp_get_connection_state (BD_ADDR bd_addr)
 SPP application may use this function to get the connection state when rfcomm connection made. More...
 

Detailed Description

This file provides definitions of the SPP implementation.