Technical Support
On-Line Manuals
RL-ARM User's Guide (MDK v4)
#include <file_config.h> int ioc_init ( FAT_VI* vi); /* Pointer to media control block */
The function ioc_init initializes the FAT Media device.
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.
This function calls the Init function of the underlying SPI, MCI, or NAND media driver.
note
Support for ioc routines is only available on Memory Card and NAND Flash drives!
ioc_getcb, ioc_read_info, ioc_read_sect, ioc_uninit, ioc_write_sect
#include <File_Config.h> FAT_VI *mc0; /* Media Control Block */ int main (void) { Media_INFO info; ... mc0 = ioc_getcb (NULL); /* Default drive is M0: */ if (ioc_init (mc0) == 0) { ioc_read_info (&info, mc0); USBD_MSC_BlockSize = 512; USBD_MSC_BlockCount = info.block_cnt * (info.read_blen / 512); USBD_MSC_MemorySize = USBD_MSC_BlockCount * info.read_blen; usbd_connect(__TRUE); lcd_print ("PC Interface"); } else { lcd_print ("Card Failure!"); } ... }
Cookie Settings | Terms of Use | Privacy | Accessibility | Trademarks | Contact Us | Feedback
Copyright © 2005-2019 Arm Limited (or its affiliates). All rights reserved.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
Change Settings
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.