2011-06-15 08:51:22 +00:00
|
|
|
#ifndef _AT45DB041D_H
|
|
|
|
#define _AT45DB041D_H 1
|
|
|
|
|
2011-06-17 10:31:42 +00:00
|
|
|
#include "diskio.h"
|
|
|
|
|
2011-06-15 08:51:22 +00:00
|
|
|
DSTATUS dataflash_initialize();
|
|
|
|
DSTATUS dataflash_status();
|
|
|
|
DRESULT dataflash_read(BYTE *buff, DWORD sector, BYTE count);
|
2011-06-17 10:31:42 +00:00
|
|
|
DRESULT dataflash_random_read(BYTE *buff, DWORD offset, DWORD length);
|
2011-06-15 08:51:22 +00:00
|
|
|
DRESULT dataflash_write(const BYTE *buff, DWORD sector, BYTE count);
|
2011-06-17 10:31:42 +00:00
|
|
|
DRESULT dataflash_random_write(const BYTE *buff, DWORD offset, DWORD length);
|
2011-06-15 08:51:22 +00:00
|
|
|
DRESULT dataflash_ioctl(BYTE ctrl, void *buff);
|
|
|
|
|
|
|
|
#endif /* _AT45DB041D_H */
|