diff options
author | Dean Camera <[email protected]> | 2010-04-06 13:39:18 +0000 |
---|---|---|
committer | Dean Camera <[email protected]> | 2010-04-06 13:39:18 +0000 |
commit | 2a072db7030fa33be1e8dcf82ebf0b45cb4d77c1 (patch) | |
tree | 16bf65daee7f6820a225193cfa58c9238fa12f71 /Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.h | |
parent | c77f136661ae0fa779c02ef6efeab95aa4b92068 (diff) | |
download | qmk_firmware-2a072db7030fa33be1e8dcf82ebf0b45cb4d77c1.tar.gz qmk_firmware-2a072db7030fa33be1e8dcf82ebf0b45cb4d77c1.zip |
Make Bluetooth signalling handler routines use the generic Bluetooth_SendPacket() routine for their responses. Use a better method of controlling the debug output verbosity.
Diffstat (limited to 'Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.h')
-rw-r--r-- | Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.h | 12 |
1 files changed, 8 insertions, 4 deletions
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;
|