Firmware for the mbed in the BlueSync Sensor platform. Intended to communicate with a BlueGiga BLE112 Bluetooth LE module over UART.

Dependencies:   TimerCapture mbed

bluesync_types.h

Committer:
dishbreak
Date:
2015-06-12
Revision:
6:51884d3fd44d
Parent:
5:fd4773c12f93

File content as of revision 6:51884d3fd44d:

union intByteArray {
    uint32_t integer;
    int32_t signed_integer;
    uint8_t byte[4];
};

namespace EventCode {
enum EventCodeEnum {
    ADV_RECV = 0x01,
    SLAVE_MODE = 0x02,
    MASTER_MODE = 0x03,
    GET_STATE = 0x04,
    SET_TIMESTAMP = 0x05,
    OFFSET_RECV = 0x06,
    SET_SENSOR_TIME = 0x07
};
}