| Summary |
#include <file_config.h>
BOOL ioc_read_sect (
U32 sect, /* Absolute sector address. */
U8* buf, /* Location where to write the read data. */
U32 cnt, /* Number of sectors to read. */
FAT_VI* vi); /* Pointer to media control block */
|
| Description | The function ioc_read_sect reads data from one or more sectors of a the FAT Media. The parameter sect specifies the starting sector from where to read the data. The parameter buf is a pointer to the buffer that stores the data. The parameter cnt specifies the number of sectors to read. The parameter vi is a pointer specifying the media control block. The function is included in the library RL-FlashFS. The prototype is defined in the file File_Config.h. |
| Return Value | - __TRUE - on success.
- __FALSE - on failure.
|
| See Also | ioc_getcb, ioc_init, ioc_read_info, ioc_uninit, ioc_write_sect |
| Example |
#include <File_Config.h>
FAT_VI *mc0; /* Media Control Block */
void usbd_msc_read_sect (U32 block, U8 *buf, U32 num_of_blocks) {
ioc_read_sect (block, buf, num_of_blocks, mc0);
}
|