Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: libnsdl_m0 BLE_API Base64 nRF51822 SplitterAssembler
Diff: bt_network/BleUartRPC/UartRPC.h
- Revision:
- 11:d601b867b297
- Parent:
- 9:bf0cf5828378
- Child:
- 33:4f6929e123f2
--- a/bt_network/BleUartRPC/UartRPC.h Wed Feb 18 07:11:45 2015 +0000
+++ b/bt_network/BleUartRPC/UartRPC.h Wed Feb 18 19:40:24 2015 +0000
@@ -27,13 +27,16 @@
#include <stdarg.h>
#include "BLEDevice.h"
#include "Dispatcher.h"
+
+ // callback function for dispatch callbacks (
+ typedef void (*ble_dispatch_callback_fn)(bool);
class UartRPC {
public:
UartRPC(BLEDevice &ble);
// remote dispatch
- int dispatch(uint8_t fn_id,uint8_t *response,int response_length,const char *format,...);
+ int dispatch(uint8_t fn_id,void *cb,uint8_t *response,int response_length,const char *format,...);
// local accumulate and dispatch of packets
bool accumulate(uint8_t *buffer,int buffer_length);
@@ -49,6 +52,7 @@
bool m_local_dispatch_available;
char *m_recv_raw_data;
int m_recv_raw_data_length;
+ void *m_cb;
};
#endif // __UART_RPC_H__
\ No newline at end of file