HPM SDK
HPMicro Software Development Kit
hpm_log_config Struct Reference

#include <hpm_log.h>

Data Fields

uint64_t(* get_timestamp )(void)
 Function pointer to get the current timestamp. More...
 
long(* critical_enter )(void)
 Function pointer to enter a critical section. More...
 
void(* critical_exit )(long val)
 Function pointer to exit a critical section. More...
 

Field Documentation

◆ critical_enter

long(* hpm_log_config::critical_enter) (void)

Function pointer to enter a critical section.

This function is called to enter a critical section to protect shared resources.

Returns
A value that can be used to restore the previous state.

◆ critical_exit

void(* hpm_log_config::critical_exit) (long val)

Function pointer to exit a critical section.

This function is called to exit a critical section and restore the previous state.

Parameters
valThe value obtained from the corresponding critical_enter call.

◆ get_timestamp

uint64_t(* hpm_log_config::get_timestamp) (void)

Function pointer to get the current timestamp.

This function is called to obtain the current timestamp.

Returns
The current timestamp.

The documentation for this struct was generated from the following file: