Skip to content

Commit

Permalink
Reorder values
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauszus committed Dec 13, 2013
1 parent a7f6b2e commit 413e65a
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions BTD.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,22 +117,22 @@

/* Used for SDP channel */
#define L2CAP_SDP_WAIT 10
#define L2CAP_SDP_SUCCESS 12
#define L2CAP_SDP_DONE 13
#define L2CAP_SDP_SUCCESS 11
#define L2CAP_SDP_DONE 12

/* Used for RFCOMM channel */
#define L2CAP_RFCOMM_WAIT 15
#define L2CAP_RFCOMM_SUCCESS 17
#define L2CAP_RFCOMM_DONE 18
#define L2CAP_RFCOMM_WAIT 13
#define L2CAP_RFCOMM_SUCCESS 14
#define L2CAP_RFCOMM_DONE 15

#define L2CAP_DISCONNECT_RESPONSE 14 // Used for both SDP and RFCOMM channel
#define L2CAP_DISCONNECT_RESPONSE 16 // Used for both SDP and RFCOMM channel

/* Bluetooth states used by some drivers */
#define TURN_ON_LED 19
#define PS3_ENABLE_SIXAXIS 20
#define WII_CHECK_MOTION_PLUS_STATE 21
#define WII_CHECK_EXTENSION_STATE 22
#define WII_INIT_MOTION_PLUS_STATE 23
#define TURN_ON_LED 17
#define PS3_ENABLE_SIXAXIS 18
#define WII_CHECK_MOTION_PLUS_STATE 19
#define WII_CHECK_EXTENSION_STATE 20
#define WII_INIT_MOTION_PLUS_STATE 21

/* L2CAP event flags for HID Control channel */
#define L2CAP_FLAG_CONNECTION_CONTROL_REQUEST 0x00000001
Expand All @@ -148,15 +148,15 @@

/* L2CAP event flags for SDP channel */
#define L2CAP_FLAG_CONNECTION_SDP_REQUEST 0x00000100
#define L2CAP_FLAG_CONFIG_SDP_SUCCESS 0x00000400
#define L2CAP_FLAG_DISCONNECT_SDP_REQUEST 0x00000800
#define L2CAP_FLAG_CONFIG_SDP_SUCCESS 0x00000200
#define L2CAP_FLAG_DISCONNECT_SDP_REQUEST 0x00000400

/* L2CAP event flags for RFCOMM channel */
#define L2CAP_FLAG_CONNECTION_RFCOMM_REQUEST 0x00001000
#define L2CAP_FLAG_CONFIG_RFCOMM_SUCCESS 0x00004000
#define L2CAP_FLAG_DISCONNECT_RFCOMM_REQUEST 0x00008000
#define L2CAP_FLAG_CONNECTION_RFCOMM_REQUEST 0x00000800
#define L2CAP_FLAG_CONFIG_RFCOMM_SUCCESS 0x00001000
#define L2CAP_FLAG_DISCONNECT_RFCOMM_REQUEST 0x00002000

#define L2CAP_FLAG_DISCONNECT_RESPONSE 0x00010000
#define L2CAP_FLAG_DISCONNECT_RESPONSE 0x00004000

/* Macros for L2CAP event flag tests */
#define l2cap_check_flag(flag) (l2cap_event_flag & flag)
Expand Down

0 comments on commit 413e65a

Please sign in to comment.