Add Bluetooth signalling echo request/response handlers, disconnection request/response handlers.
Add Bluetooth connection request/complete/disconnection callbacks. Remove debugging from HCI layer, as it is now operational -- add guards to ACL debug statements to reduce logging chattyness so that the overall command sequences can be observed and debugged.
This commit is contained in:
parent
fa1a092901
commit
083d797aca
7 changed files with 198 additions and 83 deletions
|
@ -42,8 +42,6 @@
|
|||
#include "BluetoothClassCodes.h"
|
||||
|
||||
/* Macros: */
|
||||
#define BT_HCI_DEBUG(s, ...) printf_P(PSTR("(HCI) " s "\r\n"), __VA_ARGS__)
|
||||
|
||||
#define OGF_LINK_CONTROL 0x01
|
||||
#define OGF_CTRLR_BASEBAND 0x03
|
||||
#define OGF_CTRLR_INFORMATIONAL 0x04
|
||||
|
@ -193,8 +191,10 @@
|
|||
void Bluetooth_ProcessHCICommands(void);
|
||||
void Bluetooth_ProcessHCIEvents(void);
|
||||
|
||||
bool CALLBACK_Bluetooth_ConnectionRequest(uint8_t* RemoteAddress);
|
||||
|
||||
bool Bluetooth_ConnectionRequest(uint8_t* RemoteAddress);
|
||||
void Bluetooth_ConnectionComplete(void);
|
||||
void Bluetooth_DisconnectionComplete(void);
|
||||
|
||||
#if defined(INCLUDE_FROM_BLUETOOTHHCICOMMANDS_C)
|
||||
static uint8_t Bluetooth_SendHCICommand(void* Parameters, uint16_t ParameterLength);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue