XWOS API  4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
device.h
浏览该文件的文档.
1
21#ifndef __xwcd_peripheral_can_transceiver_xxx10xx_device_h__
22#define __xwcd_peripheral_can_transceiver_xxx10xx_device_h__
23
24#include <xwos/standard.h>
26
39 struct {
40 const struct xwds_resource_gpio * stb;
41 const struct xwds_resource_gpio * eirq;
44};
45
51
57
64static __xwds_inline
66{
67 return xwds_cantrcv_grab(&xxx10xx->cantrcv);
68}
69
76static __xwds_inline
78{
79 return xwds_cantrcv_put(&xxx10xx->cantrcv);
80}
81
86#endif /* xwcd/peripheral/can/transceiver/xxx10xx/device.h */
xwer_t xwds_cantrcv_put(struct xwds_cantrcv *cantrcv)
XWDS API:减少对象的引用计数
Definition transceiver.c:79
xwer_t xwds_cantrcv_grab(struct xwds_cantrcv *cantrcv)
XWDS API:增加对象的引用计数
Definition transceiver.c:73
#define __xwds_inline
Definition standard.h:34
void xwds_cantrcv_xxx10xx_destruct(struct xwds_cantrcv_xxx10xx *xxx10xx)
XXX10XX API:XXX10XX对象的析构函数
Definition device.c:32
void xwds_cantrcv_xxx10xx_construct(struct xwds_cantrcv_xxx10xx *xxx10xx)
XXX10XX API:XXX10XX对象的构造函数
Definition device.c:26
static xwer_t xwds_cantrcv_xxx10xx_grab(struct xwds_cantrcv_xxx10xx *xxx10xx)
XXX10XX API:增加对象的引用计数
Definition device.h:65
static xwer_t xwds_cantrcv_xxx10xx_put(struct xwds_cantrcv_xxx10xx *xxx10xx)
XXX10XX API:减少对象的引用计数
Definition device.h:77
signed long xwer_t
Definition type.h:554
unsigned long xwid_t
Definition type.h:481
XXX10XX对象
Definition device.h:37
struct xwds_cantrcv_xxx10xx::@28 gpiorsc
const struct xwds_resource_gpio * stb
Definition device.h:40
struct xwds_cantrcv cantrcv
Definition device.h:38
const struct xwds_resource_gpio * eirq
Definition device.h:41
CAN接收器
设备栈GPIO资源
Definition standard.h:98
玄武设备栈:CAN:总线接收器
XWOS的标准头文件