PAL A Platform Abstraction Layer connects the mbed-client with the underlying platform.

- Main Page
- Data Structures
- Files

- File List
- Globals

pal_types.h
Go to the documentation of this file.
1 /*
2 * Copyright (c) 2016 ARM Limited. All rights reserved.
3 * SPDX-License-Identifier: Apache-2.0
4 * Licensed under the Apache License, Version 2.0 (the License); you may
5 * not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17
18 #ifndef _PAL_TYPES_H
19 #define _PAL_TYPES_H
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 #include <stdint.h>
25 #include <stdbool.h>
26 #include <stddef.h>
27
28 #define PAL_SUCCESS 0
29 #define NULLPTR 0
30
31 typedef int32_t palStatus_t;
32
33
34 typedef struct _palBuffer_t
35 {
36 uint32_t maxBufferLength;
37 uint32_t bufferLength;
38 uint8_t *buffer;
39 } palBuffer_t;
40
41 typedef struct _palConstBuffer_t
42 {
43 const uint32_t maxBufferLength;
44 const uint32_t bufferLength;
45 const uint8_t *buffer;
46 } palConstBuffer_t;
47
48 #ifdef __cplusplus
49 }
50 #endif
51 #endif //_PAL_TYPES_H
_palConstBuffer_t::bufferLength
const uint32_t bufferLength
Definition: pal_types.h:44
_palBuffer_t::bufferLength
uint32_t bufferLength
Definition: pal_types.h:37
_palBuffer_t
Definition: pal_types.h:34
palBuffer_t
struct _palBuffer_t palBuffer_t
palConstBuffer_t
struct _palConstBuffer_t palConstBuffer_t
_palConstBuffer_t::buffer
const uint8_t * buffer
Definition: pal_types.h:45
_palBuffer_t::maxBufferLength
uint32_t maxBufferLength
Definition: pal_types.h:36
_palConstBuffer_t
Definition: pal_types.h:41
_palBuffer_t::buffer
uint8_t * buffer
Definition: pal_types.h:38
_palConstBuffer_t::maxBufferLength
const uint32_t maxBufferLength
Definition: pal_types.h:43
palStatus_t
int32_t palStatus_t
Definition: pal_types.h:31