23#ifndef __xwcd_peripheral_spi_flash_w25qxx_driver_h__
24#define __xwcd_peripheral_spi_flash_w25qxx_driver_h__
57#if defined(XWCDCFG_ds_PM) && (1 == XWCDCFG_ds_PM)
xws64_t xwtm_t
XWOS系统时间 (有符号)
xwer_t xwds_w25qxx_read_uid(struct xwds_w25qxx *w25qxx, xwu64_t *uidbuf, xwtm_t to)
W25QXX API:读取W25QXX的UID
xwer_t xwds_w25qxx_write(struct xwds_w25qxx *w25qxx, xwu32_t address, xwu8_t *txb, xwsz_t *size, xwtm_t to)
W25QXX API:向W25QXX写入数据
xwer_t xwds_w25qxx_ctrl(struct xwds_w25qxx *w25qxx, xwu8_t instruction, xwu8_t address_size, xwu32_t address, xwu32_t dummy_cycles, const xwu8_t txd[], xwu8_t *rxb, xwsz_t size, xwtm_t to)
W25QXX API:向W25QXX发送指令
xwer_t xwds_w25qxx_read_mid(struct xwds_w25qxx *w25qxx, xwu16_t *midbuf, xwtm_t to)
W25QXX API:读取W25QXX的MID
xwer_t xwds_w25qxx_wait_idle(struct xwds_w25qxx *w25qxx, xwtm_t period, xwtm_t to)
W25QXX API:等待W25QXX是否空闲
xwer_t xwds_w25qxx_reset(struct xwds_w25qxx *w25qxx, xwtm_t to)
W25QXX API:向W25QXX发送复位命令
xwer_t xwds_w25qxx_write_disable(struct xwds_w25qxx *w25qxx, xwtm_t to)
W25QXX API:关闭W25QXX的写操作
struct xwds_w25qxx_cmd xwds_w25q64jv_cmd[XWDS_W25QXX_CMD_NUM]
xwer_t xwds_w25qxx_read(struct xwds_w25qxx *w25qxx, xwu32_t address, xwu8_t *rxb, xwsz_t *size, xwtm_t to)
W25QXX API:向W25QXX读取数据
xwer_t xwds_w25qxx_check_idle(struct xwds_w25qxx *w25qxx, xwtm_t to)
W25QXX API:检测W25QXX是否空闲
xwer_t xwds_w25qxx_write_enable(struct xwds_w25qxx *w25qxx, xwtm_t to)
W25QXX API:开启W25QXX的写操作
xwer_t xwds_w25qxx_erase_32kblk(struct xwds_w25qxx *w25qxx, xwu32_t address, xwtm_t to)
W25QXX API:擦除W25QXX的32KiB的块
xwer_t xwds_w25qxx_drv_start(struct xwds_device *dev)
W25QXX基本驱动:启动设备
xwer_t xwds_w25qxx_read_jid(struct xwds_w25qxx *w25qxx, xwu32_t *jidbuf, xwtm_t to)
W25QXX API:读取W25QXX的JID
struct xwds_w25qxx_cmd xwds_w25q128jv_cmd[XWDS_W25QXX_CMD_NUM]
xwer_t xwds_w25qxx_erase_64kblk(struct xwds_w25qxx *w25qxx, xwu32_t address, xwtm_t to)
W25QXX API:擦除W25QXX的64KiB的块
xwer_t xwds_w25qxx_drv_suspend(struct xwds_device *dev)
W25QXX基本驱动:继续设备
xwer_t xwds_w25qxx_read_sr(struct xwds_w25qxx *w25qxx, xwu32_t sridx, xwu8_t *srbuf, xwtm_t to)
W25QXX API:读取W25QXX的SR寄存器
xwer_t xwds_w25qxx_drv_stop(struct xwds_device *dev)
W25QXX基本驱动:停止设备
xwer_t xwds_w25qxx_erase_sector(struct xwds_w25qxx *w25qxx, xwu32_t address, xwtm_t to)
W25QXX API:擦除W25QXX的sector
xwer_t xwds_w25qxx_init_parameter(struct xwds_w25qxx *w25qxx, xwtm_t to)
W25QXX API:初始化W25QXX的参数
xwer_t xwds_w25qxx_drv_resume(struct xwds_device *dev)
W25QXX基本驱动:暂停设备
xwer_t xwds_w25qxx_erase_chip(struct xwds_w25qxx *w25qxx, xwtm_t to)
W25QXX API:擦除W25QXX的全部数据
xwer_t(* io)(struct xwds_w25qxx *, xwu8_t *, xwu8_t *, xwsz_t *, xwtm_t)
struct xwds_spip_driver spip