Make Bluetooth signalling handler routines use the generic Bluetooth_SendPacket(...
[pub/USBasp.git] / Demos / Host / Incomplete / BluetoothHost / Lib / BluetoothStack.h
index 8d356d8..c20cd12 100644 (file)
@@ -47,6 +47,8 @@
                #define CHANNEL_PSM_SERVICEDISCOVERY             0x0001\r
                #define CHANNEL_PSM_RFCOMM                       0x0003\r
                \r
+               #define MAXIMUM_CHANNEL_MTU                      255\r
+               \r
        /* Enums: */\r
                enum BT_ChannelStates_t\r
                {\r
@@ -76,6 +78,7 @@
                        uint16_t LocalNumber;\r
                        uint16_t RemoteNumber;\r
                        uint16_t PSM;\r
+                       uint16_t LocalMTU;\r
                        uint16_t RemoteMTU;\r
                } Bluetooth_Channel_t;\r
 \r
                void Bluetooth_Stack_Init(void);\r
                void Bluetooth_Stack_USBTask(void);\r
 \r
-               bool Bluetooth_ConnectionRequest(uint8_t* RemoteAddress);\r
-               void Bluetooth_ConnectionComplete(void);\r
-               void Bluetooth_DisconnectionComplete(void);\r
-               void Bluetooth_PacketReceived(uint16_t* PacketLength, Bluetooth_Channel_t* Channel);\r
+               bool    Bluetooth_ConnectionRequest(uint8_t* RemoteAddress);\r
+               void    Bluetooth_ConnectionComplete(void);\r
+               void    Bluetooth_DisconnectionComplete(void);\r
+               void    Bluetooth_PacketReceived(uint16_t* PacketLength, Bluetooth_Channel_t* Channel);\r
+               uint8_t Bluetooth_SendPacket(void* Data, uint16_t DataLen, Bluetooth_Channel_t* Channel);\r
 \r
        /* External Variables: */\r
                extern Bluetooth_Device_t     Bluetooth_DeviceConfiguration;\r