nt9856x/code/application/source/sf_app/code/include/sf_debug.h
2023-05-17 15:33:39 +08:00

69 lines
1.7 KiB
C

/**************************************************************************
*
* Copyright (c) 2015-2020 by WuYuan Technology, Inc.
*
* This software is copyrighted by and is the property of SiFar
* Technology, Inc.. All rights are reserved by SiFar Technology, Inc..
* This software may only be used in accordance with the corresponding
* license agreement. Any unauthorized use, duplication, distribution,
* or disclosure of this software is expressly forbidden.
*
* This Copyright notice MUST not be removed or modified without prior
* written consent of SiFar Technology, Inc..
*
* WuYuan Technology, Inc. reserves the right to modify this software without notice.
*
* Author: Kola
* Ver: 1.0.0 2021.04.15
* Description: create
**************************************************************************/
#ifndef _SF_DEBUG_H_
#define _SF_DEBUG_H_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <pthread.h>
#include "sf_type.h"
#include "sf_param_common.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif
typedef SINT32 (*SF_DEBUG_CALLBACK_FN_PTR)(SINT32 argc, SF_CHAR **argv[]);
typedef struct SF_DEBUG_CMD_ATTR_S {
SF_CHAR cmdStr[64];
SF_DEBUG_CALLBACK_FN_PTR pfn_debug_cmd_exe;
} SF_DEBUG_CMD_ATTR_S;
SINT32 sf_debug_init(SF_CHAR *filepath,SINT32 *fd);
SINT32 sf_debug_create(SF_DEBUG_CMD_ATTR_S *pDebugCmdArray,SINT16 lenth);
SINT32 sf_debug_start(SINT32 fd);
SINT32 sf_debug_stop(void);
SINT32 sf_debug_deinit(SINT32 fd);
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif
#endif