From 2a072db7030fa33be1e8dcf82ebf0b45cb4d77c1 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Tue, 6 Apr 2010 13:39:18 +0000 Subject: Make Bluetooth signalling handler routines use the generic Bluetooth_SendPacket() routine for their responses. Use a better method of controlling the debug output verbosity. --- Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.h') diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.h b/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.h index 8d356d88d1..c20cd123ee 100644 --- a/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.h +++ b/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.h @@ -47,6 +47,8 @@ #define CHANNEL_PSM_SERVICEDISCOVERY 0x0001 #define CHANNEL_PSM_RFCOMM 0x0003 + #define MAXIMUM_CHANNEL_MTU 255 + /* Enums: */ enum BT_ChannelStates_t { @@ -76,6 +78,7 @@ uint16_t LocalNumber; uint16_t RemoteNumber; uint16_t PSM; + uint16_t LocalMTU; uint16_t RemoteMTU; } Bluetooth_Channel_t; @@ -106,10 +109,11 @@ void Bluetooth_Stack_Init(void); void Bluetooth_Stack_USBTask(void); - bool Bluetooth_ConnectionRequest(uint8_t* RemoteAddress); - void Bluetooth_ConnectionComplete(void); - void Bluetooth_DisconnectionComplete(void); - void Bluetooth_PacketReceived(uint16_t* PacketLength, Bluetooth_Channel_t* Channel); + bool Bluetooth_ConnectionRequest(uint8_t* RemoteAddress); + void Bluetooth_ConnectionComplete(void); + void Bluetooth_DisconnectionComplete(void); + void Bluetooth_PacketReceived(uint16_t* PacketLength, Bluetooth_Channel_t* Channel); + uint8_t Bluetooth_SendPacket(void* Data, uint16_t DataLen, Bluetooth_Channel_t* Channel); /* External Variables: */ extern Bluetooth_Device_t Bluetooth_DeviceConfiguration; -- cgit v1.2.3