X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/c77f136661ae0fa779c02ef6efeab95aa4b92068..2a072db7030fa33be1e8dcf82ebf0b45cb4d77c1:/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 8d356d88d..c20cd123e 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;