Loading...
Searching...
No Matches
cryptocell_310_util.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 HAW Hamburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
30
38
45static inline bool cryptocell_310_data_within_ram(const uint8_t* data)
46{
47 return ((int)data >= CPU_RAM_BASE && (int)data < CPU_RAM_BASE + CPU_RAM_SIZE);
48}
49
56
63
64#ifdef __cplusplus
65}
66#endif
67
void cryptocell_310_enable(void)
Enable CryptoCell module and IRQs.
void cryptocell_310_disable(void)
Disable CryptoCell module and IRQs.
void driver_cryptocell_310_setup(void)
Enables CryptoCell module, IRQs and crypto libraries on nrf52840.
static bool cryptocell_310_data_within_ram(const uint8_t *data)
Check whether the given data resides in RAM.
void driver_cryptocell_310_terminate(void)
Finishes the use of the CryptoCell library.
#define CPU_RAM_SIZE
Size of the RAM in Bytes.