XWOS API
4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
common.h
浏览该文件的文档.
1
21
#ifndef __xwcd_ds_i2c_common_h__
22
#define __xwcd_ds_i2c_common_h__
23
24
#include <
xwcd/ds/standard.h
>
25
35
enum
xwds_i2c_msgflag_em
{
36
XWDS_I2C_F_10BITADDR
= (1U),
37
XWDS_I2C_F_ADDRMSK
= (1U),
39
XWDS_I2C_F_RD
= (2U),
40
XWDS_I2C_F_DIRMSK
= (2U),
42
XWDS_I2C_F_START
= (4U),
43
XWDS_I2C_F_STOP
= (8U),
44
};
45
49
struct
xwds_i2c_msg
{
50
xwu16_t
addr
;
53
xwu16_t
flag
;
54
xwu8_t
*
data
;
55
xwsz_t
size
;
56
};
57
62
#endif
/* xwcd/ds/i2c/common.h */
xwds_i2c_msgflag_em
xwds_i2c_msgflag_em
I2C消息标志枚举
Definition
common.h:35
XWDS_I2C_F_START
@ XWDS_I2C_F_START
Definition
common.h:42
XWDS_I2C_F_RD
@ XWDS_I2C_F_RD
Definition
common.h:39
XWDS_I2C_F_ADDRMSK
@ XWDS_I2C_F_ADDRMSK
Definition
common.h:37
XWDS_I2C_F_10BITADDR
@ XWDS_I2C_F_10BITADDR
Definition
common.h:36
XWDS_I2C_F_DIRMSK
@ XWDS_I2C_F_DIRMSK
Definition
common.h:40
XWDS_I2C_F_STOP
@ XWDS_I2C_F_STOP
Definition
common.h:43
xwsz_t
unsigned long xwsz_t
Definition
type.h:339
xwu8_t
uint8_t xwu8_t
Definition
type.h:194
xwu16_t
uint16_t xwu16_t
Definition
type.h:230
xwds_i2c_msg
I2C消息
Definition
common.h:49
xwds_i2c_msg::size
xwsz_t size
Definition
common.h:55
xwds_i2c_msg::data
xwu8_t * data
Definition
common.h:54
xwds_i2c_msg::addr
xwu16_t addr
Definition
common.h:50
xwds_i2c_msg::flag
xwu16_t flag
Definition
common.h:53
standard.h
玄武设备栈:顶级头文件
xwcd
ds
i2c
common.h
制作者
1.9.7