nRF Connect SDK Bare Metal API
2.0.99
Loading...
Searching...
No Matches
bm_rmem.h
1
7
#ifndef NRFBM_STORAGE_RMEM_H__
8
#define NRFBM_STORAGE_RMEM_H__
9
10
#ifdef __cplusplus
11
extern
"C"
{
12
#endif
13
14
#define BM_RMEM_TLV_TYPE_BLE_NAME 0x0001
15
#define BM_RMEM_TLV_TYPE_CRC_32 0x0002
16
20
struct
bm_retained_clipboard_ctx
{
21
uint16_t
offset
;
22
uint16_t
max_offset
;
23
};
24
28
struct
bm_rmem_data_desc
{
29
uint16_t
type
;
30
uint16_t
len
;
31
void
*
data
;
32
};
33
44
int
bm_rmem_data_write(
struct
bm_retained_clipboard_ctx
*ctx, uint16_t type,
const
void
*data,
45
uint16_t len);
46
55
int
bm_rmem_crc32_write(
struct
bm_retained_clipboard_ctx
*ctx);
56
63
int
bm_rmem_crc32_verify(
void
);
64
75
int
bm_rmem_data_get(
struct
bm_retained_clipboard_ctx
*ctx,
struct
bm_rmem_data_desc
*desc);
76
83
int
bm_rmem_init(
struct
bm_retained_clipboard_ctx
*ctx);
84
94
int
bm_rmem_init_empty(
struct
bm_retained_clipboard_ctx
*ctx);
95
105
int
bm_rmem_clear(
struct
bm_retained_clipboard_ctx
*ctx);
106
107
#ifdef __cplusplus
108
}
109
#endif
110
111
#endif
/* NRFBM_STORAGE_RMEM_H__ */
bm_retained_clipboard_ctx::offset
uint16_t offset
Definition
bm_rmem.h:21
bm_retained_clipboard_ctx::max_offset
uint16_t max_offset
Definition
bm_rmem.h:22
bm_retained_clipboard_ctx
Runtime context for the retained clipboard instance.
Definition
bm_rmem.h:20
bm_rmem_data_desc::len
uint16_t len
Definition
bm_rmem.h:30
bm_rmem_data_desc::type
uint16_t type
Definition
bm_rmem.h:29
bm_rmem_data_desc::data
void * data
Definition
bm_rmem.h:31
bm_rmem_data_desc
Data descriptor for the retained clipboard entry.
Definition
bm_rmem.h:28
include
bm
storage
bm_rmem.h
Generated on Wed Jun 17 2026 10:54:29 for nRF Connect SDK Bare Metal API by
1.12.0