X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/fa1a092901319b3b41bf09e0c4cb9cbbec470d6b..083d797acaa58f792960a1cb9d7d8d41c3c956a7:/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothACLPackets.h diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothACLPackets.h b/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothACLPackets.h index c0fd1f620..9c7bd26b0 100644 --- a/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothACLPackets.h +++ b/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothACLPackets.h @@ -42,6 +42,7 @@ /* Macros: */ #define BT_ACL_DEBUG(s, ...) printf_P(PSTR("(ACL) " s "\r\n"), __VA_ARGS__) + #define ACL_DEBUG_LEVEL 1 #define BLUETOOTH_CHANNEL_SIGNALING 0x0001 #define BLUETOOTH_CHANNEL_CONNECTIONLESS 0x0002 @@ -50,7 +51,12 @@ #define BLUETOOTH_SIGNAL_CONNECTION_RESPONSE 0x03 #define BLUETOOTH_SIGNAL_CONFIGURATION_REQUEST 0x04 #define BLUETOOTH_SIGNAL_CONFIGURATION_RESPONSE 0x05 + #define BLUETOOTH_SIGNAL_DISCONNECTION_REQUEST 0x06 + #define BLUETOOTH_SIGNAL_DISCONNECTION_RESPONSE 0x07 + #define BLUETOOTH_SIGNAL_ECHO_REQUEST 0x08 + #define BLUETOOTH_SIGNAL_ECHO_RESPONSE 0x09 #define BLUETOOTH_SIGNAL_INFORMATION_REQUEST 0x0A + #define BLUETOOTH_SIGNAL_INFORMATION_RESPONSE 0x0B #define BLUETOOTH_CONNECTION_SUCCESSFUL 0x0000 #define BLUETOOTH_CONNECTION_REFUSED_RESOURCES 0x0004 @@ -92,10 +98,22 @@ uint16_t Result; uint16_t Status; } Bluetooth_SignalCommand_ConnectionResponse_t; + + typedef struct + { + uint16_t DestinationChannel; + uint16_t SourceChannel; + } Bluetooth_SignalCommand_DisconnectionRequest_t; typedef struct { uint16_t DestinationChannel; + uint16_t SourceChannel; + } Bluetooth_SignalCommand_DisconnectionResponse_t; + + typedef struct + { + uint16_t DestinationChannel; uint16_t Flags; uint8_t Options[]; } Bluetooth_SignalCommand_ConfigurationRequest_t; @@ -112,12 +130,18 @@ void Bluetooth_ProcessACLPackets(void); #if defined(INCLUDE_FROM_BLUETOOTH_ACLPACKETS_C) - static inline void Bluetooth_ProcessSignalPacket_ConnectionRequest(Bluetooth_ACL_Header_t* ACLPacketHeader, - Bluetooth_DataPacket_Header_t* DataHeader, - Bluetooth_SignalCommand_Header_t* SignalCommandHeader); - static inline void Bluetooth_ProcessSignalPacket_ConfigurationRequest(Bluetooth_ACL_Header_t* ACLPacketHeader, - Bluetooth_DataPacket_Header_t* DataHeader, - Bluetooth_SignalCommand_Header_t* SignalCommandHeader); + static inline void Bluetooth_SignalPacket_ConnectionRequest(Bluetooth_ACL_Header_t* ACLPacketHeader, + Bluetooth_DataPacket_Header_t* DataHeader, + Bluetooth_SignalCommand_Header_t* SignalCommandHeader); + static inline void Bluetooth_SignalPacket_EchoRequest(Bluetooth_ACL_Header_t* ACLPacketHeader, + Bluetooth_DataPacket_Header_t* DataHeader, + Bluetooth_SignalCommand_Header_t* SignalCommandHeader); + static inline void Bluetooth_SignalPacket_ConfigurationRequest(Bluetooth_ACL_Header_t* ACLPacketHeader, + Bluetooth_DataPacket_Header_t* DataHeader, + Bluetooth_SignalCommand_Header_t* SignalCommandHeader); + static inline void Bluetooth_SignalPacket_DisconnectionRequest(Bluetooth_ACL_Header_t* ACLPacketHeader, + Bluetooth_DataPacket_Header_t* DataHeader, + Bluetooth_SignalCommand_Header_t* SignalCommandHeader); #endif #endif