1 /*
2  * Copyright (c) 2023 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 #ifndef H_IMG_GR_STUB_
7 #define H_IMG_GR_STUB_
8 
9 #include <inttypes.h>
10 #include <zephyr/net_buf.h>
11 
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 #define TEST_IMAGE_NUM 1
18 #define TEST_IMAGE_SIZE 2048
19 #define TEST_SLOT_NUMBER 2
20 
21 void img_upload_stub_init(void);
22 void img_upload_response(size_t offset, int status);
23 void img_fail_response(int status);
24 void img_read_response(int count);
25 void img_erase_response(int status);
26 void img_upload_init_verify(struct net_buf *nb);
27 void img_state_write_verify(struct net_buf *nb);
28 void img_gr_stub_data_init(uint8_t *hash_ptr);
29 
30 #ifdef __cplusplus
31 }
32 #endif
33 
34 #endif /* H_IMG_GR_STUB_ */
35