| Summary |
#include <file_config.h>
BOOL ioc_write_sect (
U32 sect, /* Absolute sector address. */
U8* buf, /* Pointer to buffer with the data to write */
U32 cnt, /* Number of sectors to write. */
FAT_VI* vi); /* Pointer to media control block */
|
| Description | The function ioc_write_sect writes data to one or more sectors of a FAT Media. The parameter sect specifies the starting sector to write the data. The parameter buf is a pointer to the buffer that contains the data to write. The parameter cnt specifies the number of sectors to write to. 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_read_sect, ioc_uninit |
| Example |
#include <File_Config.h>
FAT_VI *mc0; /* Media Control Block */
void usbd_msc_write_sect (U32 block, U8 *buf, U32 num_of_blocks) {
ioc_write_sect(block, buf, num_of_blocks, mc0);
}
|