Add bidirectional channel configuration -- remote device is not ACKing sent Configura...
[pub/USBasp.git] / Demos / Host / Incomplete / BluetoothHost / Lib / BluetoothStack.h
index b529ea4..8d356d8 100644 (file)
                #define CHANNEL_PSM_RFCOMM                       0x0003\r
                \r
        /* Enums: */\r
-               enum Bluetooth_Channel_State_t\r
+               enum BT_ChannelStates_t\r
                {\r
-                       Channel_Closed          = 0,\r
-                       Channel_WaitConnect     = 1,\r
-                       Channel_WaitConnectRsp  = 2,\r
-                       Channel_Config          = 3,\r
-                       Channel_Open            = 4,\r
-                       Channel_WaitDisconnect  = 5,\r
+                       Channel_Closed                = 0,\r
+                       Channel_WaitConnect           = 1,\r
+                       Channel_WaitConnectRsp        = 2,\r
+                       Channel_Config_WaitConfig     = 3,\r
+                       Channel_Config_WaitSendConfig = 4,\r
+                       Channel_Config_WaitReqResp    = 5,\r
+                       Channel_Config_WaitResp       = 6,\r
+                       Channel_Config_WaitReq        = 7,\r
+                       Channel_Open                  = 8,\r
+                       Channel_WaitDisconnect        = 9,\r
+               };\r
+\r
+               enum Endpoint_ControlStream_RW_ErrorCodes_t\r
+               {\r
+                       BT_SENDPACKET_NoError            = 0,\r
+                       BT_SENDPACKET_NotConnected       = 1,\r
+                       BT_SENDPACKET_ChannelNotOpen     = 2,\r
                };\r
 \r
        /* Type Defines: */\r
@@ -65,7 +76,7 @@
                        uint16_t LocalNumber;\r
                        uint16_t RemoteNumber;\r
                        uint16_t PSM;\r
-                       uint16_t MTU;\r
+                       uint16_t RemoteMTU;\r
                } Bluetooth_Channel_t;\r
 \r
                typedef struct\r
@@ -74,6 +85,7 @@
                        uint16_t            ConnectionHandle;\r
                        uint8_t             RemoteAddress[6];\r
                        Bluetooth_Channel_t Channels[BLUETOOTH_MAX_OPEN_CHANNELS];\r
+                       uint8_t             SignallingIdentifier;\r
                } Bluetooth_Connection_t;\r
                \r
                typedef struct\r