XWOS API  4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
hwifal.h
浏览该文件的文档.
1
13#ifndef __xwmd_isc_xwssc_hwifal_h__
14#define __xwmd_isc_xwssc_hwifal_h__
15
16#include <xwos/standard.h>
17#include <xwos/lib/xwbop.h>
18
24struct xwssc;
25union xwssc_slot;
26struct xwssc_frm;
27
32 // cppcheck-suppress [misra-c2012-5.8]
33 xwer_t (* open)(struct xwssc *);
34 // cppcheck-suppress [misra-c2012-5.8]
35 xwer_t (* close)(struct xwssc *);
36 xwer_t (* tx)(struct xwssc *, const xwu8_t *, xwsz_t);
37 xwer_t (* rx)(struct xwssc *, xwu8_t *, xwsz_t *);
38 void (* notify)(struct xwssc *, xwsq_t);
39};
40
49};
50
57};
58
61xwer_t xwssc_hwifal_tx(struct xwssc * xwssc, const xwu8_t * stream, xwsz_t size);
64 struct xwssc_frm * frm, xwsz_t sdusize);
66
71#endif /* xwmd/isc/xwssc/hwifal.h */
signed long xwer_t
Definition type.h:554
unsigned long xwsz_t
Definition type.h:339
uint8_t xwu8_t
Definition type.h:194
unsigned long xwsq_t
Definition type.h:445
#define XWBOP_BIT(n)
Definition xwbop.h:27
xwssc_hwifal_state_em
硬件接口抽象层状态枚举
Definition hwifal.h:44
@ 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
xwer_t xwssc_hwifal_tx(struct xwssc *xwssc, const xwu8_t *stream, xwsz_t size)
xwer_t xwssc_hwifal_rx_body(struct xwssc *xwssc, struct xwssc_frm *frm, xwsz_t sdusize)
xwer_t xwssc_hwifal_rx_head(struct xwssc *xwssc, struct xwssc_frm *frm)
xwer_t xwssc_hwifal_open(struct xwssc *xwssc, void *hwifcb)
xwer_t xwssc_hwifal_close(struct xwssc *xwssc)
void xwssc_hwifal_notify(struct xwssc *xwssc, xwsq_t evt)
xwssc_hwifal_notification_em
硬件接口层事件枚举
Definition hwifal.h:54
@ XWSSC_HWIFNTF_NETUNREACH
Definition hwifal.h:56
@ XWSSC_HWIFNTF_CONNECT
Definition hwifal.h:55
XWSSC的帧
Definition protocol.h:121
硬件接口抽象层操作函数集
Definition hwifal.h:31
xwer_t(* rx)(struct xwssc *, xwu8_t *, xwsz_t *)
Definition hwifal.h:37
void(* notify)(struct xwssc *, xwsq_t)
Definition hwifal.h:38
xwer_t(* tx)(struct xwssc *, const xwu8_t *, xwsz_t)
Definition hwifal.h:36
xwer_t(* close)(struct xwssc *)
Definition hwifal.h:35
xwer_t(* open)(struct xwssc *)
Definition hwifal.h:33
XWSSC对象
Definition protocol.h:160
void * hwifcb
Definition protocol.h:166
XWSSC帧槽
Definition protocol.h:132
XWOS通用库:位操作
XWOS的标准头文件