WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
diag_channel.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2021-2021. All rights reserved.
3 * Description: diag channel adapt api header file
4 * This file should be changed only infrequently and with great care.
5 */
6#ifndef __SOC_ZDIAG_CHANNEL_H__
7#define __SOC_ZDIAG_CHANNEL_H__
8
9#include <stdint.h>
10#include <stdbool.h>
11#include "errcode.h"
12#include "diag_config.h"
13#include "diag_common.h"
14#include "dfx_write_interface.h"
15
19
20typedef int32_t (*diag_channel_tx_hook)(void *fd, dfx_data_type_t data_type, uint8_t *data[],
21 uint16_t len[], uint8_t cnt);
22typedef errcode_t (*diag_channel_notify_hook)(uint32_t id, uint32_t data);
23
25
27
29
31
32int32_t soc_diag_channel_rx_mux_char_data(diag_channel_id_t id, uint8_t *data, uint16_t size);
33
35#endif
diag_channel_id_t
Definition dfx_resource_id.h:27
dfx_data_type_t
Definition dfx_write_interface.h:12
errcode_t soc_diag_channel_init(diag_channel_id_t id, uint32_t attribute)
Definition zdiag_channel.c:71
errcode_t(* diag_channel_notify_hook)(uint32_t id, uint32_t data)
Definition diag_channel.h:22
int32_t soc_diag_channel_rx_mux_char_data(diag_channel_id_t id, uint8_t *data, uint16_t size)
Definition zdiag_rx_api.c:145
soc_diag_channel_attribute_t
Definition diag_channel.h:16
@ SOC_DIAG_CHANNEL_ATTR_NEED_RX_BUF
Definition diag_channel.h:17
errcode_t soc_diag_channel_set_connect_hso_addr(diag_channel_id_t id, uint8_t hso_addr)
Definition zdiag_channel.c:54
errcode_t soc_diag_channel_set_notify_hook(diag_channel_id_t id, diag_channel_notify_hook hook)
Definition zdiag_channel.c:32
errcode_t soc_diag_channel_rx_mux_data(diag_channel_id_t id, uint8_t *data, uint16_t size)
Definition zdiag_rx_api.c:160
errcode_t soc_diag_channel_set_tx_hook(diag_channel_id_t id, diag_channel_tx_hook hook)
Definition zdiag_channel.c:43
int32_t(* diag_channel_tx_hook)(void *fd, dfx_data_type_t data_type, uint8_t *data[], uint16_t len[], uint8_t cnt)
Definition diag_channel.h:20
uint32_t errcode_t
Definition of error code.
Definition errcode.h:30
Definition hal_uart_v151_regs_def.h:38