mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
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 20:41:14 by 1.7.2