mbed HRM11017を使ってkonashi.jsでナイトライダー

Dependencies:   BLE_API_Native_IRC mbed

Fork of BLE_RCBController by Junichi Katsu

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers blecommon.h Source File

blecommon.h

00001 /* mbed Microcontroller Library
00002  * Copyright (c) 2006-2013 ARM Limited
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016   
00017 #ifndef __BLE_COMMON_H__
00018 #define __BLE_COMMON_H__
00019 
00020 #define NRF51
00021 #define DEBUG_NRF_USER
00022 #define BLE_STACK_SUPPORT_REQD
00023 #define BOARD_PCA10001
00024 
00025 #ifdef __cplusplus
00026 extern "C" {
00027 #endif
00028 
00029 #include <stdint.h>
00030 
00031 /**************************************************************************/
00032 /*!
00033     \brief  Error codes for the BLE API
00034 */
00035 /**************************************************************************/
00036 typedef enum ble_error_e
00037 {
00038   BLE_ERROR_NONE                    = 0,    /**< No error */
00039   BLE_ERROR_BUFFER_OVERFLOW         = 1,    /**< The requested action would cause a buffer overflow and has been aborted */
00040   BLE_ERROR_NOT_IMPLEMENTED         = 2,    /**< Requested a feature that isn't yet implement or isn't supported by the target HW */
00041   BLE_ERROR_PARAM_OUT_OF_RANGE      = 3     /**< One of the supplied parameters is outside the valid range */
00042 } ble_error_t;
00043 
00044 #ifdef __cplusplus
00045 }
00046 #endif
00047 
00048 #endif