Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API mbed nRF51822
Configuration.h@0:ab775bf55fe4, 2014-08-14 (annotated)
- Committer:
- pvaibhav
- Date:
- Thu Aug 14 14:13:53 2014 +0000
- Revision:
- 0:ab775bf55fe4
Minimal program to demo slow throughput/callback latency
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| pvaibhav | 0:ab775bf55fe4 | 1 | #ifndef _H_CONFIGURATION_H |
| pvaibhav | 0:ab775bf55fe4 | 2 | #define _H_CONFIGURATION_H |
| pvaibhav | 0:ab775bf55fe4 | 3 | |
| pvaibhav | 0:ab775bf55fe4 | 4 | /* |
| pvaibhav | 0:ab775bf55fe4 | 5 | * Configuration.h |
| pvaibhav | 0:ab775bf55fe4 | 6 | * Prashant Vaibhav, TobyRich GmbH |
| pvaibhav | 0:ab775bf55fe4 | 7 | * |
| pvaibhav | 0:ab775bf55fe4 | 8 | * This file defines default configuration parameters like device name, connection parameters etc. |
| pvaibhav | 0:ab775bf55fe4 | 9 | */ |
| pvaibhav | 0:ab775bf55fe4 | 10 | |
| pvaibhav | 0:ab775bf55fe4 | 11 | namespace Config |
| pvaibhav | 0:ab775bf55fe4 | 12 | { |
| pvaibhav | 0:ab775bf55fe4 | 13 | |
| pvaibhav | 0:ab775bf55fe4 | 14 | const uint8_t deviceName[] = "Transfer PRO"; |
| pvaibhav | 0:ab775bf55fe4 | 15 | |
| pvaibhav | 0:ab775bf55fe4 | 16 | const int advertisingInterval = 160; // (0.625 ms units) |
| pvaibhav | 0:ab775bf55fe4 | 17 | |
| pvaibhav | 0:ab775bf55fe4 | 18 | // default connection parameters conforming to Apple recommendations |
| pvaibhav | 0:ab775bf55fe4 | 19 | const int minConnectionInterval = 16; // (1.25 ms units) |
| pvaibhav | 0:ab775bf55fe4 | 20 | const int maxConnectionInterval = 40; // (1.25 ms units) |
| pvaibhav | 0:ab775bf55fe4 | 21 | const int slaveLatency = 0; |
| pvaibhav | 0:ab775bf55fe4 | 22 | const int supervisionTimeout = 500; // (10 ms units) |
| pvaibhav | 0:ab775bf55fe4 | 23 | |
| pvaibhav | 0:ab775bf55fe4 | 24 | const int blockSize = 16; // in bytes |
| pvaibhav | 0:ab775bf55fe4 | 25 | |
| pvaibhav | 0:ab775bf55fe4 | 26 | }; |
| pvaibhav | 0:ab775bf55fe4 | 27 | |
| pvaibhav | 0:ab775bf55fe4 | 28 | #endif//_H_CONFIGURATION_H |