OPTIGA™ Trust M
Host Library Documentation
|
This file provides the prototypes for the OPTIGA library logger. More...
#include "optiga/common/optiga_lib_types.h"
Go to the source code of this file.
This file provides the prototypes for the OPTIGA library logger.
Definition in file optiga_lib_logger.h.
#define OPTIGA_COMMAND_LAYER "[optiga cmd] : " |
Definition at line 50 of file optiga_lib_logger.h.
#define OPTIGA_COMMAND_LAYER_COLOR OPTIGA_LIB_LOGGER_COLOR_DEFAULT |
Definition at line 73 of file optiga_lib_logger.h.
#define OPTIGA_COMMUNICATION_LAYER "[optiga comms] : " |
Definition at line 51 of file optiga_lib_logger.h.
#define OPTIGA_COMMUNICATION_LAYER_COLOR OPTIGA_LIB_LOGGER_COLOR_DEFAULT |
Definition at line 74 of file optiga_lib_logger.h.
#define OPTIGA_CRYPT_SERVICE "[optiga crypt] : " |
Definition at line 49 of file optiga_lib_logger.h.
#define OPTIGA_CRYPT_SERVICE_COLOR OPTIGA_LIB_LOGGER_COLOR_DEFAULT |
Definition at line 72 of file optiga_lib_logger.h.
#define OPTIGA_ERROR_COLOR OPTIGA_LIB_LOGGER_COLOR_RED |
Definition at line 75 of file optiga_lib_logger.h.
#define OPTIGA_HEX_BYTE_SEPERATOR "" |
Definition at line 79 of file optiga_lib_logger.h.
#define OPTIGA_LIB_LOGGER_COLOR_BLUE "\x1b[34m" |
Definition at line 58 of file optiga_lib_logger.h.
#define OPTIGA_LIB_LOGGER_COLOR_CYAN "\x1b[36m" |
Definition at line 60 of file optiga_lib_logger.h.
#define OPTIGA_LIB_LOGGER_COLOR_DEFAULT "\x1b[0m" |
Definition at line 68 of file optiga_lib_logger.h.
#define OPTIGA_LIB_LOGGER_COLOR_GREEN "\x1b[32m" |
Definition at line 56 of file optiga_lib_logger.h.
#define OPTIGA_LIB_LOGGER_COLOR_LIGHT_BLUE "\x1b[94m" |
Definition at line 65 of file optiga_lib_logger.h.
#define OPTIGA_LIB_LOGGER_COLOR_LIGHT_CYAN "\x1b[96m" |
Definition at line 67 of file optiga_lib_logger.h.
#define OPTIGA_LIB_LOGGER_COLOR_LIGHT_GREEN "\x1b[92m" |
Definition at line 63 of file optiga_lib_logger.h.
#define OPTIGA_LIB_LOGGER_COLOR_LIGHT_GREY "\x1b[90m" |
Definition at line 61 of file optiga_lib_logger.h.
#define OPTIGA_LIB_LOGGER_COLOR_LIGHT_MAGENTA "\x1b[95m" |
Definition at line 66 of file optiga_lib_logger.h.
#define OPTIGA_LIB_LOGGER_COLOR_LIGHT_RED "\x1b[91m" |
Definition at line 62 of file optiga_lib_logger.h.
#define OPTIGA_LIB_LOGGER_COLOR_LIGHT_YELLOW "\x1b[93m" |
Definition at line 64 of file optiga_lib_logger.h.
#define OPTIGA_LIB_LOGGER_COLOR_MAGENTA "\x1b[35m" |
Definition at line 59 of file optiga_lib_logger.h.
#define OPTIGA_LIB_LOGGER_COLOR_RED "\x1b[31m" |
Definition at line 55 of file optiga_lib_logger.h.
#define OPTIGA_LIB_LOGGER_COLOR_YELLOW "\x1b[33m" |
Definition at line 57 of file optiga_lib_logger.h.
#define OPTIGA_LIB_LOGGER_PRINT_ARRAY | ( | p_output_buffer, | |
p_temp_buffer, | |||
p_color | |||
) |
Converts the input array buffer to encode the color specified.
Converts the input array buffer to encode the color specified
[out] | p_output_buffer | Pointer to output buffer |
[in] | p_temp_buffer | Pointer to the input array buffer |
[in] | p_color | Pointer to the color of array string |
Definition at line 197 of file optiga_lib_logger.h.
#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.
Converts the input string to encode the color specified
[out] | p_output_buffer | Pointer to output buffer |
[in] | p_temp_buffer | Pointer to the input array buffer |
[in] | p_layer | Pointer to the layer info buffer |
[in] | p_color | Pointer to the color of array string |
Definition at line 223 of file optiga_lib_logger.h.
#define OPTIGA_PROTECTED_DATA_COLOR OPTIGA_LIB_LOGGER_COLOR_YELLOW |
Definition at line 77 of file optiga_lib_logger.h.
#define OPTIGA_UNPROTECTED_DATA_COLOR OPTIGA_LIB_LOGGER_COLOR_LIGHT_CYAN |
Definition at line 76 of file optiga_lib_logger.h.
#define OPTIGA_UTIL_SERVICE "[optiga util] : " |
Definition at line 48 of file optiga_lib_logger.h.
#define OPTIGA_UTIL_SERVICE_COLOR OPTIGA_LIB_LOGGER_COLOR_DEFAULT |
Definition at line 71 of file optiga_lib_logger.h.
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.
To log the byte array in hex format
[in] | p_log_string | Pointer to the array string |
[in] | length | Length of the array buffer |
[in] | p_log_color | Pointer to the color of array string |
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.
To log a string with information of the layer from which it is invoked and with a new line
[in] | p_log_string | Pointer to the log string |
[in] | p_log_layer | Pointer to the invoked layer information |
[in] | p_log_color | Pointer to the color of log string |
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.
To log a if the return value was successful or not along with layer information
[in] | p_log_layer | Pointer to the invoked layer information |
[in] | p_log_color | Pointer to the color of log string |
[in] | return_value | Return value from the invoked layer |
void optiga_lib_print_string | ( | const char_t * | input_string | ) |
To log a string.
To log a string.
[in] | input_string | Pointer to the log string |
void optiga_lib_print_string_with_newline | ( | const char_t * | p_log_string | ) |
To log a string with a new line.
To log a string with a new line
[in] | p_log_string | Pointer to the log string |