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

Go to the source code of this file.

Classes

class  BluetoothService
 
class  BTD
 

Macros

#define PS3_VID   0x054C
 
#define PS3_PID   0x0268
 
#define PS3NAVIGATION_PID   0x042F
 
#define PS3MOVE_PID   0x03D5
 
#define BULK_MAXPKTSIZE   64
 
#define bmREQ_HCI_OUT   USB_SETUP_HOST_TO_DEVICE|USB_SETUP_TYPE_CLASS|USB_SETUP_RECIPIENT_DEVICE
 
#define bmREQ_HID_OUT   USB_SETUP_HOST_TO_DEVICE|USB_SETUP_TYPE_CLASS|USB_SETUP_RECIPIENT_INTERFACE
 
#define HID_REQUEST_SET_REPORT   0x09
 
#define HCI_INIT_STATE   0
 
#define HCI_RESET_STATE   1
 
#define HCI_BDADDR_STATE   2
 
#define HCI_LOCAL_VERSION_STATE   3
 
#define HCI_SET_NAME_STATE   4
 
#define HCI_CHECK_WII_SERVICE   5
 
#define HCI_INQUIRY_STATE   6
 
#define HCI_CONNECT_WII_STATE   7
 
#define HCI_CONNECTED_WII_STATE   8
 
#define HCI_SCANNING_STATE   9
 
#define HCI_CONNECT_IN_STATE   10
 
#define HCI_REMOTE_NAME_STATE   11
 
#define HCI_CONNECTED_STATE   12
 
#define HCI_DISABLE_SCAN_STATE   13
 
#define HCI_DONE_STATE   14
 
#define HCI_DISCONNECT_STATE   15
 
#define HCI_FLAG_CMD_COMPLETE   0x01
 
#define HCI_FLAG_CONN_COMPLETE   0x02
 
#define HCI_FLAG_DISCONN_COMPLETE   0x04
 
#define HCI_FLAG_REMOTE_NAME_COMPLETE   0x08
 
#define HCI_FLAG_INCOMING_REQUEST   0x10
 
#define HCI_FLAG_READ_BDADDR   0x20
 
#define HCI_FLAG_READ_VERSION   0x40
 
#define HCI_FLAG_WII_FOUND   0x80
 
#define HCI_FLAG_CONNECT_EVENT   0x100
 
#define hci_cmd_complete   (hci_event_flag & HCI_FLAG_CMD_COMPLETE)
 
#define hci_connect_complete   (hci_event_flag & HCI_FLAG_CONN_COMPLETE)
 
#define hci_disconnect_complete   (hci_event_flag & HCI_FLAG_DISCONN_COMPLETE)
 
#define hci_remote_name_complete   (hci_event_flag & HCI_FLAG_REMOTE_NAME_COMPLETE)
 
#define hci_incoming_connect_request   (hci_event_flag & HCI_FLAG_INCOMING_REQUEST)
 
#define hci_read_bdaddr_complete   (hci_event_flag & HCI_FLAG_READ_BDADDR)
 
#define hci_read_version_complete   (hci_event_flag & HCI_FLAG_READ_VERSION)
 
#define hci_wii_found   (hci_event_flag & HCI_FLAG_WII_FOUND)
 
#define hci_connect_event   (hci_event_flag & HCI_FLAG_CONNECT_EVENT)
 
#define EV_INQUIRY_COMPLETE   0x01
 
#define EV_INQUIRY_RESULT   0x02
 
#define EV_CONNECT_COMPLETE   0x03
 
#define EV_INCOMING_CONNECT   0x04
 
#define EV_DISCONNECT_COMPLETE   0x05
 
#define EV_AUTHENTICATION_COMPLETE   0x06
 
#define EV_REMOTE_NAME_COMPLETE   0x07
 
#define EV_ENCRYPTION_CHANGE   0x08
 
#define EV_CHANGE_CONNECTION_LINK   0x09
 
#define EV_ROLE_CHANGED   0x12
 
#define EV_NUM_COMPLETE_PKT   0x13
 
#define EV_PIN_CODE_REQUEST   0x16
 
#define EV_LINK_KEY_REQUEST   0x17
 
#define EV_LINK_KEY_NOTIFICATION   0x18
 
#define EV_DATA_BUFFER_OVERFLOW   0x1A
 
#define EV_MAX_SLOTS_CHANGE   0x1B
 
#define EV_READ_REMOTE_VERSION_INFORMATION_COMPLETE   0x0C
 
#define EV_QOS_SETUP_COMPLETE   0x0D
 
#define EV_COMMAND_COMPLETE   0x0E
 
#define EV_COMMAND_STATUS   0x0F
 
#define EV_LOOPBACK_COMMAND   0x19
 
#define EV_PAGE_SCAN_REP_MODE   0x20
 
#define L2CAP_CMD_COMMAND_REJECT   0x01
 
