BA / SerialCom

Fork of OmniWheels by Gustav Atmel

Committer:
gustavatmel
Date:
Tue May 01 15:47:08 2018 +0000
Revision:
1:9c5af431a1f1
sdf

Who changed what in which revision?

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