Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
buffer.h
00001 00002 /** \addtogroup hal */ 00003 /** @{*/ 00004 /* mbed Microcontroller Library 00005 * Copyright (c) 2014-2015 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_BUFFER_H 00020 #define MBED_BUFFER_H 00021 00022 #include <stddef.h> 00023 00024 /** Generic buffer structure 00025 */ 00026 typedef struct buffer_s { 00027 void *buffer; /**< the pointer to a buffer */ 00028 size_t length; /**< the buffer length */ 00029 size_t pos; /**< actual buffer position */ 00030 uint8_t width; /**< The buffer unit width (8, 16, 32, 64), used for proper *buffer casting */ 00031 } buffer_t; 00032 00033 #endif 00034 00035 /** @}*/
Generated on Tue Jul 12 2022 18:18:28 by
