Nordic stack and drivers for the mbed BLE API
Fork of nRF51822 by
TARGET_MCU_NRF51822/sdk/source/ble/common/ble_sensor_location.h@639:4794dfdc59c0, 2017-11-09 (annotated)
- Committer:
- amithy
- Date:
- Thu Nov 09 22:13:54 2017 +0000
- Revision:
- 639:4794dfdc59c0
- Parent:
- 638:c90ae1400bf2
for testing export
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Vincent Coubard |
638:c90ae1400bf2 | 1 | /* |
Vincent Coubard |
638:c90ae1400bf2 | 2 | * Copyright (c) Nordic Semiconductor ASA |
Vincent Coubard |
638:c90ae1400bf2 | 3 | * All rights reserved. |
Vincent Coubard |
638:c90ae1400bf2 | 4 | * |
Vincent Coubard |
638:c90ae1400bf2 | 5 | * Redistribution and use in source and binary forms, with or without modification, |
Vincent Coubard |
638:c90ae1400bf2 | 6 | * are permitted provided that the following conditions are met: |
Vincent Coubard |
638:c90ae1400bf2 | 7 | * |
Vincent Coubard |
638:c90ae1400bf2 | 8 | * 1. Redistributions of source code must retain the above copyright notice, this |
Vincent Coubard |
638:c90ae1400bf2 | 9 | * list of conditions and the following disclaimer. |
Vincent Coubard |
638:c90ae1400bf2 | 10 | * |
Vincent Coubard |
638:c90ae1400bf2 | 11 | * 2. Redistributions in binary form must reproduce the above copyright notice, this |
Vincent Coubard |
638:c90ae1400bf2 | 12 | * list of conditions and the following disclaimer in the documentation and/or |
Vincent Coubard |
638:c90ae1400bf2 | 13 | * other materials provided with the distribution. |
Vincent Coubard |
638:c90ae1400bf2 | 14 | * |
Vincent Coubard |
638:c90ae1400bf2 | 15 | * 3. Neither the name of Nordic Semiconductor ASA nor the names of other |
Vincent Coubard |
638:c90ae1400bf2 | 16 | * contributors to this software may be used to endorse or promote products |
Vincent Coubard |
638:c90ae1400bf2 | 17 | * derived from this software without specific prior written permission. |
Vincent Coubard |
638:c90ae1400bf2 | 18 | * |
Vincent Coubard |
638:c90ae1400bf2 | 19 | * |
Vincent Coubard |
638:c90ae1400bf2 | 20 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
Vincent Coubard |
638:c90ae1400bf2 | 21 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
Vincent Coubard |
638:c90ae1400bf2 | 22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
Vincent Coubard |
638:c90ae1400bf2 | 23 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
Vincent Coubard |
638:c90ae1400bf2 | 24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
Vincent Coubard |
638:c90ae1400bf2 | 25 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
Vincent Coubard |
638:c90ae1400bf2 | 26 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
Vincent Coubard |
638:c90ae1400bf2 | 27 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
Vincent Coubard |
638:c90ae1400bf2 | 28 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
Vincent Coubard |
638:c90ae1400bf2 | 29 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Vincent Coubard |
638:c90ae1400bf2 | 30 | * |
Vincent Coubard |
638:c90ae1400bf2 | 31 | */ |
Vincent Coubard |
638:c90ae1400bf2 | 32 | |
Vincent Coubard |
638:c90ae1400bf2 | 33 | /* Attention! |
Vincent Coubard |
638:c90ae1400bf2 | 34 | * To maintain compliance with Nordic Semiconductor ASA's Bluetooth profile |
Vincent Coubard |
638:c90ae1400bf2 | 35 | * qualification listings, this section of source code must not be modified. |
Vincent Coubard |
638:c90ae1400bf2 | 36 | */ |
Vincent Coubard |
638:c90ae1400bf2 | 37 | |
Vincent Coubard |
638:c90ae1400bf2 | 38 | #ifndef BLE_SENSOR_LOCATION_H__ |
Vincent Coubard |
638:c90ae1400bf2 | 39 | #define BLE_SENSOR_LOCATION_H__ |
Vincent Coubard |
638:c90ae1400bf2 | 40 | |
Vincent Coubard |
638:c90ae1400bf2 | 41 | typedef enum { |
Vincent Coubard |
638:c90ae1400bf2 | 42 | BLE_SENSOR_LOCATION_OTHER = 0 , /**<-- Other */ |
Vincent Coubard |
638:c90ae1400bf2 | 43 | BLE_SENSOR_LOCATION_TOP_OF_SHOE = 1 , /**<-- Top of shoe */ |
Vincent Coubard |
638:c90ae1400bf2 | 44 | BLE_SENSOR_LOCATION_IN_SHOE = 2 , /**<-- In shoe */ |
Vincent Coubard |
638:c90ae1400bf2 | 45 | BLE_SENSOR_LOCATION_HIP = 3 , /**<-- Hip */ |
Vincent Coubard |
638:c90ae1400bf2 | 46 | BLE_SENSOR_LOCATION_FRONT_WHEEL = 4 , /**<-- Front Wheel */ |
Vincent Coubard |
638:c90ae1400bf2 | 47 | BLE_SENSOR_LOCATION_LEFT_CRANK = 5 , /**<-- Left Crank */ |
Vincent Coubard |
638:c90ae1400bf2 | 48 | BLE_SENSOR_LOCATION_RIGHT_CRANK = 6 , /**<-- Right Crank */ |
Vincent Coubard |
638:c90ae1400bf2 | 49 | BLE_SENSOR_LOCATION_LEFT_PEDAL = 7 , /**<-- Left Pedal */ |
Vincent Coubard |
638:c90ae1400bf2 | 50 | BLE_SENSOR_LOCATION_RIGHT_PEDAL = 8 , /**<-- Right Pedal */ |
Vincent Coubard |
638:c90ae1400bf2 | 51 | BLE_SENSOR_LOCATION_FRONT_HUB = 9 , /**<-- Front Hub */ |
Vincent Coubard |
638:c90ae1400bf2 | 52 | BLE_SENSOR_LOCATION_REAR_DROPOUT = 10, /**<-- Rear Dropout */ |
Vincent Coubard |
638:c90ae1400bf2 | 53 | BLE_SENSOR_LOCATION_CHAINSTAY = 11, /**<-- Chainstay */ |
Vincent Coubard |
638:c90ae1400bf2 | 54 | BLE_SENSOR_LOCATION_REAR_WHEEL = 12, /**<-- Rear Wheel */ |
Vincent Coubard |
638:c90ae1400bf2 | 55 | BLE_SENSOR_LOCATION_REAR_HUB = 13, /**<-- Rear Hub */ |
Vincent Coubard |
638:c90ae1400bf2 | 56 | }ble_sensor_location_t; |
Vincent Coubard |
638:c90ae1400bf2 | 57 | |
Vincent Coubard |
638:c90ae1400bf2 | 58 | #define BLE_NB_MAX_SENSOR_LOCATIONS 14 |
Vincent Coubard |
638:c90ae1400bf2 | 59 | |
Vincent Coubard |
638:c90ae1400bf2 | 60 | #endif // BLE_SENSOR_LOCATION_H__ |