PIR grove sensor that sends the sensed data to Thingspeak.com through the wifi module ESP 8266
esp_attemp3/mbed/hal/buffer.h@0:3954a906acc2, 2016-12-05 (annotated)
- Committer:
- skrawool
- Date:
- Mon Dec 05 16:39:27 2016 +0000
- Revision:
- 0:3954a906acc2
PIR grove sensor that sends the sensed data to thingspeak through the wifi module ESP 8266
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
skrawool | 0:3954a906acc2 | 1 | |
skrawool | 0:3954a906acc2 | 2 | /** \addtogroup hal */ |
skrawool | 0:3954a906acc2 | 3 | /** @{*/ |
skrawool | 0:3954a906acc2 | 4 | /* mbed Microcontroller Library |
skrawool | 0:3954a906acc2 | 5 | * Copyright (c) 2014-2015 ARM Limited |
skrawool | 0:3954a906acc2 | 6 | * |
skrawool | 0:3954a906acc2 | 7 | * Licensed under the Apache License, Version 2.0 (the "License"); |
skrawool | 0:3954a906acc2 | 8 | * you may not use this file except in compliance with the License. |
skrawool | 0:3954a906acc2 | 9 | * You may obtain a copy of the License at |
skrawool | 0:3954a906acc2 | 10 | * |
skrawool | 0:3954a906acc2 | 11 | * http://www.apache.org/licenses/LICENSE-2.0 |
skrawool | 0:3954a906acc2 | 12 | * |
skrawool | 0:3954a906acc2 | 13 | * Unless required by applicable law or agreed to in writing, software |
skrawool | 0:3954a906acc2 | 14 | * distributed under the License is distributed on an "AS IS" BASIS, |
skrawool | 0:3954a906acc2 | 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
skrawool | 0:3954a906acc2 | 16 | * See the License for the specific language governing permissions and |
skrawool | 0:3954a906acc2 | 17 | * limitations under the License. |
skrawool | 0:3954a906acc2 | 18 | */ |
skrawool | 0:3954a906acc2 | 19 | #ifndef MBED_BUFFER_H |
skrawool | 0:3954a906acc2 | 20 | #define MBED_BUFFER_H |
skrawool | 0:3954a906acc2 | 21 | |
skrawool | 0:3954a906acc2 | 22 | #include <stddef.h> |
skrawool | 0:3954a906acc2 | 23 | |
skrawool | 0:3954a906acc2 | 24 | /** Generic buffer structure |
skrawool | 0:3954a906acc2 | 25 | */ |
skrawool | 0:3954a906acc2 | 26 | typedef struct buffer_s { |
skrawool | 0:3954a906acc2 | 27 | void *buffer; /**< the pointer to a buffer */ |
skrawool | 0:3954a906acc2 | 28 | size_t length; /**< the buffer length */ |
skrawool | 0:3954a906acc2 | 29 | size_t pos; /**< actual buffer position */ |
skrawool | 0:3954a906acc2 | 30 | uint8_t width; /**< The buffer unit width (8, 16, 32, 64), used for proper *buffer casting */ |
skrawool | 0:3954a906acc2 | 31 | } buffer_t; |
skrawool | 0:3954a906acc2 | 32 | |
skrawool | 0:3954a906acc2 | 33 | #endif |
skrawool | 0:3954a906acc2 | 34 | |
skrawool | 0:3954a906acc2 | 35 | /** @}*/ |