WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
diag_channel.h 文件参考
#include <stdint.h>
#include <stdbool.h>
#include "errcode.h"
#include "diag_config.h"
#include "diag_common.h"
#include "dfx_write_interface.h"
diag_channel.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

类型定义

typedef int32_t(* diag_channel_tx_hook) (void *fd, dfx_data_type_t data_type, uint8_t *data[], uint16_t len[], uint8_t cnt)
 
typedef errcode_t(* diag_channel_notify_hook) (uint32_t id, uint32_t data)
 

枚举

enum  soc_diag_channel_attribute_t { SOC_DIAG_CHANNEL_ATTR_NEED_RX_BUF = 0x1 }
 

函数

errcode_t soc_diag_channel_init (diag_channel_id_t id, uint32_t attribute)
 
errcode_t soc_diag_channel_set_tx_hook (diag_channel_id_t id, diag_channel_tx_hook hook)
 
errcode_t soc_diag_channel_set_notify_hook (diag_channel_id_t id, diag_channel_notify_hook hook)
 
errcode_t soc_diag_channel_rx_mux_data (diag_channel_id_t id, uint8_t *data, uint16_t size)
 
int32_t soc_diag_channel_rx_mux_char_data (diag_channel_id_t id, uint8_t *data, uint16_t size)
 
errcode_t soc_diag_channel_set_connect_hso_addr (diag_channel_id_t id, uint8_t hso_addr)
 

类型定义说明

◆ diag_channel_notify_hook

typedef errcode_t(* diag_channel_notify_hook) (uint32_t id, uint32_t data)

◆ diag_channel_tx_hook

typedef int32_t(* diag_channel_tx_hook) (void *fd, dfx_data_type_t data_type, uint8_t *data[], uint16_t len[], uint8_t cnt)

枚举类型说明

◆ soc_diag_channel_attribute_t

枚举值
SOC_DIAG_CHANNEL_ATTR_NEED_RX_BUF 

函数说明

◆ soc_diag_channel_init()

errcode_t soc_diag_channel_init ( diag_channel_id_t  id,
uint32_t  attribute 
)

◆ soc_diag_channel_rx_mux_char_data()

int32_t soc_diag_channel_rx_mux_char_data ( diag_channel_id_t  id,
uint8_t *  data,
uint16_t  size 
)

◆ soc_diag_channel_rx_mux_data()

errcode_t soc_diag_channel_rx_mux_data ( diag_channel_id_t  id,
uint8_t *  data,
uint16_t  size 
)

◆ soc_diag_channel_set_connect_hso_addr()

errcode_t soc_diag_channel_set_connect_hso_addr ( diag_channel_id_t  id,
uint8_t  hso_addr 
)

◆ soc_diag_channel_set_notify_hook()

errcode_t soc_diag_channel_set_notify_hook ( diag_channel_id_t  id,
diag_channel_notify_hook  hook 
)

◆ soc_diag_channel_set_tx_hook()

errcode_t soc_diag_channel_set_tx_hook ( diag_channel_id_t  id,
diag_channel_tx_hook  hook 
)