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.

callbacks.h

Committer:
dishbreak
Date:
2015-05-19
Revision:
4:21eee6881dac
Parent:
3:8f43af513d87
Child:
5:7c7220a316ed

File content as of revision 4:21eee6881dac:

#include "api_datatypes.h"
#ifndef CALLBACKS_H
#define CALLBACKS_H

/** Function pointer for Hello response. */
typedef void (*hello_callback_t)();

/** Function pointer for Get Info response. */
typedef void (*get_info_callback_t)(ble_msg_system_get_info_rsp_t);

/** Function pointer for System Boot. */
typedef void (*boot_callback_t)(ble_msg_system_boot_evt_t);

/** Function pointer for timestamping */
typedef void (*timestamp_callback_t)();

#endif