⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 boot_8h.html

📁 BlueLab3 bluetooth API 说明文档
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>BlueLab: boot.h File Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.8 --><div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a></div><h1>boot.h File Reference</h1>Control booting BlueCore with different active settings. <a href="#_details">More...</a><p><h2>Functions</h2><ul><li><a class="el" href="csrtypes_8h.html#a4">uint16</a> <a class="el" href="boot_8h.html#a0">BootGetMode</a> (void)<dl class="el"><dd class="mdescRight">Read the current boot mode.  <a href="#a0"></a><br></dl><li>void <a class="el" href="boot_8h.html#a1">BootSetMode</a> (<a class="el" href="csrtypes_8h.html#a4">uint16</a> newBootmode)<dl class="el"><dd class="mdescRight">Set the mode and force a reboot (warm reset).  <a href="#a1"></a><br></dl><li><a class="el" href="csrtypes_8h.html#a4">uint16</a> <a class="el" href="boot_8h.html#a2">BootGetPreservedWord</a> (void)<dl class="el"><dd class="mdescRight">Read the (single) word preserved between boots.  <a href="#a2"></a><br></dl><li>void <a class="el" href="boot_8h.html#a3">BootSetPreservedWord</a> (<a class="el" href="csrtypes_8h.html#a4">uint16</a> state)<dl class="el"><dd class="mdescRight">Write the (single) word preserved between boots.  <a href="#a3"></a><br></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2>Control booting BlueCore with different active settings. <p>These functions control the BlueCore bootmode on unified firmware. Each bootmode has a unique view of the persistent store, and so a single device could boot up as (for example) an HCI dongle using USB in one bootmode and a HID dongle using BCSP in another bootmode.<p>Incorrect use of these functions could produce a non-functional module, and so caution should be exercised.<p>BootGetPreservedWord and BootSetPreservedWord can be used to preserve a single word of state between boots.<hr><h2>Function Documentation</h2><a class="anchor" name="a0" doxytag="boot.h::BootGetMode" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="csrtypes_8h.html#a4">uint16</a> BootGetMode           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Read the current boot mode. <p>    </td>  </tr></table><a class="anchor" name="a1" doxytag="boot.h::BootSetMode" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void BootSetMode           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="csrtypes_8h.html#a4">uint16</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>newBootmode</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Set the mode and force a reboot (warm reset). <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>newBootmode</em>&nbsp;</td><td>The new boot mode to use. </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="a2" doxytag="boot.h::BootGetPreservedWord" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="csrtypes_8h.html#a4">uint16</a> BootGetPreservedWord           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Read the (single) word preserved between boots. <p>    </td>  </tr></table><a class="anchor" name="a3" doxytag="boot.h::BootSetPreservedWord" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void BootSetPreservedWord           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="csrtypes_8h.html#a4">uint16</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>state</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Write the (single) word preserved between boots. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>state</em>&nbsp;</td><td>The word of state to preserve. </td></tr>  </table></dl>    </td>  </tr></table></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -