RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
rt_mtd_nand_driver_ops结构体 参考

#include <mtd_nand.h>

成员变量

rt_err_t(* read_id )(struct rt_mtd_nand_device *device)
 
rt_err_t(* read_page )(struct rt_mtd_nand_device *device, rt_off_t page, rt_uint8_t *data, rt_uint32_t data_len, rt_uint8_t *spare, rt_uint32_t spare_len)
 
rt_err_t(* write_page )(struct rt_mtd_nand_device *device, rt_off_t page, const rt_uint8_t *data, rt_uint32_t data_len, const rt_uint8_t *spare, rt_uint32_t spare_len)
 
rt_err_t(* move_page )(struct rt_mtd_nand_device *device, rt_off_t src_page, rt_off_t dst_page)
 
rt_err_t(* erase_block )(struct rt_mtd_nand_device *device, rt_uint32_t block)
 
rt_err_t(* check_block )(struct rt_mtd_nand_device *device, rt_uint32_t block)
 
rt_err_t(* mark_badblock )(struct rt_mtd_nand_device *device, rt_uint32_t block)
 

详细描述

在文件 mtd_nand.h55 行定义.

结构体成员变量说明

◆ read_id

rt_err_t(* rt_mtd_nand_driver_ops::read_id) (struct rt_mtd_nand_device *device)

在文件 mtd_nand.h57 行定义.

◆ read_page

rt_err_t(* rt_mtd_nand_driver_ops::read_page) (struct rt_mtd_nand_device *device, rt_off_t page, rt_uint8_t *data, rt_uint32_t data_len, rt_uint8_t *spare, rt_uint32_t spare_len)

在文件 mtd_nand.h59 行定义.

◆ write_page

rt_err_t(* rt_mtd_nand_driver_ops::write_page) (struct rt_mtd_nand_device *device, rt_off_t page, const rt_uint8_t *data, rt_uint32_t data_len, const rt_uint8_t *spare, rt_uint32_t spare_len)

在文件 mtd_nand.h64 行定义.

◆ move_page

rt_err_t(* rt_mtd_nand_driver_ops::move_page) (struct rt_mtd_nand_device *device, rt_off_t src_page, rt_off_t dst_page)

在文件 mtd_nand.h68 行定义.

◆ erase_block

rt_err_t(* rt_mtd_nand_driver_ops::erase_block) (struct rt_mtd_nand_device *device, rt_uint32_t block)

在文件 mtd_nand.h70 行定义.

◆ check_block

rt_err_t(* rt_mtd_nand_driver_ops::check_block) (struct rt_mtd_nand_device *device, rt_uint32_t block)

在文件 mtd_nand.h71 行定义.

◆ mark_badblock

rt_err_t(* rt_mtd_nand_driver_ops::mark_badblock) (struct rt_mtd_nand_device *device, rt_uint32_t block)

在文件 mtd_nand.h72 行定义.