Kernel description UM2222
18/76 UM2222 Rev 2
In the FatFS file system, the page size is fixed to 512 bytes. The SD cards with higher page
size are not supported.
The software architecture of the storage unit is described in Figure 9.
Table 1. File system interface functions
Function Description
disk_initialize Initialize disk drive
disk_read Interface function for a logical page read
disk_write Interface function for a logical page write
disk_status Interface function for testing if unit is ready
disk_ioctl Control device dependent features
f_mount Register / unregister a work area
f_open Open / create a file
f_close Close a file
f_read Read a file
f_write Write a file
f_lseek Move read / write pointer, expand file size
f_truncate Truncate file size
f_sync Flush cached data
f_opendir Open a directory
f_readdir Read a directory item
f_getfree Get free clusters
f_stat Get a file status
f_mkdir Create a directory
f_unlink Remove a file or a directory
f_chmod Change attribute
f_utime Change timestamp
f_rename Rename / move a file or a directory
f_mkfs Create a file system on the drive
f_forward Forward file data to the stream directly
f_chdir Change current directory
f_chdrive Change current drive
f_getcwd Retrieve the current directory
f_gets Read a string
f_putc Write a character
f_puts Write a string
f_printf Write a formatted string