#define L2CAP_CMD_CONNECTION_REQUEST   0x02
 
#define L2CAP_CMD_CONNECTION_RESPONSE   0x03
 
#define L2CAP_CMD_CONFIG_REQUEST   0x04
 
#define L2CAP_CMD_CONFIG_RESPONSE   0x05
 
#define L2CAP_CMD_DISCONNECT_REQUEST   0x06
 
#define L2CAP_CMD_DISCONNECT_RESPONSE   0x07
 
#define L2CAP_CMD_INFORMATION_REQUEST   0x0A
 
#define L2CAP_CMD_INFORMATION_RESPONSE   0x0B
 
#define PENDING   0x01
 
#define SUCCESSFUL   0x00
 
#define SDP_PSM   0x01
 
#define RFCOMM_PSM   0x03
 
#define HID_CTRL_PSM   0x11
 
#define HID_INTR_PSM   0x13
 
#define WI_SUBCLASS_RF   0x01
 
#define WI_PROTOCOL_BT   0x01
 
#define BTD_MAX_ENDPOINTS   4
 
#define BTD_NUMSERVICES   4
 

Macro Definition Documentation

Definition at line 34 of file BTD.h.

Definition at line 36 of file BTD.h.

#define BTD_MAX_ENDPOINTS   4

Definition at line 130 of file BTD.h.

#define BTD_NUMSERVICES   4

Definition at line 131 of file BTD.h.

#define BULK_MAXPKTSIZE   64

Definition at line 31 of file BTD.h.

#define EV_AUTHENTICATION_COMPLETE   0x06

Definition at line 87 of file BTD.h.

#define EV_CHANGE_CONNECTION_LINK   0x09

Definition at line 90 of file BTD.h.

#define EV_COMMAND_COMPLETE   0x0E

Definition at line 100 of file BTD.h.

#define EV_COMMAND_STATUS   0x0F

Definition at line 101 of file BTD.h.

#define EV_CONNECT_COMPLETE   0x03

Definition at line 84 of file BTD.h.

#define EV_DATA_BUFFER_OVERFLOW   0x1A

Definition at line 96 of file BTD.h.

#define EV_DISCONNECT_COMPLETE   0x05

Definition at line 86 of file BTD.h.

#define EV_ENCRYPTION_CHANGE   0x08

Definition at line 89 of file BTD.h.

#define EV_INCOMING_CONNECT   0x04

Definition at line 85 of file BTD.h.

#define EV_INQUIRY_COMPLETE   0x01

Definition at line 82 of file BTD.h.

#define EV_INQUIRY_RESULT   0x02

Definition at line 83 of file BTD.h.

#define EV_LINK_KEY_NOTIFICATION   0x18

Definition at line 95 of file BTD.h.

#define EV_LINK_KEY_REQUEST   0x17

Definition at line 94 of file BTD.h.

#define EV_LOOPBACK_COMMAND   0x19

Definition at line 102 of file BTD.h.

#define EV_MAX_SLOTS_CHANGE   0x1B

Definition at line 97 of file BTD.h.

#define EV_NUM_COMPLETE_PKT   0x13

Definition at line 92 of file BTD.h.

#define EV_PAGE_SCAN_REP_MODE   0x20

Definition at line 103 of file BTD.h.

#define EV_PIN_CODE_REQUEST   0x16

Definition at line 93 of file BTD.h.

#define EV_QOS_SETUP_COMPLETE   0x0D

Definition at line 99 of file BTD.h.

#define EV_READ_REMOTE_VERSION_INFORMATION_COMPLETE   0x0C

Definition at line 98 of file BTD.h.

#define EV_REMOTE_NAME_COMPLETE   0x07

Definition at line 88 of file BTD.h.

#define EV_ROLE_CHANGED   0x12

Definition at line 91 of file BTD.h.

#define HCI_BDADDR_STATE   2

Definition at line 42 of file BTD.h.

#define HCI_CHECK_WII_SERVICE   5

Definition at line 45 of file BTD.h.

#define hci_cmd_complete   (hci_event_flag & HCI_FLAG_CMD_COMPLETE)

Definition at line 71 of file BTD.h.

#define hci_connect_complete   (hci_event_flag & HCI_FLAG_CONN_COMPLETE)

Definition at line 72 of file BTD.h.

#define hci_connect_event   (hci_event_flag & HCI_FLAG_CONNECT_EVENT)

Definition at line 79 of file BTD.h.

#define HCI_CONNECT_IN_STATE   10

Definition at line 52 of file BTD.h.

#define HCI_CONNECT_WII_STATE   7

Definition at line 48 of file BTD.h.

#define HCI_CONNECTED_STATE   12

Definition at line 54 of file BTD.h.

#define HCI_CONNECTED_WII_STATE   8

Definition at line 49 of file BTD.h.

#define HCI_DISABLE_SCAN_STATE   13

Definition at line 55 of file BTD.h.

