OPTIGA™ Trust M
Host Library Documentation
optiga/include/optiga/pal/pal_logger.h
Go to the documentation of this file.
1 
39 #ifndef _PAL_LOGGER_H_
40 #define _PAL_LOGGER_H_
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 #include "optiga/pal/pal.h"
46 
48 typedef struct pal_logger
49 {
53  volatile uint8_t logger_rx_flag;
55  volatile uint8_t logger_tx_flag;
56 
58 
78 pal_status_t pal_logger_init(void * p_logger_context);
79 
99 pal_status_t pal_logger_deinit(void * p_logger_context);
100 
122 pal_status_t pal_logger_write(void * p_logger_context, const uint8_t * p_log_data, uint32_t log_data_length);
123 
145 pal_status_t pal_logger_read(void * p_logger_context, uint8_t * p_log_data, uint32_t log_data_length);
146 
147 #ifdef __cplusplus
148 }
149 #endif
150 
151 #endif /*_PAL_LOGGER_H_ */
152 
pal_status_t
uint16_t pal_status_t
PAL return status.
Definition: examples/tools/protected_update_data_set/include/pal/pal_crypt.h:54
pal_logger_deinit
pal_status_t pal_logger_deinit(void *p_logger_context)
De-Initializes the logger port.
pal_logger_t
struct pal_logger pal_logger_t
PAL logger context structure.
pal_logger
PAL logger context structure.
Definition: optiga/include/optiga/pal/pal_logger.h:49
pal_logger::logger_tx_flag
volatile uint8_t logger_tx_flag
Transmit complete flag.
Definition: optiga/include/optiga/pal/pal_logger.h:55
pal_logger::logger_config_ptr
void * logger_config_ptr
Pointer to logger hardware.
Definition: optiga/include/optiga/pal/pal_logger.h:51
pal_logger_read
pal_status_t pal_logger_read(void *p_logger_context, uint8_t *p_log_data, uint32_t log_data_length)
Read to logger port.
pal_logger::logger_rx_flag
volatile uint8_t logger_rx_flag
Receive complete flag.
Definition: optiga/include/optiga/pal/pal_logger.h:53
pal.h
This file provides the prototype declarations of platform abstraction layer.
pal_logger_write
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.
pal_logger_init
pal_status_t pal_logger_init(void *p_logger_context)
Initializes the logger port.