bowen liu
/
mbed-os-example-blinky
ex
Fork of mbed-os-example-mbed5-blinky by
Embed:
(wiki syntax)
Show/hide line numbers
baidu_ca_types.h
00001 // Copyright 2017 Baidu Inc. All Rights Reserved. 00002 // Author: Su Hao (suhao@baidu.com) 00003 // 00004 // Description: The common type definitions. 00005 00006 #ifndef BAIDU_IOT_TINYDU_IOT_OS_SRC_IOT_BAIDU_CA_INCLUDE_BAIDU_CA_TYPES_H 00007 #define BAIDU_IOT_TINYDU_IOT_OS_SRC_IOT_BAIDU_CA_INCLUDE_BAIDU_CA_TYPES_H 00008 00009 #include <stdio.h> 00010 #include <stdlib.h> 00011 #include <string.h> 00012 00013 #ifndef MBED_CLIENT_C_VERSION 00014 #define MBED_CLIENT_C_VERSION (30001) // 3.0.1 00015 #endif 00016 00017 typedef void* bca_context; 00018 typedef int bca_status_t; 00019 typedef unsigned int bca_size_t; 00020 typedef unsigned int bca_u32_t; 00021 typedef unsigned short bca_u16_t; 00022 typedef unsigned char bca_u8_t; 00023 typedef signed int bca_s32_t; 00024 00025 typedef char bca_bool; 00026 00027 enum _baidu_ca_bool_e { 00028 BCA_FALSE, 00029 BCA_TRUE 00030 }; 00031 00032 // Declaration for local varaible & function. 00033 #define BCA_LOC static 00034 // Definition for local varaible & function. 00035 #define BCA_LOC_IMPL static 00036 00037 // Declaration for internal varaible & function. 00038 #define BCA_INT extern 00039 // Definition for internal varaible & function. 00040 #define BCA_INT_IMPL 00041 00042 // Declaration for external varaible & function. 00043 #define BCA_EXT extern 00044 // Definition for external varaible & function. 00045 #define BCA_EXT_IMPL 00046 00047 /* 00048 * The error codes. 00049 */ 00050 typedef enum { 00051 BCA_NO_ERR, 00052 BCA_ERR_INTERNAL = -0x0001, 00053 BCA_ERR_TRANS_INTERNAL_ERROR = -0x0030, 00054 BCA_ERR_TRANS_WOULD_BLOCK = -0x0031, 00055 BCA_ERR_TRANS_TIMEOUT = -0x0032, 00056 BCA_ERR_REG_FAIL = -0x0033, 00057 00058 BCA_ERR_REPORT_FAILED = -0x070000, 00059 BCA_ERR_REPORT_FAILED_BEGIN = BCA_ERR_REPORT_FAILED + 0x10000 00060 } bca_errcode_e; 00061 00062 #endif // BAIDU_IOT_TINYDU_IOT_OS_SRC_IOT_BAIDU_CA_INCLUDE_BAIDU_CA_TYPES_H
Generated on Tue Jul 12 2022 16:28:52 by 1.7.2