nRF51822 serves as the bridge between BLE central and MCU, which makes cental able to fetch photos from serial camera.

Dependencies:   BLE_API mbed nRF51822

Fork of nRF51822_blinky by RedBearLab

inc/application.h

Committer:
stormysun513
Date:
2016-05-22
Revision:
21:4753996b0bcb
Parent:
11:b3929de96933

File content as of revision 21:4753996b0bcb:

#ifndef APPLICATION_H
#define APPLICATION_H

#include "mbed.h"

#define TMP102_ADDR                 (0x48 << 1)
#define TMP102_TEMP_REG_ADDR        0x00

#define EEPROM_ADDR                 (0x50 << 1)

float readTMP102Temperature(I2C& i2c, char* reg);
bool writeAT24EEPROMBuffer(I2C& i2c, uint8_t dataAddr, char* buf, uint16_t length);
bool readAT24EEPROMBuffer(I2C& i2c, uint8_t dataAddr, char* buf, uint16_t length);

#endif