PIR grove sensor that sends the sensed data to Thingspeak.com through the wifi module ESP 8266
Embed:
(wiki syntax)
Show/hide line numbers
mbed_stats.h
00001 00002 /** \addtogroup platform */ 00003 /** @{*/ 00004 /* mbed Microcontroller Library 00005 * Copyright (c) 2016-2016 ARM Limited 00006 * 00007 * Licensed under the Apache License, Version 2.0 (the "License"); 00008 * you may not use this file except in compliance with the License. 00009 * You may obtain a copy of the License at 00010 * 00011 * http://www.apache.org/licenses/LICENSE-2.0 00012 * 00013 * Unless required by applicable law or agreed to in writing, software 00014 * distributed under the License is distributed on an "AS IS" BASIS, 00015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00016 * See the License for the specific language governing permissions and 00017 * limitations under the License. 00018 */ 00019 #ifndef MBED_STATS_H 00020 #define MBED_STATS_H 00021 00022 #ifdef __cplusplus 00023 extern "C" { 00024 #endif 00025 00026 typedef struct { 00027 uint32_t current_size; /**< Bytes allocated currently. */ 00028 uint32_t max_size; /**< Max bytes allocated at a given time. */ 00029 uint32_t total_size; /**< Cumulative sum of bytes ever allocated. */ 00030 uint32_t alloc_cnt; /**< Current number of allocations. */ 00031 uint32_t alloc_fail_cnt; /**< Number of failed allocations. */ 00032 } mbed_stats_heap_t; 00033 00034 /** 00035 * Fill the passed in structure with heap stats. 00036 */ 00037 void mbed_stats_heap_get(mbed_stats_heap_t *stats); 00038 00039 #ifdef __cplusplus 00040 } 00041 #endif 00042 00043 #endif 00044 00045 /** @}*/
Generated on Tue Jul 12 2022 14:11:10 by 1.7.2