OPTIGA Trust M  1.1.0
C++ library for Optiga Trust M Chip Security Controller
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 
46 #include "pal.h"
47 
49 typedef struct pal_logger
50 {
54  volatile uint8_t logger_rx_flag;
56  volatile uint8_t logger_tx_flag;
57 
58 } pal_logger_t;
59 
79 pal_status_t pal_logger_init(void * p_logger_context);
80 
100 pal_status_t pal_logger_deinit(void * p_logger_context);
101 
123 pal_status_t pal_logger_write(void * p_logger_context, const uint8_t * p_log_data, uint32_t log_data_length);
124 
146 pal_status_t pal_logger_read(void * p_logger_context, uint8_t * p_log_data, uint32_t log_data_length);
147 
148 #ifdef __cplusplus
149 }
150 #endif
151 
152 #endif /*_PAL_LOGGER_H_ */
153 
This file provides the prototype declarations of platform abstraction layer.
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.
Definition: pal_logger_arduino.cpp:59
pal_status_t pal_logger_init(void *p_logger_context)
Initializes the logger port.
Definition: pal_logger_arduino.cpp:49
void * logger_config_ptr
Pointer to logger hardware.
Definition: pal_logger.h:52
volatile uint8_t logger_rx_flag
Receive complete flag.
Definition: pal_logger.h:54
volatile uint8_t logger_tx_flag
Transmit complete flag.
Definition: pal_logger.h:56
PAL logger context structure.
Definition: pal_logger.h:49
pal_status_t pal_logger_deinit(void *p_logger_context)
De-Initializes the logger port.
Definition: pal_logger_arduino.cpp:54
struct pal_logger pal_logger_t
PAL logger context structure.
pal_status_t pal_logger_read(void *p_logger_context, uint8_t *p_log_data, uint32_t log_data_length)
Read to logger port.
Definition: pal_logger_arduino.cpp:68
uint16_t pal_status_t
PAL return status.
Definition: pal.h:60