OPTIGA™ Trust M
Host Library Documentation
|
This file provides the prototypes declarations for pal logger. More...
#include "optiga/pal/pal.h"
Go to the source code of this file.
Data Structures | |
struct | pal_logger |
PAL logger context structure. More... | |
typedef struct pal_logger | pal_logger_t |
PAL logger context structure. More... | |
pal_status_t | pal_logger_init (void *p_logger_context) |
Initializes the logger port. More... | |
pal_status_t | pal_logger_deinit (void *p_logger_context) |
De-Initializes the logger port. More... | |
pal_status_t | pal_logger_write (void *p_logger_context, const uint8_t *p_log_data, uint32_t log_data_length) |
Writes to logger port. More... | |
pal_status_t | pal_logger_read (void *p_logger_context, uint8_t *p_log_data, uint32_t log_data_length) |
Read to logger port. More... | |
This file provides the prototypes declarations for pal logger.
Definition in file optiga/include/optiga/pal/pal_logger.h.
typedef struct pal_logger pal_logger_t |
PAL logger context structure.
pal_status_t pal_logger_deinit | ( | void * | p_logger_context | ) |
De-Initializes the logger port.
De-Initializes the logger port.
[in] | p_logger_context | Valid pointer to the PAL logger context that should be initialized |
PAL_STATUS_SUCCESS | In case of successfully written to logger |
PAL_STATUS_FAILURE | In case of failure while writing to logger |
pal_status_t pal_logger_init | ( | void * | p_logger_context | ) |
Initializes the logger port.
Initializes the logger port.
[in] | p_logger_context | Valid pointer to the PAL logger context that should be initialized |
PAL_STATUS_SUCCESS | In case of successfully written to logger |
PAL_STATUS_FAILURE | In case of failure while writing to logger |
pal_status_t pal_logger_read | ( | void * | p_logger_context, |
uint8_t * | p_log_data, | ||
uint32_t | log_data_length | ||
) |
Read to logger port.
Reads to logger port.
[in] | p_logger_context | Valid pointer to the PAL logger context that should be initialized |
[in] | p_log_data | Pointer to the log data (data to be logged) |
[in] | log_data_length | Length of data to be logged. |
PAL_STATUS_SUCCESS | In case of successfully read to logger |
PAL_STATUS_FAILURE | In case of failure while read to logger |
pal_status_t pal_logger_write | ( | void * | p_logger_context, |
const uint8_t * | p_log_data, | ||
uint32_t | log_data_length | ||
) |
Writes to logger port.
Writes to logger port.
[in] | p_logger_context | Valid pointer to the PAL logger context that should be initialized |
[in] | p_log_data | Pointer to the log data (data to be logged) |
[in] | log_data_length | Length of data to be logged. |
PAL_STATUS_SUCCESS | In case of successfully written to logger |
PAL_STATUS_FAILURE | In case of failure while writing to logger |