The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
AnnaBridge
Date:
Thu Nov 08 11:45:42 2018 +0000
Revision:
171:3a7713b1edbc
Parent:
TARGET_ARM_CM3DS_MPS2/TARGET_ARM_SSG/TARGET_CM3DS_MPS2/device/drivers/TZ-TRNG/host/src/tztrng_lib/include/tztrng.h@167:84c0a372a020
mbed library. Release version 164

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AnnaBridge 167:84c0a372a020 1 /******************************************************************************
AnnaBridge 167:84c0a372a020 2 * Copyright (c) 2017-2017, ARM, All Rights Reserved *
AnnaBridge 167:84c0a372a020 3 * SPDX-License-Identifier: Apache-2.0 *
AnnaBridge 167:84c0a372a020 4 * *
AnnaBridge 167:84c0a372a020 5 * Licensed under the Apache License, Version 2.0 (the "License"); *
AnnaBridge 167:84c0a372a020 6 * you may not use this file except in compliance with the License. *
AnnaBridge 167:84c0a372a020 7 * *
AnnaBridge 167:84c0a372a020 8 * You may obtain a copy of the License at *
AnnaBridge 167:84c0a372a020 9 * http://www.apache.org/licenses/LICENSE-2.0 *
AnnaBridge 167:84c0a372a020 10 * *
AnnaBridge 167:84c0a372a020 11 * Unless required by applicable law or agreed to in writing, software *
AnnaBridge 167:84c0a372a020 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT *
AnnaBridge 167:84c0a372a020 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
AnnaBridge 167:84c0a372a020 14 * *
AnnaBridge 167:84c0a372a020 15 * See the License for the specific language governing permissions and *
AnnaBridge 167:84c0a372a020 16 * limitations under the License. *
AnnaBridge 167:84c0a372a020 17 ******************************************************************************/
AnnaBridge 167:84c0a372a020 18 #ifndef _TZTRNG_H_
AnnaBridge 167:84c0a372a020 19 #define _TZTRNG_H_
AnnaBridge 167:84c0a372a020 20
AnnaBridge 167:84c0a372a020 21 #include <stdint.h>
AnnaBridge 167:84c0a372a020 22
AnnaBridge 167:84c0a372a020 23 /*******************************************************************************/
AnnaBridge 167:84c0a372a020 24 /**
AnnaBridge 167:84c0a372a020 25 * @brief The CC_TrngGetSource reads random source of needed size from TRNG.
AnnaBridge 167:84c0a372a020 26 *
AnnaBridge 167:84c0a372a020 27 * @param[in] rngRegBase - TRNG base address, given by the system.
AnnaBridge 167:84c0a372a020 28 * @param[out] *outAddr - The pointer to the buffer address for TRNG data output,
AnnaBridge 167:84c0a372a020 29 * prepared by the caller.
AnnaBridge 167:84c0a372a020 30 * @param[out] *outLen - The pointer to size of TRNG returned data.
AnnaBridge 167:84c0a372a020 31 * @param[in] reqBits - The request size of entropy in bits.
AnnaBridge 167:84c0a372a020 32 *
AnnaBridge 167:84c0a372a020 33 * @return uint32_t - On success 0 is returned, on failure, check CC_Error_t codes
AnnaBridge 167:84c0a372a020 34 *
AnnaBridge 167:84c0a372a020 35 */
AnnaBridge 167:84c0a372a020 36 uint32_t CC_TrngGetSource(unsigned long rngRegBase, /* in */
AnnaBridge 167:84c0a372a020 37 uint8_t *outAddr, /* out */
AnnaBridge 167:84c0a372a020 38 size_t *outLen, /* out */
AnnaBridge 167:84c0a372a020 39 size_t reqBits); /* in */
AnnaBridge 167:84c0a372a020 40
AnnaBridge 167:84c0a372a020 41 #endif