23#ifndef __xwcd_peripheral_i2c_eeprom_driver_h__
24#define __xwcd_peripheral_i2c_eeprom_driver_h__
67#if defined(XWCDCFG_ds_PM) && (1 == XWCDCFG_ds_PM)
xws64_t xwtm_t
XWOS系统时间 (有符号)
xwer_t xwds_eeprom_drv_start(struct xwds_device *dev)
EEPROM基本驱动:启动设备
xwer_t xwds_eeprom_putc(struct xwds_eeprom *eeprom, xwu8_t data, xwsq_t addr, xwtm_t to)
EEPROM API:写一个字节到EEPROM
xwer_t xwds_eeprom_drv_suspend(struct xwds_device *dev)
EEPROM基本驱动:继续设备
xwer_t xwds_eeprom_pgwrite(struct xwds_eeprom *eeprom, xwu8_t *data, xwsz_t *size, xwsq_t pgidx, xwtm_t to)
EEPROM API:写一页数据到EEPROM
xwer_t xwds_eeprom_getc(struct xwds_eeprom *eeprom, xwu8_t *buf, xwsq_t addr, xwtm_t to)
EEPROM API:从EEPROM中读取一个字节
xwer_t xwds_eeprom_pgread(struct xwds_eeprom *eeprom, xwu8_t *buf, xwsz_t *size, xwsq_t pgidx, xwtm_t to)
EEPROM API:从EEPROM读一页数据
xwer_t xwds_eeprom_wp_enable(struct xwds_eeprom *eeprom)
EEPROM API:开启EEPROM的写保护
xwer_t xwds_eeprom_reset(struct xwds_eeprom *eeprom, xwtm_t to)
EEPROM API:复位EEPROM的I2C总线
xwer_t xwds_eeprom_drv_stop(struct xwds_device *dev)
EEPROM基本驱动:停止设备
const struct xwds_eeprom_driver at24md_drv
xwer_t xwds_eeprom_wp_disable(struct xwds_eeprom *eeprom)
EEPROM API:关闭EEPROM的写保护
const struct xwds_eeprom_driver at24sd_drv
xwer_t xwds_eeprom_power_off(struct xwds_eeprom *eeprom)
EEPROM API:关闭EEPROM的电源
xwer_t xwds_eeprom_power_on(struct xwds_eeprom *eeprom)
EEPROM API:开启EEPROM的电源
xwer_t xwds_eeprom_drv_resume(struct xwds_device *dev)
EEPROM基本驱动:暂停设备
xwer_t(* pgread)(struct xwds_eeprom *, xwu8_t *, xwsz_t *, xwsq_t, xwtm_t)
struct xwds_i2cp_driver i2cp
xwer_t(* getc)(struct xwds_eeprom *, xwu8_t *, xwptr_t, xwtm_t)
xwer_t(* pgwrite)(struct xwds_eeprom *, xwu8_t *, xwsz_t *, xwsq_t, xwtm_t)
xwer_t(* putc)(struct xwds_eeprom *, xwu8_t, xwptr_t, xwtm_t)