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
inc/application.h@9:d44d16ffd48c, 2016-02-19 (annotated)
- Committer:
- stormysun513
- Date:
- Fri Feb 19 09:23:56 2016 +0000
- Revision:
- 9:d44d16ffd48c
commit for upgrade library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
stormysun513 | 9:d44d16ffd48c | 1 | #ifndef APPLICATION_H |
stormysun513 | 9:d44d16ffd48c | 2 | #define APPLICATION_H |
stormysun513 | 9:d44d16ffd48c | 3 | |
stormysun513 | 9:d44d16ffd48c | 4 | #include "mbed.h" |
stormysun513 | 9:d44d16ffd48c | 5 | |
stormysun513 | 9:d44d16ffd48c | 6 | #define TMP102_ADDR (0x48 << 1) |
stormysun513 | 9:d44d16ffd48c | 7 | #define TMP102_TEMP_REG_ADDR 0x00 |
stormysun513 | 9:d44d16ffd48c | 8 | |
stormysun513 | 9:d44d16ffd48c | 9 | #define EEPROM_ADDR (0x50 << 1) |
stormysun513 | 9:d44d16ffd48c | 10 | |
stormysun513 | 9:d44d16ffd48c | 11 | float readTMP102Temperature(I2C& i2c, char* reg); |
stormysun513 | 9:d44d16ffd48c | 12 | bool writeAT24EEPROMBuffer(I2C& i2c, uint8_t dataAddr, char* buf, uint16_t length); |
stormysun513 | 9:d44d16ffd48c | 13 | bool readAT24EEPROMBuffer(I2C& i2c, uint8_t dataAddr, char* buf, uint16_t length); |
stormysun513 | 9:d44d16ffd48c | 14 | |
stormysun513 | 9:d44d16ffd48c | 15 | #endif |