XWOS API  4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
device.h
浏览该文件的文档.
1
21#ifndef __xwcd_peripheral_i2c_eeprom_device_h__
22#define __xwcd_peripheral_i2c_eeprom_device_h__
23
24#include <xwos/standard.h>
26
36};
37
39 struct xwds_i2cp i2cp;
43};
44
45void xwds_eeprom_construct(struct xwds_eeprom * eeprom);
46void xwds_eeprom_destruct(struct xwds_eeprom * eeprom);
47
54static __xwds_inline
56{
57 return xwds_i2cp_grab(&eeprom->i2cp);
58}
59
66static __xwds_inline
68{
69 return xwds_i2cp_put(&eeprom->i2cp);
70}
71
76#endif /* xwcd/peripheral/i2c/eeprom/device.h */
xwer_t xwds_i2cp_put(struct xwds_i2cp *i2cp)
XWDS API:减少对象的引用计数
Definition peripheral.c:76
xwer_t xwds_i2cp_grab(struct xwds_i2cp *i2cp)
XWDS API:增加对象的引用计数
Definition peripheral.c:70
#define __xwds_inline
Definition standard.h:34
static xwer_t xwds_eeprom_grab(struct xwds_eeprom *eeprom)
EEPROM API:增加对象的引用计数
Definition device.h:55
static xwer_t xwds_eeprom_put(struct xwds_eeprom *eeprom)
EEPROM API:减少对象的引用计数
Definition device.h:67
void xwds_eeprom_construct(struct xwds_eeprom *eeprom)
Definition device.c:26
void xwds_eeprom_destruct(struct xwds_eeprom *eeprom)
Definition device.c:32
signed long xwer_t
Definition type.h:554
unsigned long xwsz_t
Definition type.h:339
玄武设备栈:I2C:外设
const struct xwds_resource_gpio * wp_gpiorsc
Definition device.h:42
const struct xwds_resource_gpio * pwr_gpiorsc
Definition device.h:41
const struct xwds_eeprom_parameter parameter
Definition device.h:40
struct xwds_i2cp i2cp
Definition device.h:39
I2C外设
Definition peripheral.h:48
设备栈GPIO资源
Definition standard.h:98
XWOS的标准头文件