nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
fprotect.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef FPROTECT_H_
8#define FPROTECT_H_
9
10#include <stdint.h>
11#include <string.h>
12#include <zephyr/types.h>
13
22#ifdef __cplusplus
23extern "C" {
24#endif
25
39int fprotect_area(uint32_t start, size_t length);
40
54int fprotect_area_no_access(uint32_t start, size_t length);
55
69uint32_t fprotect_is_protected(uint32_t addr);
70
71#ifdef __cplusplus
72}
73#endif
74
79#endif /* FPROTECT_H_ */
int fprotect_area(uint32_t start, size_t length)
Protect flash area against writes.
int fprotect_area_no_access(uint32_t start, size_t length)
Protect flash area against reads/writes.
uint32_t fprotect_is_protected(uint32_t addr)
Check whether a block has already been protected.