Smart Remote 3 nRF52 v1.2
Copy URL
Source
Bootloader
bootloader
dfu
nrf_dfu_transport.h
1
/*$$$LICENCE_NORDIC_STANDARD<2016>$$$*/
13
#ifndef NRF_DFU_TRANSPORT_H__
14
#define NRF_DFU_TRANSPORT_H__
15
16
#include <stdbool.h>
17
#include <stdint.h>
18
#include "nrf_section.h"
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
24
36
typedef
uint32_t (*
nrf_dfu_init_fn_t
)(
bool
low_power_mode);
37
38
45
typedef
uint32_t (*
nrf_dfu_disconnect_fn_t
)(void);
46
47
52
typedef
struct
53
{
54
nrf_dfu_init_fn_t
init_func
;
55
nrf_dfu_disconnect_fn_t
close_func
;
56
}
nrf_dfu_transport_t
;
57
58
67
uint32_t
nrf_dfu_transports_init
(
bool
low_power_mode);
68
75
uint32_t
nrf_dfu_transports_close
(
void
);
76
77
83
#define DFU_TRANSPORT_REGISTER(trans_var) NRF_SECTION_ITEM_REGISTER(dfu_trans, trans_var)
84
85
86
#ifdef __cplusplus
87
}
88
#endif
89
90
#endif // NRF_DFU_TRANSPORT_H__
91