To get started with Seeed Tiny BLE, include detecting motion, button and battery level.

Dependencies:   BLE_API eMPL_MPU6050 mbed nRF51822

Committer:
yihui
Date:
Thu Nov 05 02:46:37 2015 +0000
Revision:
2:b61ddbb8528e
Parent:
1:fc2f9d636751
able to recover from i2c bus fault

Who changed what in which revision?

UserRevisionLine numberNew contents of line
yihui 1:fc2f9d636751 1 /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
yihui 1:fc2f9d636751 2 *
yihui 1:fc2f9d636751 3 * The information contained herein is property of Nordic Semiconductor ASA.
yihui 1:fc2f9d636751 4 * Terms and conditions of usage are described in detail in NORDIC
yihui 1:fc2f9d636751 5 * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
yihui 1:fc2f9d636751 6 *
yihui 1:fc2f9d636751 7 * Licensees are granted free, non-transferable use of the information. NO
yihui 1:fc2f9d636751 8 * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
yihui 1:fc2f9d636751 9 * the file.
yihui 1:fc2f9d636751 10 *
yihui 1:fc2f9d636751 11 */
yihui 1:fc2f9d636751 12
yihui 1:fc2f9d636751 13 /** @file
yihui 1:fc2f9d636751 14 *
yihui 1:fc2f9d636751 15 * @defgroup nrf_dfu_ble_svc_internal DFU BLE SVC internal
yihui 1:fc2f9d636751 16 * @{
yihui 1:fc2f9d636751 17 *
yihui 1:fc2f9d636751 18 * @brief DFU BLE SVC internal functions in bootloader. The DFU BLE SuperVisor Calls allow an
yihui 1:fc2f9d636751 19 * application to execute functions in the installed bootloader. This interface provides
yihui 1:fc2f9d636751 20 * internal Bootloader DFU functions for retrieving data exchanged through SuperVisor Calls.
yihui 1:fc2f9d636751 21 *
yihui 1:fc2f9d636751 22 */
yihui 1:fc2f9d636751 23
yihui 1:fc2f9d636751 24 #ifndef DFU_BLE_SVC_INTERNAL_H__
yihui 1:fc2f9d636751 25 #define DFU_BLE_SVC_INTERNAL_H__
yihui 1:fc2f9d636751 26
yihui 1:fc2f9d636751 27 #include <stdint.h>
yihui 1:fc2f9d636751 28 #include "dfu_ble_svc.h"
yihui 1:fc2f9d636751 29 #include "ble_gap.h"
yihui 1:fc2f9d636751 30
yihui 1:fc2f9d636751 31 /**@brief Internal bootloader/DFU function for retrieving peer data provided from application.
yihui 1:fc2f9d636751 32 *
yihui 1:fc2f9d636751 33 * @param[out] p_peer_data Peer data set by application to be used for DFU connection.
yihui 1:fc2f9d636751 34 *
yihui 1:fc2f9d636751 35 * @retval NRF_SUCCES If peer data is valid and can be used for connection.
yihui 1:fc2f9d636751 36 * @retval NRF_ERROR_INVALID_DATA If peer data is not available or invalid.
yihui 1:fc2f9d636751 37 */
yihui 1:fc2f9d636751 38 uint32_t dfu_ble_get_peer_data(dfu_ble_peer_data_t * p_peer_data);
yihui 1:fc2f9d636751 39
yihui 1:fc2f9d636751 40 #endif // DFU_BLE_SVC_INTERNAL_H__
yihui 1:fc2f9d636751 41
yihui 1:fc2f9d636751 42 /** @} */