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

📄 kalimba__standard__messages_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: kalimba_standard_messages.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>kalimba_standard_messages.h File Reference</h1>The messages passed between the kalimba libraries and the VM application. <a href="#_details">More...</a><p><h2>Defines</h2><ul><li>#define <a class="el" href="kalimba__standard__messages_8h.html#a0">KALIMBA_MSG_GO</a>&nbsp;&nbsp;&nbsp;0x7000<dl class="el"><dd class="mdescRight">Indicates that the VM application has done all of its streamconnects and hence the dsp can start reading/writing data to its ports.  <a href="#a0"></a><br></dl><li>#define <a class="el" href="kalimba__standard__messages_8h.html#a1">KALIMBA_MSG_SBCDEC_CONVERT_TO_MONO</a>&nbsp;&nbsp;&nbsp;0x7010<dl class="el"><dd class="mdescRight">Tells the sbc decoder to convert stereo streams to mono.  <a href="#a1"></a><br></dl><li>#define <a class="el" href="kalimba__standard__messages_8h.html#a2">KALIMBA_MSG_SBCENC_SET_BITPOOL</a>&nbsp;&nbsp;&nbsp;0x7020<dl class="el"><dd class="mdescRight">Tells the sbc encoder what bitpool value to encode using and hence the dsp can start reading/writing data to its ports.  <a href="#a2"></a><br></dl><li>#define <a class="el" href="kalimba__standard__messages_8h.html#a3">KALIMBA_MSG_SBCENC_SET_PARAMS</a>&nbsp;&nbsp;&nbsp;0x7021<dl class="el"><dd class="mdescRight">Tells the sbc encoder what encoder parameters to use.  <a href="#a3"></a><br></dl><li>#define <a class="el" href="kalimba__standard__messages_8h.html#a4">KALIMBA_MSG_MP3DEC_CONVERT_TO_MONO</a>&nbsp;&nbsp;&nbsp;0x7030<dl class="el"><dd class="mdescRight">Tells the mp3 decoder to convert stereo streams to mono.  <a href="#a4"></a><br></dl><li>#define <a class="el" href="kalimba__standard__messages_8h.html#a5">KALIMBA_MSG_AACDEC_CONVERT_TO_MONO</a>&nbsp;&nbsp;&nbsp;0x7040<dl class="el"><dd class="mdescRight">Tells the aac decoder to convert stereo streams to mono.  <a href="#a5"></a><br></dl><li>#define <a class="el" href="kalimba__standard__messages_8h.html#a6">KALIMBA_MSG_PULSE_LED</a>&nbsp;&nbsp;&nbsp;0x7100<dl class="el"><dd class="mdescRight">Tells the pulse_led libary which PIO to pulse and at what rate.  <a href="#a6"></a><br></dl><li>#define <a class="el" href="kalimba__standard__messages_8h.html#a7">KALIMBA_MSG_DTMF_NEW_TONE_MESSAGE_ID</a>&nbsp;&nbsp;&nbsp;0x7150<dl class="el"><dd class="mdescRight">Tells the dtmf library to play a new dtmf tone.  <a href="#a7"></a><br></dl><li>#define <a class="el" href="kalimba__standard__messages_8h.html#a8">KALIMBA_MSG_CBOPS_SILENCE_CLIP_DETECT_INITIALISE_ID</a>&nbsp;&nbsp;&nbsp;0x7200<dl class="el"><dd class="mdescRight">Tells the silence and clip detect operator to initalise an instance (structure) with silence and clipping limits.  <a href="#a8"></a><br></dl><li>#define <a class="el" href="kalimba__standard__messages_8h.html#a9">KALIMBA_MSG_CBOPS_SILENCE_CLIP_DETECT_CLIP_DETECTED_ID</a>&nbsp;&nbsp;&nbsp;0x7201<dl class="el"><dd class="mdescRight">Message to the VM to indicate clipping has been detected.  <a href="#a9"></a><br></dl><li>#define <a class="el" href="kalimba__standard__messages_8h.html#a10">KALIMBA_MSG_CBOPS_SILENCE_CLIP_DETECT_SILENCE_DETECTED_ID</a>&nbsp;&nbsp;&nbsp;0x7202<dl class="el"><dd class="mdescRight">Message to the VM to indicate silence has been detected.  <a href="#a10"></a><br></dl><li>#define <a class="el" href="kalimba__standard__messages_8h.html#a11">KALIMBA_MSG_GRAPHIX_DRIVER_FROM_VM_MSG_ID</a>&nbsp;&nbsp;&nbsp;0x7400<dl class="el"><dd class="mdescRight">Tells the DSP graphic driver library to do something.  <a href="#a11"></a><br></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2>The messages passed between the kalimba libraries and the VM application. <p>Messages passed between MCU and kalimba consist of a 16-bit ID and up to four 16-bit arguments.<p>If the top-bit is set (0x8000 - 0xFFFF) the message was sent by, or is routed to, the BlueCore firmware. Those messages are defined in kalimba_messsages.h, which is supplied as a kalimba include file but not as a VM include file (since no such messages will reach the VM code.)<p><a class="el" href="kalimba__standard__messages_8h.html">kalimba_standard_messages.h</a> lists the standard messages which pass between kalimba and the VM application. Those are typically sent by the CSR supplied DSP libraries or sample VM applications. All messages used here are in the range 0x7000 - 0x7FFF. Any customer specific messages must use numbers less than this.<p>In the descriptions of each message, the four arguments are referred to by number (0..3) after their name, for example period (1) means that the period parameter is the second of the four parameters,<hr><h2>Define Documentation</h2><a class="anchor" name="a0" doxytag="kalimba_standard_messages.h::KALIMBA_MSG_GO" ></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 KALIMBA_MSG_GO&nbsp;&nbsp;&nbsp;0x7000          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Indicates that the VM application has done all of its streamconnects and hence the dsp can start reading/writing data to its ports. <p>MESSAGE: Go (VM APPLICATION --&gt; KALIMBA)    </td>  </tr></table><a class="anchor" name="a1" doxytag="kalimba_standard_messages.h::KALIMBA_MSG_SBCDEC_CONVERT_TO_MONO" ></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 KALIMBA_MSG_SBCDEC_CONVERT_TO_MONO&nbsp;&nbsp;&nbsp;0x7010          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Tells the sbc decoder to convert stereo streams to mono. <p>MESSAGE: SBC decoder convert to mono (VM APPLICATION --&gt; KALIMBA)<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>mono</em>&nbsp;</td><td>(0), 1 means convert to mono, 0 means leave as stereo </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="a2" doxytag="kalimba_standard_messages.h::KALIMBA_MSG_SBCENC_SET_BITPOOL" ></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 KALIMBA_MSG_SBCENC_SET_BITPOOL&nbsp;&nbsp;&nbsp;0x7020          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Tells the sbc encoder what bitpool value to encode using and hence the dsp can start reading/writing data to its ports. <p>MESSAGE: SBC encoder set bitpool (VM APPLICATION --&gt; KALIMBA)<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>bitpool</em>&nbsp;</td><td>(0), the bitpool to use (valid range is 2..250.) </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="a3" doxytag="kalimba_standard_messages.h::KALIMBA_MSG_SBCENC_SET_PARAMS" ></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 KALIMBA_MSG_SBCENC_SET_PARAMS&nbsp;&nbsp;&nbsp;0x7021          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Tells the sbc encoder what encoder parameters to use. <p>MESSAGE: SBC encoder set parameters (VM APPLICATION --&gt; KALIMBA)<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>param</em>&nbsp;</td><td>(0) the format is as follows (see SBC spec) bit 6-7: sampling frequency, bit 4-5: blocks, bit 2-3: channel_mode, bit 1: allocation method, bit 0: subbands </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="a4" doxytag="kalimba_standard_messages.h::KALIMBA_MSG_MP3DEC_CONVERT_TO_MONO" ></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 KALIMBA_MSG_MP3DEC_CONVERT_TO_MONO&nbsp;&nbsp;&nbsp;0x7030          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Tells the mp3 decoder to convert stereo streams to mono. <p>MESSAGE: MP3 decoder convert to mono (VM APPLICATION --&gt; KALIMBA)<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>mono</em>&nbsp;</td><td>(0), 1 means convert to mono, 0 means leave as stereo </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="a5" doxytag="kalimba_standard_messages.h::KALIMBA_MSG_AACDEC_CONVERT_TO_MONO" ></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 KALIMBA_MSG_AACDEC_CONVERT_TO_MONO&nbsp;&nbsp;&nbsp;0x7040          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>

⌨️ 快捷键说明

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