![]() |
OPTIGA™ Trust M
Host Library Documentation
|
This file defines APIs, types and data structures used in the OPTIGA example. More...

Go to the source code of this file.
| #define | START_TIMER (TRUE) |
| #define | STOPTIMER_AND_CALCULATE (FALSE) |
| #define | OPTIGA_LIB_ENABLE_EXAMPLE_LOGGING |
| #define | OPTIGA_EXAMPLE "[optiga example] : " |
| #define | OPTIGA_EXAMPLE_COLOR OPTIGA_LIB_LOGGER_COLOR_DEFAULT |
| #define | START_PERFORMANCE_MEASUREMENT(time_taken) example_performance_measurement(&time_taken, START_TIMER) |
| #define | READ_PERFORMANCE_MEASUREMENT(time_taken) example_performance_measurement(&time_taken, STOPTIMER_AND_CALCULATE) |
| #define | WAIT_AND_CHECK_STATUS(return_status, optiga_lib_status) |
| #define | OPTIGA_EXAMPLE_LOG_MESSAGE(msg) |
| Logs the message provided from Application layer. More... | |
| #define | OPTIGA_EXAMPLE_LOG_HEX_DATA(array, array_len) |
| Logs the byte array buffer provided from Application layer in hexadecimal format. More... | |
| #define | OPTIGA_EXAMPLE_LOG_STATUS(return_value) |
| Logs the status info provided from Application layer. More... | |
| #define | OPTIGA_EXAMPLE_LOG_PERFORMANCE_VALUE(time_taken, return_value) |
| #define | OPTIGA_EXAMPLE_PROTECTED_UPDATE_PERFORMANCE_VALUE(time_taken) |
| char | performance_buffer_string [30] |
| void | example_performance_measurement (uint32_t *time_value, uint8_t time_reset_flag) |
This file defines APIs, types and data structures used in the OPTIGA example.
Definition in file optiga_example.h.
| #define OPTIGA_EXAMPLE "[optiga example] : " |
Definition at line 59 of file optiga_example.h.
| #define OPTIGA_EXAMPLE_COLOR OPTIGA_LIB_LOGGER_COLOR_DEFAULT |
Definition at line 62 of file optiga_example.h.
| #define OPTIGA_EXAMPLE_LOG_HEX_DATA | ( | array, | |
| array_len | |||
| ) |
Logs the byte array buffer provided from Application layer in hexadecimal format.
Logs the byte array buffer provided from Application layer in hexadecimal format
| [in] | array | Valid pointer to array to be logged |
| [in] | array_len | Length of array buffer |
Definition at line 119 of file optiga_example.h.
| #define OPTIGA_EXAMPLE_LOG_MESSAGE | ( | msg | ) |
Logs the message provided from Application layer.
Logs the message provided from Application layer
| [in] | msg | Valid pointer to string to be logged |
Definition at line 99 of file optiga_example.h.
| #define OPTIGA_EXAMPLE_LOG_PERFORMANCE_VALUE | ( | time_taken, | |
| return_value | |||
| ) |
Definition at line 157 of file optiga_example.h.
| #define OPTIGA_EXAMPLE_LOG_STATUS | ( | return_value | ) |
Logs the status info provided from Application layer.
Logs the status info provided from Application layer
| [in] | return_value | Status information Application layer |
Definition at line 138 of file optiga_example.h.
| #define OPTIGA_EXAMPLE_PROTECTED_UPDATE_PERFORMANCE_VALUE | ( | time_taken | ) |
Definition at line 166 of file optiga_example.h.
| #define OPTIGA_LIB_ENABLE_EXAMPLE_LOGGING |
Definition at line 56 of file optiga_example.h.
| #define READ_PERFORMANCE_MEASUREMENT | ( | time_taken | ) | example_performance_measurement(&time_taken, STOPTIMER_AND_CALCULATE) |
Definition at line 68 of file optiga_example.h.
| #define START_PERFORMANCE_MEASUREMENT | ( | time_taken | ) | example_performance_measurement(&time_taken, START_TIMER) |
Definition at line 65 of file optiga_example.h.
| #define START_TIMER (TRUE) |
Definition at line 51 of file optiga_example.h.
| #define STOPTIMER_AND_CALCULATE (FALSE) |
Definition at line 53 of file optiga_example.h.
| #define WAIT_AND_CHECK_STATUS | ( | return_status, | |
| optiga_lib_status | |||
| ) |
Definition at line 71 of file optiga_example.h.
| void example_performance_measurement | ( | uint32_t * | time_value, |
| uint8_t | time_reset_flag | ||
| ) |
|
extern |