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.
api_datatypes.h
- Committer:
- dishbreak
- Date:
- 2015-05-18
- Revision:
- 3:8f43af513d87
- Parent:
- 2:3ce9a31a6a7e
- Child:
- 5:7c7220a316ed
File content as of revision 3:8f43af513d87:
#ifndef API_DATATYPES_H #define API_DATATYPES_H /** Data structure returned from Get Info command. */ typedef struct { uint16_t major; uint16_t minor; uint16_t patch; uint16_t build; uint16_t ll_version; uint8_t protocol_version; uint8_t hw; } ble_msg_system_get_info_rsp_t; typedef struct { uint8_t boot_in_dfu; } ble_msg_system_reset_t; typedef struct { uint16_t major; uint16_t minor; uint16_t patch; uint16_t build; uint16_t ll_version; uint8_t protocol_version; uint8_t hw; } ble_msg_system_boot_evt_t; #endif