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