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@2:3ce9a31a6a7e, 2015-05-18 (annotated)
- Committer:
- dishbreak
- Date:
- Mon May 18 01:16:52 2015 +0000
- Revision:
- 2:3ce9a31a6a7e
- Child:
- 3:8f43af513d87
Added support for Get Info command.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dishbreak | 2:3ce9a31a6a7e | 1 | #ifndef API_DATATYPES_H |
dishbreak | 2:3ce9a31a6a7e | 2 | #define API_DATATYPES_H |
dishbreak | 2:3ce9a31a6a7e | 3 | |
dishbreak | 2:3ce9a31a6a7e | 4 | /** Data structure returned from Get Info command. */ |
dishbreak | 2:3ce9a31a6a7e | 5 | typedef struct { |
dishbreak | 2:3ce9a31a6a7e | 6 | uint16_t major; |
dishbreak | 2:3ce9a31a6a7e | 7 | uint16_t minor; |
dishbreak | 2:3ce9a31a6a7e | 8 | uint16_t patch; |
dishbreak | 2:3ce9a31a6a7e | 9 | uint16_t build; |
dishbreak | 2:3ce9a31a6a7e | 10 | uint16_t ll_version; |
dishbreak | 2:3ce9a31a6a7e | 11 | uint8_t protocol_version; |
dishbreak | 2:3ce9a31a6a7e | 12 | uint8_t hw; |
dishbreak | 2:3ce9a31a6a7e | 13 | } ble_msg_system_get_info_rsp_t; |
dishbreak | 2:3ce9a31a6a7e | 14 | |
dishbreak | 2:3ce9a31a6a7e | 15 | |
dishbreak | 2:3ce9a31a6a7e | 16 | #endif |