1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../css/manpage.css" type="text/css" /> 7<title>ForceEnableLatencyEmulation</title> 8 </head> 9 <body> 10<h1><CODE><a href="../../nn/Overview.html">nn</a>::<a href="../../nn/fs/Overview.html">fs</a>::ForceEnableLatencyEmulation</CODE> Function</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14void ForceEnableLatencyEmulation( 15 bool isEmulateEndurance = true, 16 s64 constantWait = 0 17); 18</pre> 19 </div> 20<h2>Arguments</h2> 21 <div class="section"> 22 <table class="arguments"> 23 <thead> 24 <tr> 25 <td width="15" /> 26<th>Name</th> 27<td>Description</td> 28 </tr> 29 </thead> 30 <tr> 31<td>in</td> 32<th>isEmulateEndurance</th> 33<td>Emulates the behavior of a non-volatile memory device that has become degraded. (If this is omitted, <CODE>true</CODE> is specified by default.)<br />The latencies at runtime are a wait time of 1 to 100 ms for each read, and a wait time of 0 to 380 ms for each write.</td> 34 </tr> 35 <tr> 36<td>in</td> 37<th>constantWait</th> 38<td>Emulates a fixed period of waiting. (If omitted, <CODE>0</CODE> is specified by default.)<br />If you specify <CODE>nn::fs::LATENCY_RECOMMENDED_SD_MAX</CODE>, a latency of 700 ms is emulated for the time in takes in a pure SD Card usage environment when a conflict arises for FS resources with BOSS in the background.</td> 39 </tr> </table> 40 </div> 41<h2>Return Values</h2> 42 <div class="section"> 43None. 44 </div> 45<h2>Description</h2> 46 <div class="section"> 47<p>Emulates the behavior of a non-volatile memory device that has become degraded, and the behavior when a conflict arises for FS resources with a process in the background. (For debugging purposes.)</p><p>This emulation is enabled by default for debug and development builds, but disabled by default for release builds. Call this function to explicitly enable emulation for debugging purposes.</p><p>Call the <a href="../../nn/fs/ForceEnableLatencyEmulation.html"><CODE>nn::fs::ForceDisableLatencyEmulation</CODE></a> function to explicitly disable the emulation.</p><h3>Notes for writing an application to a CTR flash card using PARTNER-CTR-Debugger</h3><div class="section"> 48CTR flash cards have a function that sets the access speed from the card. The "development card speed setting" configured by the PARTNER-CTR-Debugger when it writes the program is reflected as the access speed.<br />When the SDK's latency emulation is enabled, the above access speed is added during game card access.<br />Use these functions as needed while debugging your application. (For example, you can enable just one of them.) 49 </div></div> 50<h2>Revision History</h2> 51 <div class="section"> 52 <dl class="history"> 53 <dt>2011/03/15</dt> 54<dd>Added description regarding to the access speed setting feature of CTR flash cards.<br /> 55 </dd> 56 <dt>2011/02/21</dt> 57<dd>Added a feature to always emulate a fixed period of waiting.<br /> 58 </dd> 59 <dt>2010/11/11</dt> 60<dd>Added specific wait values. 61 </dd> 62 <dt>2010/11/09</dt> 63<dd>Initial version.<br /> 64 </dd> 65 </dl> 66 </div> 67 <hr><p>CONFIDENTIAL</p></body> 68</html> 69