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.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
buffer.h
00001 00002 /** \addtogroup hal */ 00003 /** @{*/ 00004 /* mbed Microcontroller Library 00005 * Copyright (c) 2014-2015 ARM Limited 00006 * SPDX-License-Identifier: Apache-2.0 00007 * 00008 * Licensed under the Apache License, Version 2.0 (the "License"); 00009 * you may not use this file except in compliance with the License. 00010 * You may obtain a copy of the License at 00011 * 00012 * http://www.apache.org/licenses/LICENSE-2.0 00013 * 00014 * Unless required by applicable law or agreed to in writing, software 00015 * distributed under the License is distributed on an "AS IS" BASIS, 00016 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00017 * See the License for the specific language governing permissions and 00018 * limitations under the License. 00019 */ 00020 #ifndef MBED_BUFFER_H 00021 #define MBED_BUFFER_H 00022 00023 #include <stddef.h> 00024 00025 /** Generic buffer structure 00026 */ 00027 typedef struct buffer_s { 00028 void *buffer; /**< the pointer to a buffer */ 00029 size_t length; /**< the buffer length */ 00030 size_t pos; /**< actual buffer position */ 00031 uint8_t width; /**< The buffer unit width (8, 16, 32, 64), used for proper *buffer casting */ 00032 } buffer_t; 00033 00034 #endif 00035 00036 /** @}*/
Generated on Tue Jul 12 2022 13:54:03 by
