1

Committer:
valeyev
Date:
Tue Mar 13 07:17:50 2018 +0000
Revision:
0:e056ac8fecf8
looking for...

Who changed what in which revision?

UserRevisionLine numberNew contents of line
valeyev 0:e056ac8fecf8 1
valeyev 0:e056ac8fecf8 2 /** \addtogroup hal */
valeyev 0:e056ac8fecf8 3 /** @{*/
valeyev 0:e056ac8fecf8 4 /* mbed Microcontroller Library
valeyev 0:e056ac8fecf8 5 * Copyright (c) 2014-2015 ARM Limited
valeyev 0:e056ac8fecf8 6 *
valeyev 0:e056ac8fecf8 7 * Licensed under the Apache License, Version 2.0 (the "License");
valeyev 0:e056ac8fecf8 8 * you may not use this file except in compliance with the License.
valeyev 0:e056ac8fecf8 9 * You may obtain a copy of the License at
valeyev 0:e056ac8fecf8 10 *
valeyev 0:e056ac8fecf8 11 * http://www.apache.org/licenses/LICENSE-2.0
valeyev 0:e056ac8fecf8 12 *
valeyev 0:e056ac8fecf8 13 * Unless required by applicable law or agreed to in writing, software
valeyev 0:e056ac8fecf8 14 * distributed under the License is distributed on an "AS IS" BASIS,
valeyev 0:e056ac8fecf8 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
valeyev 0:e056ac8fecf8 16 * See the License for the specific language governing permissions and
valeyev 0:e056ac8fecf8 17 * limitations under the License.
valeyev 0:e056ac8fecf8 18 */
valeyev 0:e056ac8fecf8 19 #ifndef MBED_BUFFER_H
valeyev 0:e056ac8fecf8 20 #define MBED_BUFFER_H
valeyev 0:e056ac8fecf8 21
valeyev 0:e056ac8fecf8 22 #include <stddef.h>
valeyev 0:e056ac8fecf8 23
valeyev 0:e056ac8fecf8 24 /** Generic buffer structure
valeyev 0:e056ac8fecf8 25 */
valeyev 0:e056ac8fecf8 26 typedef struct buffer_s {
valeyev 0:e056ac8fecf8 27 void *buffer; /**< the pointer to a buffer */
valeyev 0:e056ac8fecf8 28 size_t length; /**< the buffer length */
valeyev 0:e056ac8fecf8 29 size_t pos; /**< actual buffer position */
valeyev 0:e056ac8fecf8 30 uint8_t width; /**< The buffer unit width (8, 16, 32, 64), used for proper *buffer casting */
valeyev 0:e056ac8fecf8 31 } buffer_t;
valeyev 0:e056ac8fecf8 32
valeyev 0:e056ac8fecf8 33 #endif
valeyev 0:e056ac8fecf8 34
valeyev 0:e056ac8fecf8 35 /** @}*/