Smart Remote 3 nRF52 v1.2
Copy URL
Source
Bootloader
bootloader
dfu
nrf_dfu_handling_error.h
1
/*$$$LICENCE_NORDIC_STANDARD<2017>$$$*/
2
13
#ifndef DFU_HANDLING_ERROR_H__
14
#define DFU_HANDLING_ERROR_H__
15
16
#include "nrf_dfu_types.h"
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
22
27
typedef
enum
28
{
29
NRF_DFU_RES_CODE_INVALID
= 0x00,
30
NRF_DFU_RES_CODE_SUCCESS
= 0x01,
31
NRF_DFU_RES_CODE_OP_CODE_NOT_SUPPORTED
= 0x02,
32
NRF_DFU_RES_CODE_INVALID_PARAMETER
= 0x03,
33
NRF_DFU_RES_CODE_INSUFFICIENT_RESOURCES
= 0x04,
34
NRF_DFU_RES_CODE_INVALID_OBJECT
= 0x05,
35
NRF_DFU_RES_CODE_UNSUPPORTED_TYPE
= 0x07,
36
NRF_DFU_RES_CODE_OPERATION_NOT_PERMITTED
= 0x08,
37
NRF_DFU_RES_CODE_OPERATION_FAILED
= 0x0A,
38
NRF_DFU_RES_CODE_EXT_ERROR
= 0x0B,
39
}
nrf_dfu_res_code_t
;
40
47
typedef
enum
48
{
49
NRF_DFU_EXT_ERROR_NO_ERROR
= 0x00,
50
NRF_DFU_EXT_ERROR_INVALID_ERROR_CODE
= 0x01,
51
NRF_DFU_EXT_ERROR_WRONG_COMMAND_FORMAT
= 0x02,
55
NRF_DFU_EXT_ERROR_UNKNOWN_COMMAND
= 0x03,
56
NRF_DFU_EXT_ERROR_INIT_COMMAND_INVALID
= 0x04,
59
NRF_DFU_EXT_ERROR_FW_VERSION_FAILURE
= 0x05,
62
NRF_DFU_EXT_ERROR_HW_VERSION_FAILURE
= 0x06,
64
NRF_DFU_EXT_ERROR_SD_VERSION_FAILURE
= 0x07,
66
NRF_DFU_EXT_ERROR_SIGNATURE_MISSING
= 0x08,
69
NRF_DFU_EXT_ERROR_WRONG_HASH_TYPE
= 0x09,
70
NRF_DFU_EXT_ERROR_HASH_FAILED
= 0x0A,
71
NRF_DFU_EXT_ERROR_WRONG_SIGNATURE_TYPE
= 0x0B,
72
NRF_DFU_EXT_ERROR_VERIFICATION_FAILED
= 0x0C,
73
NRF_DFU_EXT_ERROR_INSUFFICIENT_SPACE
= 0x0D,
74
}
nrf_dfu_ext_error_code_t
;
75
76
85
nrf_dfu_res_code_t
ext_error_set
(
nrf_dfu_ext_error_code_t
error_code);
86
93
nrf_dfu_ext_error_code_t
ext_error_get
(
void
);
94
95
96
#ifdef __cplusplus
97
}
98
#endif
99
100
#endif // DFU_HANDLING_ERROR_H__
101