1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>FS_OpenFileFast</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">FS_OpenFileFast <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></h1> 15<h2>Syntax</h2> 16 17<dl> 18 <dd> 19<CODE>#include <nitro/fs.h></CODE><BR> <BR> <CODE>BOOL FS_OpenFileFast( <A href="../fs_file_type.html">FSFile</a> *p_file, <A href="../fs_file_id_type.html">FSFileID</a> file_id );</CODE><br> <br> 20 </dd> 21</dl> 22<h2>Arguments</h2> 23<TABLE border="1" width="100%"> 24 <TBODY> 25 <TR> 26<TD width="13%"><EM><STRONG>p_file</STRONG></EM></TD> 27<TD width="87%">Address of the <A href="../fs_file_type.html"><CODE>FSFile</CODE></A> structure.</TD> 28 </TR> 29 <TR> 30<TD width="13%"><EM><STRONG><code><EM><STRONG>file_id</STRONG></EM></code></STRONG></EM></TD> 31<TD width="87%">File ID that is specified by <CODE>file_id</CODE> in the <A href="../fs_dir_entry_type.html">FSDirEntry</a> structure</TD> 32 </TR> 33 </TBODY> 34</TABLE> 35 36<h2>Return Values</h2> 37<p>Returns TRUE if the file opens properly; FALSE otherwise.</p> 38 39<H2>Description</H2> 40<P>This function uses the specified ID to open a file. Use the <code><A href="FS_ReadDir.html">FS_ReadDir</A></code> function to obtain the ID. <BR> 41</P> 42<h2>Note</h2> 43<P>In the application, the <CODE>NITRO_MAKEROM</CODE> flag must be enabled so that the ROM file system is included.<br>This function cannot be called from the interrupt handler (IRQ mode).<br> Also note that in some cases processing may not end if interrupts are left prohibited.<br> 44</P> 45<h2>See Also</h2> 46<p><CODE><A href="FS_CloseFile.html">FS_CloseFile</A><BR> <A href="../fs_dir_entry_type.html">FSDirEntry</A><BR><A href="../fs_file_type.html">FSFile</A><BR> <A href="../fs_file_id_type.html">FSFileID</A><BR><A href="FS_GetFileLength.html">FS_GetFileLength</A><BR> <A href="FS_OpenFileEx.html">FS_OpenFileEx</A><BR> <A href="FS_ReadDir.html">FS_ReadDir</A><BR> <A href="FS_ReadFile.html">FS_ReadFile</A><BR> <A href="FS_SeekFile.html">FS_SeekFile</A><BR> <A href="FS_SeekFileToBegin.html">FS_SeekFileToBegin</A><BR> <A href="FS_SeekFileToEnd.html">FS_SeekFileToEnd</A></CODE></p> 47 48<H2>Revision History</H2> 49<P> 502008/10/02 Revised the See Also list.<br />2004/11/02 Changed the argument name.<br /> 2004/09/24 Added text under Caution regarding the conditions for calling this function.<br /> 2004/05/14 ID type changed from <CODE>u32</CODE> to <CODE>FSFileID</CODE>.<br> 2004/04/02 Changed "file system" to "ROM file system."<br> 2004/04/01 Initial version. 51</P> 52<hr><p>CONFIDENTIAL</p></body> 53</html> 54