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 L2CAP_SDP_WAIT   0

Definition at line 24 of file SPP.h.

#define L2CAP_SDP_REQUEST   1

Definition at line 25 of file SPP.h.

#define L2CAP_SDP_SUCCESS   2

Definition at line 26 of file SPP.h.

#define L2CAP_SDP_DONE   3

Definition at line 27 of file SPP.h.

#define L2CAP_DISCONNECT_RESPONSE   4

Definition at line 28 of file SPP.h.

#define L2CAP_RFCOMM_WAIT   0

Definition at line 31 of file SPP.h.

#define L2CAP_RFCOMM_REQUEST   1

Definition at line 32 of file SPP.h.

#define L2CAP_RFCOMM_SUCCESS   2

Definition at line 33 of file SPP.h.

#define L2CAP_RFCOMM_DONE   3

Definition at line 34 of file SPP.h.

#define L2CAP_FLAG_CONNECTION_SDP_REQUEST   0x001

Definition at line 37 of file SPP.h.

#define L2CAP_FLAG_CONNECTION_RFCOMM_REQUEST   0x002

Definition at line 38 of file SPP.h.

#define L2CAP_FLAG_CONFIG_SDP_REQUEST   0x004

Definition at line 39 of file SPP.h.

#define L2CAP_FLAG_CONFIG_RFCOMM_REQUEST   0x008

Definition at line 40 of file SPP.h.

#define L2CAP_FLAG_CONFIG_SDP_SUCCESS   0x010

Definition at line 41 of file SPP.h.

#define L2CAP_FLAG_CONFIG_RFCOMM_SUCCESS   0x020

Definition at line 42 of file SPP.h.

#define L2CAP_FLAG_DISCONNECT_SDP_REQUEST   0x040

Definition at line 43 of file SPP.h.

#define L2CAP_FLAG_DISCONNECT_RFCOMM_REQUEST   0x080

Definition at line 44 of file SPP.h.

#define L2CAP_FLAG_DISCONNECT_RESPONSE   0x100

Definition at line 45 of file SPP.h.

#define l2cap_connection_request_sdp_flag   (l2cap_event_flag & L2CAP_FLAG_CONNECTION_SDP_REQUEST)

Definition at line 48 of file SPP.h.

#define l2cap_connection_request_rfcomm_flag   (l2cap_event_flag & L2CAP_FLAG_CONNECTION_RFCOMM_REQUEST)

Definition at line 49 of file SPP.h.

#define l2cap_config_request_sdp_flag   (l2cap_event_flag & L2CAP_FLAG_CONFIG_SDP_REQUEST)

Definition at line 50 of file SPP.h.

#define l2cap_config_request_rfcomm_flag   (l2cap_event_flag & L2CAP_FLAG_CONFIG_RFCOMM_REQUEST)

Definition at line 51 of file SPP.h.

#define l2cap_config_success_sdp_flag   (l2cap_event_flag & L2CAP_FLAG_CONFIG_SDP_SUCCESS)

Definition at line 52 of file SPP.h.

#define l2cap_config_success_rfcomm_flag   (l2cap_event_flag & L2CAP_FLAG_CONFIG_RFCOMM_SUCCESS)

Definition at line 53 of file SPP.h.

#define l2cap_disconnect_request_sdp_flag   (l2cap_event_flag & L2CAP_FLAG_DISCONNECT_SDP_REQUEST)

Definition at line 54 of file SPP.h.

#define l2cap_disconnect_request_rfcomm_flag   (l2cap_event_flag & L2CAP_FLAG_DISCONNECT_RFCOMM_REQUEST)

Definition at line 55 of file SPP.h.

#define l2cap_disconnect_response_flag   (l2cap_event_flag & L2CAP_FLAG_DISCONNECT_RESPONSE)

Definition at line 56 of file SPP.h.

#define SDP_SERVICE_SEARCH_ATTRIBUTE_REQUEST_PDU   0x06

Definition at line 59 of file SPP.h.

#define SDP_SERVICE_SEARCH_ATTRIBUTE_RESPONSE_PDU   0x07

Definition at line 60 of file SPP.h.

#define SERIALPORT_UUID   0x1101

Definition at line 61 of file SPP.h.

#define L2CAP_UUID   0x0100

Definition at line 62 of file SPP.h.

#define RFCOMM_SABM   0x2F

Definition at line 65 of file SPP.h.

#define RFCOMM_UA   0x63

Definition at line 66 of file SPP.h.

#define RFCOMM_UIH   0xEF

Definition at line 67 of file SPP.h.

#define RFCOMM_DISC   0x43

Definition at line 69 of file SPP.h.

#define extendAddress   0x01

Definition at line 71 of file SPP.h.

#define BT_RFCOMM_PN_CMD   0x83

Definition at line 74 of file SPP.h.

#define BT_RFCOMM_PN_RSP   0x81

Definition at line 75 of file SPP.h.

#define BT_RFCOMM_MSC_CMD   0xE3

Definition at line 76 of file SPP.h.

#define BT_RFCOMM_MSC_RSP   0xE1

Definition at line 77 of file SPP.h.

#define BT_RFCOMM_RPN_CMD   0x93

Definition at line 78 of file SPP.h.

#define BT_RFCOMM_RPN_RSP   0x91

Definition at line 79 of file SPP.h.