|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include <stdint.h>#include <stdbool.h>#include "errcode.h"#include "diag_config.h"#include "diag_common.h"#include "dfx_write_interface.h"

类型定义 | |
| 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) |
| typedef int32_t(* diag_channel_tx_hook) (void *fd, dfx_data_type_t data_type, uint8_t *data[], uint16_t len[], uint8_t cnt) |
| errcode_t soc_diag_channel_init | ( | diag_channel_id_t | id, |
| uint32_t | attribute | ||
| ) |
| 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_rx_mux_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 | ||
| ) |
| errcode_t soc_diag_channel_set_notify_hook | ( | diag_channel_id_t | id, |
| diag_channel_notify_hook | hook | ||
| ) |
| errcode_t soc_diag_channel_set_tx_hook | ( | diag_channel_id_t | id, |
| diag_channel_tx_hook | hook | ||
| ) |