Partial implementation of BlueGiga's BGAPI for use with the BLE112/3 modules over UART.

Hi there! I recently started using BLE112 modules with the mbed LPC1768 MCU, and I realized there was no implementation of BlueGiga's BGAPI available for mbed. This library implements only a few commands, but if you're looking to get started, this is a good place to look.

This was developed against BGAPI v1.3.2. I make no guarantees as to how well it will work with newer revisions of the software.

Committer:
dishbreak
Date:
Tue May 19 05:01:10 2015 +0000
Revision:
5:7c7220a316ed
Parent:
4:21eee6881dac
Child:
6:23d9a99dcde0
Updating documentation.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dishbreak 2:3ce9a31a6a7e 1 #include "api_datatypes.h"
dishbreak 2:3ce9a31a6a7e 2 #ifndef CALLBACKS_H
dishbreak 2:3ce9a31a6a7e 3 #define CALLBACKS_H
dishbreak 2:3ce9a31a6a7e 4
dishbreak 5:7c7220a316ed 5 /** @brief Function pointer for Hello response.
dishbreak 5:7c7220a316ed 6 * This is a pointer to a callback for the Hello response. It should point to a function that takes no arguments.
dishbreak 5:7c7220a316ed 7 */
dishbreak 2:3ce9a31a6a7e 8 typedef void (*hello_callback_t)();
dishbreak 2:3ce9a31a6a7e 9
dishbreak 2:3ce9a31a6a7e 10 /** Function pointer for Get Info response. */
dishbreak 2:3ce9a31a6a7e 11 typedef void (*get_info_callback_t)(ble_msg_system_get_info_rsp_t);
dishbreak 2:3ce9a31a6a7e 12
dishbreak 3:8f43af513d87 13 /** Function pointer for System Boot. */
dishbreak 3:8f43af513d87 14 typedef void (*boot_callback_t)(ble_msg_system_boot_evt_t);
dishbreak 3:8f43af513d87 15
dishbreak 4:21eee6881dac 16 /** Function pointer for timestamping */
dishbreak 4:21eee6881dac 17 typedef void (*timestamp_callback_t)();
dishbreak 4:21eee6881dac 18
dishbreak 2:3ce9a31a6a7e 19 #endif