Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-cloud-workshop-connect-HTS221 by
fcc_utils.h
00001 // ---------------------------------------------------------------------------- 00002 // Copyright 2016-2017 ARM Ltd. 00003 // 00004 // Licensed under the Apache License, Version 2.0 (the "License"); 00005 // you may not use this file except in compliance with the License. 00006 // You may obtain a copy of the License at 00007 // 00008 // http://www.apache.org/licenses/LICENSE-2.0 00009 // 00010 // Unless required by applicable law or agreed to in writing, software 00011 // distributed under the License is distributed on an "AS IS" BASIS, 00012 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 // See the License for the specific language governing permissions and 00014 // limitations under the License. 00015 // ---------------------------------------------------------------------------- 00016 00017 #ifndef __FCC_UTILS_H__ 00018 #define __FCC_UTILS_H__ 00019 00020 #include <stdlib.h> 00021 #include <stdbool.h> 00022 #include <inttypes.h> 00023 #include "key_config_manager.h" 00024 #include "factory_configurator_client.h" 00025 #include "fcc_defs.h" 00026 #include "fcc_sotp.h" 00027 00028 #ifdef __cplusplus 00029 extern "C" { 00030 #endif 00031 00032 00033 extern const char g_sotp_entropy_data_type_name[]; 00034 extern const char g_sotp_rot_data_type_name[]; 00035 extern const char g_sotp_factory_disable_type_name[]; 00036 extern const char g_sotp_ca_server_id_type_name[]; 00037 extern const char g_sotp_time_type_name[]; 00038 00039 /** Returns sotp type name and name size 00040 * 00041 * @param sotp_type[in] The sotp type 00042 * @param sotp_type_name[out] The pointer to sotp type name 00043 * @param sotp_type[out] The size of sotp type name 00044 * @returns 00045 * fcc_status_e status. 00046 */ 00047 fcc_status_e fcc_get_sotp_type_name(sotp_type_e sotp_type, char* *sotp_type_name, size_t *sotp_type_name_size); 00048 00049 /** Converts kcm error status to appropriate fcc error. 00050 * 00051 * @param kcm_result[in/out] The kcm error status 00052 * @returns 00053 * fcc_status_e status. 00054 */ 00055 fcc_status_e fcc_convert_kcm_to_fcc_status(kcm_status_e kcm_result); 00056 00057 #ifdef __cplusplus 00058 } 00059 #endif 00060 00061 #endif //__FCC_UTILS_H__
Generated on Tue Jul 12 2022 19:12:12 by
1.7.2
