For with fix for disconnection notifications
Fork of nRF51822 by
nordic/nrf-sdk/ble/ble_services/ble_sensor_location.h@61:057be2a0cd38, 2014-09-03 (annotated)
- Committer:
- janekm
- Date:
- Wed Sep 03 17:19:53 2014 +0000
- Revision:
- 61:057be2a0cd38
- Parent:
- 37:c29c330d942c
Fix disconnection notification to application (used to only notify on locally initiated disconnection)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Rohit Grover |
37:c29c330d942c | 1 | /* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved. |
Rohit Grover |
37:c29c330d942c | 2 | * |
Rohit Grover |
37:c29c330d942c | 3 | * The information contained herein is property of Nordic Semiconductor ASA. |
Rohit Grover |
37:c29c330d942c | 4 | * Terms and conditions of usage are described in detail in NORDIC |
Rohit Grover |
37:c29c330d942c | 5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. |
Rohit Grover |
37:c29c330d942c | 6 | * |
Rohit Grover |
37:c29c330d942c | 7 | * Licensees are granted free, non-transferable use of the information. NO |
Rohit Grover |
37:c29c330d942c | 8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from |
Rohit Grover |
37:c29c330d942c | 9 | * the file. |
Rohit Grover |
37:c29c330d942c | 10 | * |
Rohit Grover |
37:c29c330d942c | 11 | */ |
Rohit Grover |
37:c29c330d942c | 12 | |
Rohit Grover |
37:c29c330d942c | 13 | /* Attention! |
Rohit Grover |
37:c29c330d942c | 14 | * To maintain compliance with Nordic Semiconductor ASAs Bluetooth profile |
Rohit Grover |
37:c29c330d942c | 15 | * qualification listings, this section of source code must not be modified. |
Rohit Grover |
37:c29c330d942c | 16 | */ |
Rohit Grover |
37:c29c330d942c | 17 | |
Rohit Grover |
37:c29c330d942c | 18 | #ifndef BLE_SENSOR_LOCATION_H__ |
Rohit Grover |
37:c29c330d942c | 19 | #define BLE_SENSOR_LOCATION_H__ |
Rohit Grover |
37:c29c330d942c | 20 | |
Rohit Grover |
37:c29c330d942c | 21 | typedef enum { |
Rohit Grover |
37:c29c330d942c | 22 | BLE_SENSOR_LOCATION_OTHER = 0 , /**<-- Other */ |
Rohit Grover |
37:c29c330d942c | 23 | BLE_SENSOR_LOCATION_TOP_OF_SHOE = 1 , /**<-- Top of shoe */ |
Rohit Grover |
37:c29c330d942c | 24 | BLE_SENSOR_LOCATION_IN_SHOE = 2 , /**<-- In shoe */ |
Rohit Grover |
37:c29c330d942c | 25 | BLE_SENSOR_LOCATION_HIP = 3 , /**<-- Hip */ |
Rohit Grover |
37:c29c330d942c | 26 | BLE_SENSOR_LOCATION_FRONT_WHEEL = 4 , /**<-- Front Wheel */ |
Rohit Grover |
37:c29c330d942c | 27 | BLE_SENSOR_LOCATION_LEFT_CRANK = 5 , /**<-- Left Crank */ |
Rohit Grover |
37:c29c330d942c | 28 | BLE_SENSOR_LOCATION_RIGHT_CRANK = 6 , /**<-- Right Crank */ |
Rohit Grover |
37:c29c330d942c | 29 | BLE_SENSOR_LOCATION_LEFT_PEDAL = 7 , /**<-- Left Pedal */ |
Rohit Grover |
37:c29c330d942c | 30 | BLE_SENSOR_LOCATION_RIGHT_PEDAL = 8 , /**<-- Right Pedal */ |
Rohit Grover |
37:c29c330d942c | 31 | BLE_SENSOR_LOCATION_FRONT_HUB = 9 , /**<-- Front Hub */ |
Rohit Grover |
37:c29c330d942c | 32 | BLE_SENSOR_LOCATION_REAR_DROPOUT = 10, /**<-- Rear Dropout */ |
Rohit Grover |
37:c29c330d942c | 33 | BLE_SENSOR_LOCATION_CHAINSTAY = 11, /**<-- Chainstay */ |
Rohit Grover |
37:c29c330d942c | 34 | BLE_SENSOR_LOCATION_REAR_WHEEL = 12, /**<-- Rear Wheel */ |
Rohit Grover |
37:c29c330d942c | 35 | BLE_SENSOR_LOCATION_REAR_HUB = 13, /**<-- Rear Hub */ |
Rohit Grover |
37:c29c330d942c | 36 | }ble_sensor_location_t; |
Rohit Grover |
37:c29c330d942c | 37 | |
Rohit Grover |
37:c29c330d942c | 38 | #define BLE_NB_MAX_SENSOR_LOCATIONS 14 |
Rohit Grover |
37:c29c330d942c | 39 | |
Rohit Grover |
37:c29c330d942c | 40 | #endif // BLE_SENSOR_LOCATION_H__ |