31 lines
1.4 KiB
C
31 lines
1.4 KiB
C
/*----------------------------------------------------------------------------
|
|
* Copyright (c) Fenda Technologies Co., Ltd. 2020. All rights reserved.
|
|
*
|
|
* Description: log_api.h
|
|
*
|
|
* Author: saimen
|
|
*
|
|
* Create: 2022-7-16
|
|
*--------------------------------------------------------------------------*/
|
|
#ifndef DATA_LOG_H
|
|
#define DATA_LOG_H
|
|
|
|
#include <stdint.h>
|
|
#include "log_typedef.h"
|
|
|
|
extern void log_print_bin_file(char *path, uint32_t startAddrOft, uint16_t logNumlimit);
|
|
extern void log_ble_send(uint8_t bleChl, uint32_t timestamp, uint8_t evtId, uint8_t info1, uint8_t info2, uint8_t info3, const char *dsc);
|
|
|
|
extern int log_api_save_at_cache_full(void);
|
|
extern int log_api_save_at_power_off(void);
|
|
extern int log_api_record_action(uint32_t timestamp, uint8_t evtId, uint8_t info1, uint8_t info2, uint8_t info3, const char *dsc);
|
|
extern int log_api_record_error(uint32_t timestamp, uint8_t evtId, uint8_t info1, uint8_t info2, uint8_t info3, const char *dsc);
|
|
extern int log_api_record_hardfault(uint32_t timestamp, uint8_t evtId, uint8_t info1, uint8_t info2, uint8_t info3, const char *dsc);
|
|
extern int log_api_create_lock(void);
|
|
extern int log_api_init(void);
|
|
extern void* log_api_get_info(uint32_t *len, char **path);
|
|
extern void log_api_set_save_flag(uint8_t value);
|
|
extern uint8_t log_api_get_save_flag(void);
|
|
|
|
#endif /*DATA_LOG_H*/
|