mcu_hi3321_watch/tjd/log/log_port.h
2025-05-26 20:15:20 +08:00

21 lines
530 B
C

#ifndef LOG_PORT_H
#define LOG_PORT_H
#include <stdint.h>
//notify event
enum
{
LOG_EVENT_CACHE_FULL,
};
extern int log_port_create_lock(void);
extern int log_port_lock(void);
extern int log_port_unlock(void);
extern int log_port_notify(uint32_t event);
extern int log_port_get_full_path(uint32_t timestamp, char *buf);
extern int log_port_read_file(char *path, uint32_t offset, uint8_t *dat, uint32_t len);
extern int log_port_write_file(char *path, uint8_t *dat, uint16_t len);
#endif /*DATA_LOG_H*/