API for temperature sensor in nrf51822
Dependents: BLE_TemperatureAdvertising BLE_TemperatureObserver TEMP_YM2
TMP_nrf51.h
00001 00002 /* mbed Microcontroller Library 00003 * Copyright (c) 2006-2015 ARM Limited 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 */ 00017 00018 #ifndef TMP_NRF51_H 00019 #define TMP_NRF51_H 00020 00021 #include "mbed.h" 00022 00023 //!Library for the nrf51822 internal temperature sensor. 00024 00025 class TMP_nrf51 00026 { 00027 public: 00028 //!use default constructor and destructor. 00029 00030 /**@brief Sensor value type. */ 00031 typedef float tmpSensorValue_t; 00032 00033 /** 00034 * @brief Get the temperature value. 00035 * 00036 * @return Die temperature in °C. 00037 * 00038 */ 00039 tmpSensorValue_t get(); 00040 00041 }; 00042 00043 #endif
Generated on Tue Jul 12 2022 18:14:20 by 1.7.2