XWOS API  4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
hwifal.h 文件参考

SOC间点对点通讯协议:硬件接口抽象层 更多...

#include <xwos/standard.h>
#include <xwos/lib/xwbop.h>
hwifal.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

结构体

struct  xwssc_hwifal_operation
 硬件接口抽象层操作函数集 更多...
 
enum  xwssc_hwifal_state_em { XWSSC_HWIFST_CLOSED = 0U , XWSSC_HWIFST_CONNECT = ((xwbmp_t)1 << ( 0 )) , XWSSC_HWIFST_RX = ((xwbmp_t)1 << ( 1 )) , XWSSC_HWIFST_TX = ((xwbmp_t)1 << ( 2 )) }
 硬件接口抽象层状态枚举 更多...
 
enum  xwssc_hwifal_notification_em { XWSSC_HWIFNTF_CONNECT = 0U , XWSSC_HWIFNTF_NETUNREACH = 1U }
 硬件接口层事件枚举 更多...
 
xwer_t xwssc_hwifal_open (struct xwssc *xwssc, void *hwifcb)
 
xwer_t xwssc_hwifal_close (struct xwssc *xwssc)
 
xwer_t xwssc_hwifal_tx (struct xwssc *xwssc, const xwu8_t *stream, xwsz_t size)
 
xwer_t xwssc_hwifal_rx_head (struct xwssc *xwssc, struct xwssc_frm *frm)
 
xwer_t xwssc_hwifal_rx_body (struct xwssc *xwssc, struct xwssc_frm *frm, xwsz_t sdusize)
 
void xwssc_hwifal_notify (struct xwssc *xwssc, xwsq_t evt)
 

详细描述

SOC间点对点通讯协议:硬件接口抽象层

作者

在文件 hwifal.h 中定义.

枚举类型说明

◆ xwssc_hwifal_notification_em

硬件接口层事件枚举

枚举值
XWSSC_HWIFNTF_CONNECT 

与远程端链接

XWSSC_HWIFNTF_NETUNREACH 

远程端无响应

在文件 hwifal.h54 行定义.

54 {
57};
@ XWSSC_HWIFNTF_NETUNREACH
Definition hwifal.h:56
@ XWSSC_HWIFNTF_CONNECT
Definition hwifal.h:55

◆ xwssc_hwifal_state_em

硬件接口抽象层状态枚举

枚举值
XWSSC_HWIFST_CLOSED 

硬件接口已经关闭

XWSSC_HWIFST_CONNECT 

硬件接口已经连接

XWSSC_HWIFST_RX 

硬件接口正在接收数据

XWSSC_HWIFST_TX 

硬件接口正在发送数据

在文件 hwifal.h44 行定义.

44 {
49};
#define XWBOP_BIT(n)
Definition xwbop.h:27
@ XWSSC_HWIFST_TX
Definition hwifal.h:48
@ XWSSC_HWIFST_CLOSED
Definition hwifal.h:45
@ XWSSC_HWIFST_RX
Definition hwifal.h:47
@ XWSSC_HWIFST_CONNECT
Definition hwifal.h:46

函数说明

◆ xwssc_hwifal_close()

xwer_t xwssc_hwifal_close ( struct xwssc xwssc)

◆ xwssc_hwifal_notify()

void xwssc_hwifal_notify ( struct xwssc xwssc,
xwsq_t  evt 
)

◆ xwssc_hwifal_open()

xwer_t xwssc_hwifal_open ( struct xwssc xwssc,
void *  hwifcb 
)

◆ xwssc_hwifal_rx_body()

xwer_t xwssc_hwifal_rx_body ( struct xwssc xwssc,
struct xwssc_frm frm,
xwsz_t  sdusize 
)

◆ xwssc_hwifal_rx_head()

xwer_t xwssc_hwifal_rx_head ( struct xwssc xwssc,
struct xwssc_frm frm 
)

◆ xwssc_hwifal_tx()

xwer_t xwssc_hwifal_tx ( struct xwssc xwssc,
const xwu8_t stream,
xwsz_t  size 
)