#define | OPTIGA_UTIL_SERVICE "[optiga util] : " |
|
#define | OPTIGA_CRYPT_SERVICE "[optiga crypt] : " |
|
#define | OPTIGA_COMMAND_LAYER "[optiga cmd] : " |
|
#define | OPTIGA_COMMUNICATION_LAYER "[optiga comms] : " |
|
#define | OPTIGA_LIB_LOGGER_COLOR_RED "\x1b[31m" |
|
#define | OPTIGA_LIB_LOGGER_COLOR_GREEN "\x1b[32m" |
|
#define | OPTIGA_LIB_LOGGER_COLOR_YELLOW "\x1b[33m" |
|
#define | OPTIGA_LIB_LOGGER_COLOR_BLUE "\x1b[34m" |
|
#define | OPTIGA_LIB_LOGGER_COLOR_MAGENTA "\x1b[35m" |
|
#define | OPTIGA_LIB_LOGGER_COLOR_CYAN "\x1b[36m" |
|
#define | OPTIGA_LIB_LOGGER_COLOR_LIGHT_GREY "\x1b[90m" |
|
#define | OPTIGA_LIB_LOGGER_COLOR_LIGHT_RED "\x1b[91m" |
|
#define | OPTIGA_LIB_LOGGER_COLOR_LIGHT_GREEN "\x1b[92m" |
|
#define | OPTIGA_LIB_LOGGER_COLOR_LIGHT_YELLOW "\x1b[93m" |
|
#define | OPTIGA_LIB_LOGGER_COLOR_LIGHT_BLUE "\x1b[94m" |
|
#define | OPTIGA_LIB_LOGGER_COLOR_LIGHT_MAGENTA "\x1b[95m" |
|
#define | OPTIGA_LIB_LOGGER_COLOR_LIGHT_CYAN "\x1b[96m" |
|
#define | OPTIGA_LIB_LOGGER_COLOR_DEFAULT "\x1b[0m" |
|
#define | OPTIGA_UTIL_SERVICE_COLOR OPTIGA_LIB_LOGGER_COLOR_DEFAULT |
|
#define | OPTIGA_CRYPT_SERVICE_COLOR OPTIGA_LIB_LOGGER_COLOR_DEFAULT |
|
#define | OPTIGA_COMMAND_LAYER_COLOR OPTIGA_LIB_LOGGER_COLOR_DEFAULT |
|
#define | OPTIGA_COMMUNICATION_LAYER_COLOR OPTIGA_LIB_LOGGER_COLOR_DEFAULT |
|
#define | OPTIGA_ERROR_COLOR OPTIGA_LIB_LOGGER_COLOR_RED |
|
#define | OPTIGA_UNPROTECTED_DATA_COLOR OPTIGA_LIB_LOGGER_COLOR_LIGHT_CYAN |
|
#define | OPTIGA_PROTECTED_DATA_COLOR OPTIGA_LIB_LOGGER_COLOR_YELLOW |
|
#define | OPTIGA_HEX_BYTE_SEPERATOR "" |
|
#define | OPTIGA_LIB_LOGGER_PRINT_ARRAY(p_output_buffer, p_temp_buffer, p_color) |
| Converts the input array buffer to encode the color specified. More...
|
|
#define | OPTIGA_LIB_LOGGER_PRINT_INFO(p_output_buffer, p_temp_buffer, p_layer, p_color) |
| Converts the input string to encode the color specified. More...
|
|
void | optiga_lib_print_string (const char_t *input_string) |
| To log a string. More...
|
|
void | optiga_lib_print_string_with_newline (const char_t *p_log_string) |
| To log a string with a new line. More...
|
|
void | optiga_lib_print_message (const char_t *p_log_string, const char_t *p_log_layer, const char_t *p_log_color) |
| To log a string with a new line and layer information. More...
|
|
void | optiga_lib_print_status (const char_t *p_log_layer, const char_t *p_log_color, uint16_t return_value) |
| To log a return value with a new line and layer information. More...
|
|
void | optiga_lib_print_array_hex_format (const uint8_t *p_log_string, uint16_t length, const char_t *p_log_color) |
| To log the byte array in hex format. More...
|
|
This file provides the prototypes for the OPTIGA library logger.
- Copyright
- MIT License
Copyright (c) 2019 Infineon Technologies AG
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
\endcopyright
- Author
- Infineon Technologies AG