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

📄 service_8h.html

📁 BlueLab3 bluetooth API 说明文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!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: service.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>service.h File Reference</h1>Library to search service records. <a href="#_details">More...</a><p><h2>Typedefs</h2><ul><li>typedef <a class="el" href="csrtypes_8h.html#a4">uint16</a> <a class="el" href="service_8h.html#a0">ServiceAttributeId</a></ul><h2>Enumerations</h2><ul><li>enum <a class="el" href="service_8h.html#a28">ServiceDataType</a> { <br>&nbsp;&nbsp;<a class="el" href="service_8h.html#a28a1">sdtNil</a>, <br>&nbsp;&nbsp;<a class="el" href="service_8h.html#a28a2">sdtUnsignedInteger</a>, <br>&nbsp;&nbsp;<a class="el" href="service_8h.html#a28a3">sdtSignedInteger</a>, <br>&nbsp;&nbsp;<a class="el" href="service_8h.html#a28a4">sdtUUID</a>, <br>&nbsp;&nbsp;<a class="el" href="service_8h.html#a28a5">sdtTextString</a>, <br>&nbsp;&nbsp;<a class="el" href="service_8h.html#a28a6">sdtBoolean</a>, <br>&nbsp;&nbsp;<a class="el" href="service_8h.html#a28a7">sdtSequence</a>, <br>&nbsp;&nbsp;<a class="el" href="service_8h.html#a28a8">sdtAlternative</a>, <br>&nbsp;&nbsp;<a class="el" href="service_8h.html#a28a9">sdtURL</a><br> }<dl class="el"><dd class="mdescRight">Data element types.  <a href="#a28">More...</a><br></dl><li>enum { <br>&nbsp;&nbsp;<a class="el" href="service_8h.html#a29a10">saServiceRecordHandle</a> =  0, <br>&nbsp;&nbsp;<a class="el" href="service_8h.html#a29a11">saServiceClassIdList</a> =  1, <br>&nbsp;&nbsp;<a class="el" href="service_8h.html#a29a12">saServiceRecordState</a> =  2, <br>&nbsp;&nbsp;<a class="el" href="service_8h.html#a29a13">saServiceID</a> =  3, <br>&nbsp;&nbsp;<a class="el" href="service_8h.html#a29a14">saProtocolDescriptorList</a> =  4, <br>&nbsp;&nbsp;<a class="el" href="service_8h.html#a29a15">saBrowseGroupList</a> =  5, <br>&nbsp;&nbsp;<a class="el" href="service_8h.html#a29a16">saLanguageBaseAttributeIDList</a> =  6, <br>&nbsp;&nbsp;<a class="el" href="service_8h.html#a29a17">saServiceInfoTimeToLive</a> =  7, <br>&nbsp;&nbsp;<a class="el" href="service_8h.html#a29a18">saServiceAvailability</a> =  8, <br>&nbsp;&nbsp;<a class="el" href="service_8h.html#a29a19">saBluetoothProfileDescriptorList</a> =  9, <br>&nbsp;&nbsp;<a class="el" href="service_8h.html#a29a20">saDocumentationURL</a> =  10, <br>&nbsp;&nbsp;<a class="el" href="service_8h.html#a29a21">saClientExecutableURL</a> =  11, <br>&nbsp;&nbsp;<a class="el" href="service_8h.html#a29a22">saIconURL</a> =  12, <br>&nbsp;&nbsp;<a class="el" href="service_8h.html#a29a23">saSupportedFeatures</a> =  0x0311<br> }<dl class="el"><dd class="mdescRight">Universal attribute definitions.  <a href="#a29">More...</a><br></dl><li>enum { <a class="el" href="service_8h.html#a30a24">UUID_RFCOMM</a> =  3 }</ul><h2>Functions</h2><ul><li><a class="el" href="csrtypes_8h.html#a9">bool</a> <a class="el" href="service_8h.html#a25">ServiceNextAttribute</a> (<a class="el" href="struct_region.html">Region</a> *record, <a class="el" href="service_8h.html#a0">ServiceAttributeId</a> *id, <a class="el" href="service_8h.html#a28">ServiceDataType</a> *type, <a class="el" href="struct_region.html">Region</a> *value)<dl class="el"><dd class="mdescRight">Step to the next attribute in this service record.  <a href="#a25"></a><br></dl><li><a class="el" href="csrtypes_8h.html#a9">bool</a> <a class="el" href="service_8h.html#a26">ServiceFindAttribute</a> (<a class="el" href="struct_region.html">Region</a> *record, <a class="el" href="service_8h.html#a0">ServiceAttributeId</a> id, <a class="el" href="service_8h.html#a28">ServiceDataType</a> *type, <a class="el" href="struct_region.html">Region</a> *value)<dl class="el"><dd class="mdescRight">Step to the next attribute in this service record with the specified attribute id. Skips past intervening attributes as necessary.  <a href="#a26"></a><br></dl><li><a class="el" href="csrtypes_8h.html#a9">bool</a> <a class="el" href="service_8h.html#a27">ServiceGetValue</a> (<a class="el" href="struct_region.html">Region</a> *region, <a class="el" href="service_8h.html#a28">ServiceDataType</a> *type, <a class="el" href="struct_region.html">Region</a> *value)<dl class="el"><dd class="mdescRight">Decompose the first data element in a region.  <a href="#a27"></a><br></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2>Library to search service records. <p><hr><h2>Typedef Documentation</h2><a class="anchor" name="a0" doxytag="service.h::ServiceAttributeId" ></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"> typedef <a class="el" href="csrtypes_8h.html#a4">uint16</a> <a class="el" href="service_8h.html#a0">ServiceAttributeId</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Service attribute identified type.     </td>  </tr></table><hr><h2>Enumeration Type Documentation</h2><a class="anchor" name="a28" doxytag="service.h::ServiceDataType" ></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"> enum <a class="el" href="service_8h.html#a28">ServiceDataType</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Data element types. <p><dl compact><dt><b>Enumeration values: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em><a class="anchor" name="a28a1" doxytag="sdtNil" ></a>sdtNil</em>&nbsp;</td><td>The NULL type. </td></tr><tr><td valign=top><em><a class="anchor" name="a28a2" doxytag="sdtUnsignedInteger" ></a>sdtUnsignedInteger</em>&nbsp;</td><td>Data is an unsigned integer. </td></tr><tr><td valign=top><em><a class="anchor" name="a28a3" doxytag="sdtSignedInteger" ></a>sdtSignedInteger</em>&nbsp;</td><td>Data is a signed twos-complement integer. </td></tr><tr><td valign=top><em><a class="anchor" name="a28a4" doxytag="sdtUUID" ></a>sdtUUID</em>&nbsp;</td><td>Data is a UUID. </td></tr><tr><td valign=top><em><a class="anchor" name="a28a5" doxytag="sdtTextString" ></a>sdtTextString</em>&nbsp;</td><td>Data is a text string. </td></tr><tr><td valign=top><em><a class="anchor" name="a28a6" doxytag="sdtBoolean" ></a>sdtBoolean</em>&nbsp;</td><td>Data is a boolean. </td></tr><tr><td valign=top><em><a class="anchor" name="a28a7" doxytag="sdtSequence" ></a>sdtSequence</em>&nbsp;</td><td>Data is a sequence of data elements. </td></tr><tr><td valign=top><em><a class="anchor" name="a28a8" doxytag="sdtAlternative" ></a>sdtAlternative</em>&nbsp;</td><td>Data is a sequence of data elements from which one is to be selected. </td></tr><tr><td valign=top><em><a class="anchor" name="a28a9" doxytag="sdtURL" ></a>sdtURL</em>&nbsp;</td><td>Data is a URL. </td></tr></table></dl>    </td>  </tr></table><a class="anchor" name="a29" doxytag="service.h::@1" ></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"> anonymous enum          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Universal attribute definitions. <p>The descriptions of these attibutes are take from, and expanded upon in, the Bluetooth specification. <dl compact><dt><b>Enumeration values: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em><a class="anchor" name="a29a10" doxytag="saServiceRecordHandle" ></a>saServiceRecordHandle</em>&nbsp;</td><td>Service Record Handle. A 32bit number that uniquely identifies each service record within an SDP server. </td></tr><tr><td valign=top><em><a class="anchor" name="a29a11" doxytag="saServiceClassIdList" ></a>saServiceClassIdList</em>&nbsp;</td><td>Service Class Identifier List. Consists of a data element sequence in which each data element is a UUID representing the service classes that a given service record conforms to. </td></tr><tr><td valign=top><em><a class="anchor" name="a29a12" doxytag="saServiceRecordState" ></a>saServiceRecordState</em>&nbsp;</td><td>Service Record State. A 32bit integer that is used to facilitate caching of Service Attributes. </td></tr><tr><td valign=top><em><a class="anchor" name="a29a13" doxytag="saServiceID" ></a>saServiceID</em>&nbsp;</td><td>Service Identifier. A UUID that universally and uniquely identifies the service instance described by the service record. </td></tr><tr><td valign=top><em><a class="anchor" name="a29a14" doxytag="saProtocolDescriptorList" ></a>saProtocolDescriptorList</em>&nbsp;</td><td>Protocol Descriptor List. Describes one or more protocol stacks that may be used to gain access to the service described by the service record. </td></tr><tr><td valign=top><em><a class="anchor" name="a29a15" doxytag="saBrowseGroupList" ></a>saBrowseGroupList</em>&nbsp;</td><td>Browse Group List. Consists of a data element sequence in which each element is a UUID that represents a browse group to which the service record belongs. </td></tr><tr><td valign=top><em><a class="anchor" name="a29a16" doxytag="saLanguageBaseAttributeIDList" ></a>saLanguageBaseAttributeIDList</em>&nbsp;</td><td>Language Base Attribute Identifier List. Used to support human-readable attributes for multiple natural languages in a single service record. </td></tr><tr><td valign=top><em><a class="anchor" name="a29a17" doxytag="saServiceInfoTimeToLive" ></a>saServiceInfoTimeToLive</em>&nbsp;</td><td>Service Info Time to Live. A 32bit integer that contains the number of seconds for which the information in a service record is expected to remain valid and unchanged. </td></tr><tr><td valign=top><em><a class="anchor" name="a29a18" doxytag="saServiceAvailability" ></a>saServiceAvailability</em>&nbsp;</td><td>Service Availibility. An 8bit unsigned integer that represents the relative ability of the service to accept additional clients. </td></tr><tr><td valign=top><em><a class="anchor" name="a29a19" doxytag="saBluetoothProfileDescriptorList" ></a>saBluetoothProfileDescriptorList</em>&nbsp;</td><td>Bluetooth Profile Descriptor List. Consists of a data element sequence in which each element is a profile descriptor that contains information about a Bluetooth profile to which the service represented by this service record conforms. </td></tr><tr><td valign=top><em><a class="anchor" name="a29a20" doxytag="saDocumentationURL" ></a>saDocumentationURL</em>&nbsp;</td><td>Documentation URL. A URL which points to documentation on the service described by a service record. </td></tr><tr><td valign=top><em><a class="anchor" name="a29a21" doxytag="saClientExecutableURL" ></a>saClientExecutableURL</em>&nbsp;</td><td>Client Executable URL. A URL that refers to the location of an application that may be used to utilize the service described by the service record. </td></tr><tr><td valign=top><em><a class="anchor" name="a29a22" doxytag="saIconURL" ></a>saIconURL</em>&nbsp;</td><td><a class="el" href="struct_icon.html">Icon</a> URL. A URL that refers to the location of an icon that may be used to represent the service described by the service record. </td></tr><tr><td valign=top><em><a class="anchor" name="a29a23" doxytag="saSupportedFeatures" ></a>saSupportedFeatures</em>&nbsp;</td><td>Supported features. </td></tr></table></dl>    </td>  </tr></table>

⌨️ 快捷键说明

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