1 /* 2 * Copyright (c) 2021, The TrustedFirmware-M Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 * 6 */ 7 8 #ifndef CC3XX_LCS_H 9 #define CC3XX_LCS_H 10 11 #include "cc3xx_lcs_defs.h" 12 #include "cc3xx_error.h" 13 14 #ifdef __cplusplus 15 extern "C" { 16 #endif 17 18 /** 19 * @brief Gets the current value of the lifecycle state 20 * 21 * @param[out] lcs Buffer of type \ref cc3xx_lcs_t to hold the retrieved LCS 22 * 23 * @return cc3xx_err_t 24 */ 25 cc3xx_err_t cc3xx_lowlevel_lcs_get(cc3xx_lcs_t* lcs); 26 27 /** 28 * @brief Returns a string which contains the name of the LCS value passed as input 29 * 30 * @param[in] lcs Value of the LCS for which the function returns the name 31 * 32 * @return const char* 33 */ 34 const char* cc3xx_lowlevel_lcs_get_name(cc3xx_lcs_t lcs); 35 36 #ifdef __cplusplus 37 } 38 #endif 39 40 #endif /* CC3XX_LCS_H */ 41