\r
/* Macros: */\r
#define BT_ACL_DEBUG(s, ...) printf_P(PSTR("(ACL) " s "\r\n"), __VA_ARGS__)\r
- #define ACL_DEBUG_LEVEL 2\r
+ #define ACL_DEBUG_LEVEL 1\r
\r
#define BT_CHANNEL_SIGNALING 0x0001\r
#define BT_CHANNEL_CONNECTIONLESS 0x0002\r
{\r
uint16_t ConnectionHandle;\r
uint16_t DataLength;\r
- } Bluetooth_ACL_Header_t;\r
+ } BT_ACL_Header_t;\r
\r
typedef struct\r
{\r
uint16_t PayloadLength;\r
uint16_t DestinationChannel;\r
- } Bluetooth_DataPacket_Header_t;\r
+ } BT_DataPacket_Header_t;\r
\r
typedef struct\r
{\r
uint8_t Code;\r
uint8_t Identifier;\r
uint16_t Length;\r
- } Bluetooth_SignalCommand_Header_t;\r
+ } BT_Signal_Header_t;\r
\r
typedef struct\r
{\r
uint16_t PSM;\r
uint16_t SourceChannel;\r
- } Bluetooth_SignalCommand_ConnectionRequest_t;\r
+ } BT_Signal_ConnectionReq_t;\r
\r
typedef struct\r
{\r
uint16_t SourceChannel;\r
uint16_t Result;\r
uint16_t Status;\r
- } Bluetooth_SignalCommand_ConnectionResponse_t;\r
+ } BT_Signal_ConnectionResp_t;\r
\r
typedef struct\r
{\r
uint16_t DestinationChannel;\r
uint16_t SourceChannel;\r
- } Bluetooth_SignalCommand_DisconnectionRequest_t;\r
+ } BT_Signal_DisconnectionReq_t;\r
\r
typedef struct\r
{\r
uint16_t DestinationChannel;\r
uint16_t SourceChannel;\r
- } Bluetooth_SignalCommand_DisconnectionResponse_t; \r
+ } BT_Signal_DisconnectionResp_t; \r
\r
typedef struct\r
{\r
uint16_t DestinationChannel;\r
uint16_t Flags;\r
- } Bluetooth_SignalCommand_ConfigurationRequest_t;\r
+ } BT_Signal_ConfigurationReq_t;\r
\r
typedef struct\r
{\r
uint16_t SourceChannel;\r
uint16_t Flags;\r
uint16_t Result;\r
- } Bluetooth_SignalCommand_ConfigurationResponse_t;\r
+ } BT_Signal_ConfigurationResp_t;\r
\r
typedef struct\r
{\r
uint16_t InfoType;\r
- } Bluetooth_SignalCommand_InformationRequest_t;\r
+ } BT_Signal_InformationReq_t;\r
\r
typedef struct\r
{\r
uint16_t InfoType;\r
uint16_t Result;\r
- } Bluetooth_SignalCommand_InformationResponse_t;\r
+ } BT_Signal_InformationResp_t;\r
\r
/* Function Prototypes: */\r
- void Bluetooth_ProcessACLPackets(void);\r
- void Bluetooth_SendPacket(uint8_t* Data, uint16_t DataLen, Bluetooth_Channel_t* Channel);\r
+ void Bluetooth_ACLTask(void);\r
+ uint8_t Bluetooth_SendPacket(uint8_t* Data, uint16_t DataLen, Bluetooth_Channel_t* Channel);\r
\r
#if defined(INCLUDE_FROM_BLUETOOTH_ACLPACKETS_C)\r
- static inline void Bluetooth_SignalPacket_ConnectionRequest(Bluetooth_ACL_Header_t* ACLPacketHeader,\r
- Bluetooth_DataPacket_Header_t* DataHeader,\r
- Bluetooth_SignalCommand_Header_t* SignalCommandHeader);\r
- static inline void Bluetooth_SignalPacket_EchoRequest(Bluetooth_ACL_Header_t* ACLPacketHeader,\r
- Bluetooth_DataPacket_Header_t* DataHeader,\r
- Bluetooth_SignalCommand_Header_t* SignalCommandHeader);\r
- static inline void Bluetooth_SignalPacket_ConfigurationRequest(Bluetooth_ACL_Header_t* ACLPacketHeader,\r
- Bluetooth_DataPacket_Header_t* DataHeader,\r
- Bluetooth_SignalCommand_Header_t* SignalCommandHeader);\r
- static inline void Bluetooth_SignalPacket_DisconnectionRequest(Bluetooth_ACL_Header_t* ACLPacketHeader,\r
- Bluetooth_DataPacket_Header_t* DataHeader,\r
- Bluetooth_SignalCommand_Header_t* SignalCommandHeader);\r
- static inline void Bluetooth_SignalPacket_InformationRequest(Bluetooth_ACL_Header_t* ACLPacketHeader,\r
- Bluetooth_DataPacket_Header_t* DataHeader,\r
- Bluetooth_SignalCommand_Header_t* SignalCommandHeader);\r
+ static void Bluetooth_ProcessACLPackets(void);\r
+\r
+ static inline void Bluetooth_Signal_ConnectionReq(BT_ACL_Header_t* ACLPacketHeader,\r
+ BT_DataPacket_Header_t* DataHeader,\r
+ BT_Signal_Header_t* SignalCommandHeader);\r
+ static inline void Bluetooth_Signal_EchoReq(BT_ACL_Header_t* ACLPacketHeader,\r
+ BT_DataPacket_Header_t* DataHeader,\r
+ BT_Signal_Header_t* SignalCommandHeader);\r
+ static inline void Bluetooth_Signal_ConfigurationReq(BT_ACL_Header_t* ACLPacketHeader,\r
+ BT_DataPacket_Header_t* DataHeader,\r
+ BT_Signal_Header_t* SignalCommandHeader);\r
+ static inline void Bluetooth_Signal_DisconnectionReq(BT_ACL_Header_t* ACLPacketHeader,\r
+ BT_DataPacket_Header_t* DataHeader,\r
+ BT_Signal_Header_t* SignalCommandHeader);\r
+ static inline void Bluetooth_Signal_InformationReq(BT_ACL_Header_t* ACLPacketHeader,\r
+ BT_DataPacket_Header_t* DataHeader,\r
+ BT_Signal_Header_t* SignalCommandHeader);\r
#endif\r
\r
#endif\r