#define hci_disconnect_complete   (hci_event_flag & HCI_FLAG_DISCONN_COMPLETE)

Definition at line 73 of file BTD.h.

#define HCI_DISCONNECT_STATE   15

Definition at line 57 of file BTD.h.

#define HCI_DONE_STATE   14

Definition at line 56 of file BTD.h.

#define HCI_FLAG_CMD_COMPLETE   0x01

Definition at line 60 of file BTD.h.

#define HCI_FLAG_CONN_COMPLETE   0x02

Definition at line 61 of file BTD.h.

#define HCI_FLAG_CONNECT_EVENT   0x100

Definition at line 68 of file BTD.h.

#define HCI_FLAG_DISCONN_COMPLETE   0x04

Definition at line 62 of file BTD.h.

#define HCI_FLAG_INCOMING_REQUEST   0x10

Definition at line 64 of file BTD.h.

#define HCI_FLAG_READ_BDADDR   0x20

Definition at line 65 of file BTD.h.

#define HCI_FLAG_READ_VERSION   0x40

Definition at line 66 of file BTD.h.

#define HCI_FLAG_REMOTE_NAME_COMPLETE   0x08

Definition at line 63 of file BTD.h.

#define HCI_FLAG_WII_FOUND   0x80

Definition at line 67 of file BTD.h.

#define hci_incoming_connect_request   (hci_event_flag & HCI_FLAG_INCOMING_REQUEST)

Definition at line 75 of file BTD.h.

#define HCI_INIT_STATE   0

Definition at line 40 of file BTD.h.

#define HCI_INQUIRY_STATE   6

Definition at line 47 of file BTD.h.

#define HCI_LOCAL_VERSION_STATE   3

Definition at line 43 of file BTD.h.

#define hci_read_bdaddr_complete   (hci_event_flag & HCI_FLAG_READ_BDADDR)

Definition at line 76 of file BTD.h.

#define hci_read_version_complete   (hci_event_flag & HCI_FLAG_READ_VERSION)

Definition at line 77 of file BTD.h.

#define hci_remote_name_complete   (hci_event_flag & HCI_FLAG_REMOTE_NAME_COMPLETE)

Definition at line 74 of file BTD.h.

#define HCI_REMOTE_NAME_STATE   11

Definition at line 53 of file BTD.h.

#define HCI_RESET_STATE   1

Definition at line 41 of file BTD.h.

#define HCI_SCANNING_STATE   9

Definition at line 51 of file BTD.h.

#define HCI_SET_NAME_STATE   4

Definition at line 44 of file BTD.h.

#define hci_wii_found   (hci_event_flag & HCI_FLAG_WII_FOUND)

Definition at line 78 of file BTD.h.

#define HID_CTRL_PSM   0x11

Definition at line 123 of file BTD.h.

#define HID_INTR_PSM   0x13

Definition at line 124 of file BTD.h.

#define HID_REQUEST_SET_REPORT   0x09

Definition at line 37 of file BTD.h.

#define L2CAP_CMD_COMMAND_REJECT   0x01

Definition at line 106 of file BTD.h.

#define L2CAP_CMD_CONFIG_REQUEST   0x04

Definition at line 109 of file BTD.h.

#define L2CAP_CMD_CONFIG_RESPONSE   0x05

Definition at line 110 of file BTD.h.

#define L2CAP_CMD_CONNECTION_REQUEST   0x02

Definition at line 107 of file BTD.h.

#define L2CAP_CMD_CONNECTION_RESPONSE   0x03

Definition at line 108 of file BTD.h.

#define L2CAP_CMD_DISCONNECT_REQUEST   0x06

Definition at line 111 of file BTD.h.

#define L2CAP_CMD_DISCONNECT_RESPONSE   0x07

Definition at line 112 of file BTD.h.

#define L2CAP_CMD_INFORMATION_REQUEST   0x0A

Definition at line 113 of file BTD.h.

#define L2CAP_CMD_INFORMATION_RESPONSE   0x0B

Definition at line 114 of file BTD.h.

#define PENDING   0x01

Definition at line 117 of file BTD.h.

#define PS3_PID   0x0268

Definition at line 26 of file BTD.h.

#define PS3_VID   0x054C

Definition at line 25 of file BTD.h.

#define PS3MOVE_PID   0x03D5

Definition at line 28 of file BTD.h.

#define PS3NAVIGATION_PID   0x042F

Definition at line 27 of file BTD.h.

#define RFCOMM_PSM   0x03

Definition at line 122 of file BTD.h.

#define SDP_PSM   0x01

Definition at line 121 of file BTD.h.

#define SUCCESSFUL   0x00

Definition at line 118 of file BTD.h.

#define WI_PROTOCOL_BT   0x01

Definition at line 128 of file BTD.h.

#define WI_SUBCLASS_RF   0x01

Definition at line 127 of file BTD.h.