PAL
A Platform Abstraction Layer connects the mbed-client with the underlying platform.
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 
33 
34 
39 
45 
51 palStatus_t pal_plat_imageReserveSpace(palImageId_t imageId, size_t imageSize);
52 
53 
60 
67 palStatus_t pal_plat_imageWrite(palImageId_t imageId, size_t offset, palConstBuffer_t* chunk);
68 
75 
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 
106 
111 
116 
121 
122 
123 
124 
125 #endif /* SOURCE_PAL_IMPL_MODULES_UPDATE_PAL_PALT_UPDATE_H_ */
126 #ifdef __cplusplus
127 }
128 #endif
Definition: pal_types.h:34
palStatus_t pal_plat_imageSetVersion(palImageId_t imageId, const palConstBuffer_t *version)
Definition: pal_plat_update.cpp:420
palStatus_t pal_plat_imageInitAPI(palImageSignalEvent_t CBfunction)
Definition: pal_plat_update.cpp:244
Definition: pal_update.h:33
palStatus_t pal_plat_imageWriteHashToMemory(const palConstBuffer_t *const hashValue)
Definition: pal_plat_update.cpp:551
palStatus_t pal_plat_imageGetActiveVersion(palBuffer_t *version)
Definition: pal_plat_update.cpp:545
palStatus_t pal_plat_imageWrite(palImageId_t imageId, size_t offset, palConstBuffer_t *chunk)
Definition: pal_plat_update.cpp:926
palStatus_t pal_plat_imageFlush(palImageId_t imageId)
Definition: pal_plat_update.cpp:1175
palStatus_t pal_plat_imageGetMaxNumberOfImages(uint8_t *imageNumber)
Definition: pal_plat_update.cpp:415
palStatus_t pal_plat_imageGetActiveHash(palBuffer_t *hash)
Definition: pal_plat_update.cpp:534
Definition: pal_types.h:41
palStatus_t pal_plat_imageDeInit(void)
Definition: pal_plat_update.cpp:251
void(* palImageSignalEvent_t)(palImageEvents_t event)
Definition: pal_update.h:64
palStatus_t pal_plat_imageSetHeader(palImageId_t imageId, palImageHeaderDeails_t *details)
Definition: pal_plat_update.cpp:697
palStatus_t pal_plat_imageReadToBuffer(palImageId_t imageId, size_t offset, palBuffer_t *chunk)
Definition: pal_plat_update.cpp:1055
uint32_t palImageId_t
Definition: pal_update.h:31
palStatus_t pal_plat_imageReserveSpace(palImageId_t imageId, size_t imageSize)
Definition: pal_plat_update.cpp:718
palStatus_t pal_plat_imageGetDirectMemAccess(palImageId_t imageId, void **imagePtr, size_t *imageSizeInBytes)
Definition: pal_plat_update.cpp:425
palStatus_t pal_plat_imageActivate(palImageId_t imageId)
Definition: pal_plat_update.cpp:430
int32_t palStatus_t
Definition: pal_types.h:31