aboutsummaryrefslogtreecommitdiff
path: root/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.h
diff options
context:
space:
mode:
authorDean Camera <[email protected]>2010-07-08 07:44:07 +0000
committerDean Camera <[email protected]>2010-07-08 07:44:07 +0000
commit70983caea5dc6d817c3a887d66a2f43fce535bbd (patch)
tree67cc8f38d20179507f0f0678300bc0b8b9704d16 /Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.h
parentdea897ef571bf33bc80c0e1dbf35601009582f3d (diff)
downloadqmk_firmware-70983caea5dc6d817c3a887d66a2f43fce535bbd.tar.gz
qmk_firmware-70983caea5dc6d817c3a887d66a2f43fce535bbd.zip
Move out Bluetooth stack callback functions to a seperate BluetoothEvents.c/.h set of files for clarity in the Incomplete BluetoothHost demo. Add a new stack callback for opened ACL channels, make the demo save the RFCOMM channel when opened so that it does not have to search for it on each iteration of the main program loop.
Diffstat (limited to 'Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.h')
-rw-r--r--Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.h b/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.h
index 131c4aaf21..c1c938636c 100644
--- a/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.h
+++ b/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.h
@@ -156,6 +156,8 @@
void Bluetooth_DisconnectionComplete(void);
bool Bluetooth_ChannelConnectionRequest(const uint16_t PSM);
void Bluetooth_PacketReceived(void* Data, uint16_t DataLen, Bluetooth_Channel_t* const Channel);
+ void Bluetooth_ChannelOpened(Bluetooth_Channel_t* const Channel);
+
Bluetooth_Channel_t* Bluetooth_GetChannelData(const uint16_t SearchValue, const uint8_t SearchKey);
Bluetooth_Channel_t* Bluetooth_OpenChannel(const uint16_t PSM);
void Bluetooth_CloseChannel(Bluetooth_Channel_t* const Channel);