USB_Host_Shield_2.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Macros
SPP.h File Reference
#include "BTD.h"
Include dependency graph for SPP.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SPP
 

Macros

#define L2CAP_SDP_WAIT   0
 
#define L2CAP_SDP_REQUEST   1
 
#define L2CAP_SDP_SUCCESS   2
 
#define L2CAP_SDP_DONE   3
 
#define L2CAP_DISCONNECT_RESPONSE   4
 
#define L2CAP_RFCOMM_WAIT   0
 
#define L2CAP_RFCOMM_REQUEST   1
 
#define L2CAP_RFCOMM_SUCCESS   2
 
#define L2CAP_RFCOMM_DONE   3
 
#define L2CAP_FLAG_CONNECTION_SDP_REQUEST   0x001
 
#define L2CAP_FLAG_CONNECTION_RFCOMM_REQUEST   0x002
 
#define L2CAP_FLAG_CONFIG_SDP_REQUEST   0x004
 
#define L2CAP_FLAG_CONFIG_RFCOMM_REQUEST   0x008
 
#define L2CAP_FLAG_CONFIG_SDP_SUCCESS   0x010
 
#define L2CAP_FLAG_CONFIG_RFCOMM_SUCCESS   0x020
 
#define L2CAP_FLAG_DISCONNECT_SDP_REQUEST   0x040
 
#define L2CAP_FLAG_DISCONNECT_RFCOMM_REQUEST   0x080
 
#define L2CAP_FLAG_DISCONNECT_RESPONSE   0x100
 
#define l2cap_connection_request_sdp_flag   (l2cap_event_flag & L2CAP_FLAG_CONNECTION_SDP_REQUEST)
 
#define l2cap_connection_request_rfcomm_flag   (l2cap_event_flag & L2CAP_FLAG_CONNECTION_RFCOMM_REQUEST)
 
#define l2cap_config_request_sdp_flag   (l2cap_event_flag & L2CAP_FLAG_CONFIG_SDP_REQUEST)
 
#define l2cap_config_request_rfcomm_flag   (l2cap_event_flag & L2CAP_FLAG_CONFIG_RFCOMM_REQUEST)
 
#define l2cap_config_success_sdp_flag   (l2cap_event_flag & L2CAP_FLAG_CONFIG_SDP_SUCCESS)
 
#define l2cap_config_success_rfcomm_flag   (l2cap_event_flag & L2CAP_FLAG_CONFIG_RFCOMM_SUCCESS)
 
#define l2cap_disconnect_request_sdp_flag   (l2cap_event_flag & L2CAP_FLAG_DISCONNECT_SDP_REQUEST)
 
#define l2cap_disconnect_request_rfcomm_flag   (l2cap_event_flag & L2CAP_FLAG_DISCONNECT_RFCOMM_REQUEST)
 
#define l2cap_disconnect_response_flag   (l2cap_event_flag & L2CAP_FLAG_DISCONNECT_RESPONSE)
 
#define SDP_SERVICE_SEARCH_ATTRIBUTE_REQUEST_PDU   0x06
 
#define SDP_SERVICE_SEARCH_ATTRIBUTE_RESPONSE_PDU   0x07
 
#define SERIALPORT_UUID   0x1101
 
#define L2CAP_UUID   0x0100
 
#define RFCOMM_SABM   0x2F
 
#define RFCOMM_UA   0x63
 
#define RFCOMM_UIH   0xEF
 
#define RFCOMM_DISC   0x43
 
#define extendAddress   0x01
 
#define BT_RFCOMM_PN_CMD   0x83
 
#define BT_RFCOMM_PN_RSP   0x81
 
#define BT_RFCOMM_MSC_CMD   0xE3
 
#define BT_RFCOMM_MSC_RSP   0xE1
 
#define BT_RFCOMM_RPN_CMD   0x93
 
#define BT_RFCOMM_RPN_RSP   0x91
 

Macro Definition Documentation

#define BT_RFCOMM_MSC_CMD   0xE3
#define BT_RFCOMM_MSC_RSP   0xE1
#define BT_RFCOMM_PN_CMD   0x83
#define BT_RFCOMM_PN_RSP   0x81
#define BT_RFCOMM_RPN_CMD   0x93
#define BT_RFCOMM_RPN_RSP   0x91
#define extendAddress   0x01
#define l2cap_config_request_rfcomm_flag   (l2cap_event_flag & L2CAP_FLAG_CONFIG_RFCOMM_REQUEST)
#define l2cap_config_request_sdp_flag   (l2cap_event_flag & L2CAP_FLAG_CONFIG_SDP_REQUEST)
#define l2cap_config_success_rfcomm_flag   (l2cap_event_flag & L2CAP_FLAG_CONFIG_RFCOMM_SUCCESS)
#define l2cap_config_success_sdp_flag   (l2cap_event_flag & L2CAP_FLAG_CONFIG_SDP_SUCCESS)
#define l2cap_connection_request_rfcomm_flag   (l2cap_event_flag & L2CAP_FLAG_CONNECTION_RFCOMM_REQUEST)
#define l2cap_connection_request_sdp_flag   (l2cap_event_flag & L2CAP_FLAG_CONNECTION_SDP_REQUEST)
#define l2cap_disconnect_request_rfcomm_flag   (l2cap_event_flag & L2CAP_FLAG_DISCONNECT_RFCOMM_REQUEST)
#define l2cap_disconnect_request_sdp_flag   (l2cap_event_flag & L2CAP_FLAG_DISCONNECT_SDP_REQUEST)
#define L2CAP_DISCONNECT_RESPONSE   4
#define l2cap_disconnect_response_flag   (l2cap_event_flag & L2CAP_FLAG_DISCONNECT_RESPONSE)
#define L2CAP_FLAG_CONFIG_RFCOMM_REQUEST   0x008
#define L2CAP_FLAG_CONFIG_RFCOMM_SUCCESS   0x020
#define L2CAP_FLAG_CONFIG_SDP_REQUEST   0x004
#define L2CAP_FLAG_CONFIG_SDP_SUCCESS   0x010
#define L2CAP_FLAG_CONNECTION_RFCOMM_REQUEST   0x002
#define L2CAP_FLAG_CONNECTION_SDP_REQUEST   0x001
#define L2CAP_FLAG_DISCONNECT_RESPONSE   0x100
#define L2CAP_FLAG_DISCONNECT_RFCOMM_REQUEST   0x080
#define L2CAP_FLAG_DISCONNECT_SDP_REQUEST   0x040
#define L2CAP_RFCOMM_DONE   3
#define L2CAP_RFCOMM_REQUEST   1
#define L2CAP_RFCOMM_SUCCESS   2
#define L2CAP_RFCOMM_WAIT   0
#define L2CAP_SDP_DONE   3
#define L2CAP_SDP_REQUEST   1
#define L2CAP_SDP_SUCCESS   2
#define L2CAP_SDP_WAIT   0
#define L2CAP_UUID   0x0100
#define RFCOMM_DISC   0x43
#define RFCOMM_SABM   0x2F
#define RFCOMM_UA   0x63
#define RFCOMM_UIH   0xEF
#define SDP_SERVICE_SEARCH_ATTRIBUTE_REQUEST_PDU   0x06
#define SDP_SERVICE_SEARCH_ATTRIBUTE_RESPONSE_PDU   0x07
#define SERIALPORT_UUID   0x1101