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

📄 region_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: region.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>region.h File Reference</h1>Processes regions of uint8 memory. <a href="#_details">More...</a><p><h2>Data Structures</h2><ul><li>struct <a class="el" href="struct_region.html">Region</a><dl class="el"><dd class="mdescRight">A memory region.  <a href="struct_region.html#_details">More...</a><br></dl></ul><h2>Defines</h2><ul><li>#define <a class="el" href="region_8h.html#a0">RegionSize</a>(r)&nbsp;&nbsp;&nbsp;((<a class="el" href="csrtypes_8h.html#a4">uint16</a>)((r)-&gt;end - ((r)-&gt;begin)))<dl class="el"><dd class="mdescRight">The size of the region.  <a href="#a0"></a><br></dl></ul><h2>Functions</h2><ul><li>void <a class="el" href="region_8h.html#a1">RegionWriteUnsigned</a> (const <a class="el" href="struct_region.html">Region</a> *r, <a class="el" href="csrtypes_8h.html#a3">uint32</a> value)<dl class="el"><dd class="mdescRight">Write an unsigned value to a region.  <a href="#a1"></a><br></dl><li><a class="el" href="csrtypes_8h.html#a3">uint32</a> <a class="el" href="region_8h.html#a2">RegionReadUnsigned</a> (const <a class="el" href="struct_region.html">Region</a> *r)<dl class="el"><dd class="mdescRight">Read an unsigned value from a region.  <a href="#a2"></a><br></dl><li><a class="el" href="csrtypes_8h.html#a9">bool</a> <a class="el" href="region_8h.html#a3">RegionMatchesUUID32</a> (const <a class="el" href="struct_region.html">Region</a> *r, <a class="el" href="csrtypes_8h.html#a3">uint32</a> uuid)<dl class="el"><dd class="mdescRight">Checks that the contents of a region matches the UUID32 passed.  <a href="#a3"></a><br></dl><li><a class="el" href="csrtypes_8h.html#a9">bool</a> <a class="el" href="region_8h.html#a4">RegionMatchesUUID128</a> (const <a class="el" href="struct_region.html">Region</a> *r, const <a class="el" href="csrtypes_8h.html#a8">uint8</a> uuid[16])<dl class="el"><dd class="mdescRight">Checks that the contents of a region matches the 128-bit UUID passed.  <a href="#a4"></a><br></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2>Processes regions of uint8 memory. <p>This library is used by the service library.<hr><h2>Define Documentation</h2><a class="anchor" name="a0" doxytag="region.h::RegionSize" ></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"> #define RegionSize          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">r&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;((<a class="el" href="csrtypes_8h.html#a4">uint16</a>)((r)-&gt;end - ((r)-&gt;begin)))</td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>The size of the region. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>r</em>&nbsp;</td><td>The region. </td></tr>  </table></dl>    </td>  </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="a1" doxytag="region.h::RegionWriteUnsigned" ></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 RegionWriteUnsigned           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="struct_region.html">Region</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>r</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap><a class="el" href="csrtypes_8h.html#a3">uint32</a>&nbsp;</td>          <td class="mdname" nowrap> <em>value</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Write an unsigned value to a region. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>r</em>&nbsp;</td><td>The region to write to. </td></tr>    <tr><td></td><td valign=top><em>value</em>&nbsp;</td><td>The value to write. </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="a2" doxytag="region.h::RegionReadUnsigned" ></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#a3">uint32</a> RegionReadUnsigned           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="struct_region.html">Region</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>r</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>Read an unsigned value from a region. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>r</em>&nbsp;</td><td>The region to read from. </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="a3" doxytag="region.h::RegionMatchesUUID32" ></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#a9">bool</a> RegionMatchesUUID32           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="struct_region.html">Region</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>r</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap><a class="el" href="csrtypes_8h.html#a3">uint32</a>&nbsp;</td>          <td class="mdname" nowrap> <em>uuid</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Checks that the contents of a region matches the UUID32 passed. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>r</em>&nbsp;</td><td>The region to compare. </td></tr>    <tr><td></td><td valign=top><em>uuid</em>&nbsp;</td><td>The uuid to compare. </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="a4" doxytag="region.h::RegionMatchesUUID128" ></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#a9">bool</a> RegionMatchesUUID128           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="struct_region.html">Region</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>r</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="csrtypes_8h.html#a8">uint8</a>&nbsp;</td>          <td class="mdname" nowrap> <em>uuid</em>[16]</td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Checks that the contents of a region matches the 128-bit UUID passed. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>r</em>&nbsp;</td><td>The region to compare. </td></tr>    <tr><td></td><td valign=top><em>uuid</em>&nbsp;</td><td>The uuid to compare as 16 8-bit values. </td></tr>  </table></dl>    </td>  </tr></table></body></html>

⌨️ 快捷键说明

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