TUKS MCU Introductory course / TUKS-COURSE-TIMER
Committer:
elmot
Date:
Fri Feb 24 21:13:56 2017 +0000
Revision:
1:d0dfbce63a89
Ready-to-copy

Who changed what in which revision?

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