![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Test version of BlueUSB stack. Includes SDP and RFCOMM. As Client it allows to connect to my fischertechnik TX Controller. As Server it echo\\\\\\\'s characters to Putty. PIN=1234
Dependencies: mbed myUSBHost AvailableMemory
Dependents: mbed_TANK_Kinect myBlueUSB_ros ftusbClass
Diff: hci.h
- Revision:
- 5:378c208637e3
- Parent:
- 2:0118da9e5169
--- a/hci.h Sun May 08 18:30:10 2011 +0000 +++ b/hci.h Sat Jun 11 19:43:00 2011 +0000 @@ -161,7 +161,8 @@ CALLBACK_CONNECTION_FAILED, CALLBACK_PIN_REQ, CALLBACK_CMD_STATUS, - CALLBACK_CONNECTION_REQUEST + CALLBACK_CONNECTION_REQUEST, + CALLBACK_VENDOR }; // L2CAP Protocol/Service Multiplexor (PSM) values @@ -250,13 +251,15 @@ void RemoteName(const BD_ADDR* addr, const char* name); void ConnectComplete(const connection_info* info); void DisconnectComplete(int handle); - int SendCmd(int cmd, const u8* params = 0, int len = 0); void OnCommandComplete(int cmd, const u8* data, int len); virtual void Callback(HCI_CALLBACK_EVENT c, const u8* data, int len); void Compl_pkts(int handle, u8 p = 1); protected: +// int SendCmd(int cmd, const u8* params = 0, int len = 0); int PinCodeReply(const u8* data, const u8* pin = "0000"); void Accept_Connection(const BD_ADDR* addr, bool slave=true); +public: + int SendCmd(int cmd, const u8* params = 0, int len = 0); }; class HCITransport