mcu_hi3321_watch/middleware/utils/dfx/log/include/log_trigger.h
2025-05-26 20:15:20 +08:00

45 lines
1.0 KiB
C

/*
* Copyright (c) @CompanyNameMagicTag 2018-2020. All rights reserved.
* Description: LOG TRIGGER MODULE INTERRFACE
* Author: @CompanyNameTag
* Create:
*/
#ifndef SRC_LIB_LOG_PRIVATE_LOG_TRIGGER_H
#define SRC_LIB_LOG_PRIVATE_LOG_TRIGGER_H
/**
* @addtogroup connectivity_libs_log
* @{
*/
#include "core.h"
#define CORE_LOGGING APPS
typedef void (*log_trigger_callback_t)(void);
/**
* @brief Ensure the log reader will be triggered.
* This function should be called when the logger has detected it has written to an empty buffer.
*/
void log_trigger(void);
/**
* @brief Ensure the log trigger should be registered.
* This function should be called when the log module init.
* @param callback: should match the type<log_trigger_callback_t>.
*/
void register_log_trigger(log_trigger_callback_t callback);
/**
* @brief trigger ipc to inform A core to save data from share mem in flash
*/
#if (BTH_WITH_SMART_WEAR == NO)
#if (CORE == BT)
void massdata_trigger(void *pay_i, uint8_t core, uint8_t type);
#endif
#endif
/**
* @}
*/
#endif