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>CARD_UnlockRom</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">CARD_UnlockRom <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/card.h></CODE><BR> 20 <BR> 21 <CODE>void CARD_UnlockRom(u16 lock_id);</CODE><br> 22 <br> 23 </dd> 24</dl> 25<h2>Arguments</h2> 26<TABLE border="1" width="100%"> 27 <TBODY> 28 <TR> 29<TD width="13%"><EM><STRONG><CODE>lock_id</CODE></STRONG></EM></TD> 30<TD width="87%">ID used for locking a card</TD> 31 </TR> 32 </TBODY> 33</TABLE> 34 35<h2>Return Values</h2> 36<p>None.</p> 37 38<H2>Description</H2> 39<P>Unlocks the access bus to a Game Card ROM device. If another module (with another ID) is already waiting for release, access rights go to the waiting module.<BR>If the specified ID refers to a device that is currently locked, the bus is unlocked, and control is returned.<BR>If the ID refers to a device that is not currently locked, a warning message is output, and the <code><a href="../../os/debug/OS_Panic.html">OS_Panic</a></code> function forcibly stops the process.<BR><BR> The function identifies devices with ROM when it executes, automatically selecting the Game Card or Game Pak and unlocking the bus. <BR> 40</P> 41<H2>Note</H2> 42<P> 43<FONT color="#800000">All functions that access a Game Card ROM device must first lock the access bus.<BR> You cannot access a Game Card ROM device and a backup device simultaneously.<BR> While one bus is locked, other bus locks are forced to wait.<BR></FONT> 44</P> 45<h2>See Also</h2> 46<p><A href="../../os/spinLock/OS_UnlockCard.html"><CODE>OS_UnlockCard</CODE></A><BR> <A href="../../os/spinLock/OS_UnlockCartridge.html"><CODE>OS_UnlockCartridge</CODE></A><BR> <A href="CARD_LockRom.html"><CODE>CARD_LockRom</CODE></A></p> 47 48<H2>Revision History</H2> 49<P> 502009/01/30 Corrected the explanation of behavior for an invalid lock ID.<br /> 2004/09/06 Corrected the description of the prototype.<br /> 2004/08/31 Added description that indicates that this function will always succeed.<br /> 2004/08/04 In <B>Description</B>, changed "unlock" to "release" in one place.<br /> 2004/07/23 Changed lock ID type from <code>u32</code> to <code>u16</code>.<br /> 2004/07/10 Added description concerning bus lock and exclusive control of access with backup device.<br /> 2004/07/05 Initial version. 51</P> 52<hr><p>CONFIDENTIAL</p></body> 53</html> 54