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

- Main Page
- Data Structures
- Files

- File List
- Globals

pal_plat_update.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_PLAT_UPDATE_HEADER
19 #define PAL_PLAT_UPDATE_HEADER
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24
25
26 #include "pal_update.h"
27
32 palStatus_t pal_plat_imageInitAPI(palImageSignalEvent_t CBfunction);
33
34
38 palStatus_t pal_plat_imageDeInit(void);
39
44 palStatus_t pal_plat_imageGetMaxNumberOfImages(uint8_t* imageNumber);
45
51 palStatus_t pal_plat_imageReserveSpace(palImageId_t imageId, size_t imageSize);
52
53
59 palStatus_t pal_plat_imageSetHeader(palImageId_t imageId,palImageHeaderDeails_t* details);
60
67 palStatus_t pal_plat_imageWrite(palImageId_t imageId, size_t offset, palConstBuffer_t* chunk);
68
74 palStatus_t pal_plat_imageSetVersion(palImageId_t imageId, const palConstBuffer_t* version);
75
80 palStatus_t pal_plat_imageFlush(palImageId_t imageId);
81
89 palStatus_t pal_plat_imageGetDirectMemAccess(palImageId_t imageId, void** imagePtr, size_t* imageSizeInBytes);
90
91
100 palStatus_t pal_plat_imageReadToBuffer(palImageId_t imageId, size_t offset, palBuffer_t* chunk);
101
105 palStatus_t pal_plat_imageActivate(palImageId_t imageId);
106
110 palStatus_t pal_plat_imageGetActiveHash(palBuffer_t* hash);
111
115 palStatus_t pal_plat_imageGetActiveVersion (palBuffer_t* version);
116
120 palStatus_t pal_plat_imageWriteHashToMemory(const palConstBuffer_t* const hashValue);
121
122
123
124
125 #endif /* SOURCE_PAL_IMPL_MODULES_UPDATE_PAL_PALT_UPDATE_H_ */
126 #ifdef __cplusplus
127 }
128 #endif
_palBuffer_t
Definition: pal_types.h:34
pal_plat_imageSetVersion
palStatus_t pal_plat_imageSetVersion(palImageId_t imageId, const palConstBuffer_t *version)
Definition: pal_plat_update.cpp:420
pal_plat_imageInitAPI
palStatus_t pal_plat_imageInitAPI(palImageSignalEvent_t CBfunction)
Definition: pal_plat_update.cpp:244
_palImageHeaderDeails_t
Definition: pal_update.h:33
pal_plat_imageWriteHashToMemory
palStatus_t pal_plat_imageWriteHashToMemory(const palConstBuffer_t *const hashValue)
Definition: pal_plat_update.cpp:551
pal_plat_imageGetActiveVersion
palStatus_t pal_plat_imageGetActiveVersion(palBuffer_t *version)
Definition: pal_plat_update.cpp:545
pal_plat_imageWrite
palStatus_t pal_plat_imageWrite(palImageId_t imageId, size_t offset, palConstBuffer_t *chunk)
Definition: pal_plat_update.cpp:926
pal_plat_imageFlush
palStatus_t pal_plat_imageFlush(palImageId_t imageId)
Definition: pal_plat_update.cpp:1175
pal_plat_imageGetMaxNumberOfImages
palStatus_t pal_plat_imageGetMaxNumberOfImages(uint8_t *imageNumber)
Definition: pal_plat_update.cpp:415
pal_plat_imageGetActiveHash
palStatus_t pal_plat_imageGetActiveHash(palBuffer_t *hash)
Definition: pal_plat_update.cpp:534
_palConstBuffer_t
Definition: pal_types.h:41
pal_plat_imageDeInit
palStatus_t pal_plat_imageDeInit(void)
Definition: pal_plat_update.cpp:251
palImageSignalEvent_t
void(* palImageSignalEvent_t)(palImageEvents_t event)
Definition: pal_update.h:64
pal_plat_imageSetHeader
palStatus_t pal_plat_imageSetHeader(palImageId_t imageId, palImageHeaderDeails_t *details)
Definition: pal_plat_update.cpp:697
pal_update.h
pal_plat_imageReadToBuffer
palStatus_t pal_plat_imageReadToBuffer(palImageId_t imageId, size_t offset, palBuffer_t *chunk)
Definition: pal_plat_update.cpp:1055
palImageId_t
uint32_t palImageId_t
Definition: pal_update.h:31
pal_plat_imageReserveSpace
palStatus_t pal_plat_imageReserveSpace(palImageId_t imageId, size_t imageSize)
Definition: pal_plat_update.cpp:718
pal_plat_imageGetDirectMemAccess
palStatus_t pal_plat_imageGetDirectMemAccess(palImageId_t imageId, void **imagePtr, size_t *imageSizeInBytes)
Definition: pal_plat_update.cpp:425
pal_plat_imageActivate
palStatus_t pal_plat_imageActivate(palImageId_t imageId)
Definition: pal_plat_update.cpp:430
palStatus_t
int32_t palStatus_t
Definition: pal_types.h:31