|
ESP SDK C API
|
00001 #ifndef __ESP_ERROR_H 00002 #define __ESP_ERROR_H 00003 00004 #include <sdk/esp_types.h> 00005 00006 #ifdef __cplusplus 00007 extern "C" { 00008 #endif 00009 00010 #define ESP_ERROR_CODE_NULL_PARAMETER 00011 #define ESP_ERROR_CODE_INSUFFICIENT_BUFFER_SIZE 00012 #define ESP_ERROR_CODE_ENTITY_ILLEGAL_STATE 00013 00031 ESPAPICALL EspError * esp_error_create(); 00032 00036 ESPAPICALL int32_t esp_error_free( 00037 EspError * error); 00038 00042 ESPAPICALL EspError * esp_error_get_nested_error( 00043 const EspError * error); 00044 00048 ESPAPICALL int esp_error_get_code( 00049 const EspError * error); 00050 00055 ESPAPICALL const char * esp_error_get_message( 00056 const EspError * error); 00057 00062 ESPAPICALL const char * esp_error_get_system( 00063 const EspError * error); 00064 00068 ESPAPICALL int32_t esp_error_screen_dump( 00069 const EspError * error); 00070 00073 #ifdef __cplusplus 00074 } 00075 #endif 00076 00077 #endif /* __ESP_ERROR_H */
1.7.5