📄 pcm_8h.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: pcm.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 Page</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a></div><h1>pcm.h File Reference</h1>Interface to the PCM hardware. <a href="#_details">More...</a><p><h2>Defines</h2><ul><li>#define <a class="el" href="pcm_8h.html#a0">PCM_NO_SYNC</a> ((<a class="el" href="csrtypes_8h.html#a4">uint16</a>) 0xFFFF)</ul><h2>Functions</h2><ul><li><a class="el" href="csrtypes_8h.html#a9">bool</a> <a class="el" href="pcm_8h.html#a1">PcmRateAndRoute</a> (<a class="el" href="csrtypes_8h.html#a4">uint16</a> port, <a class="el" href="csrtypes_8h.html#a4">uint16</a> sync_port, <a class="el" href="csrtypes_8h.html#a3">uint32</a> read_rate, <a class="el" href="csrtypes_8h.html#a3">uint32</a> write_rate, <a class="el" href="vm__if_8h.html#a63">vm_pcm_io</a> io)<dl class="el"><dd class="mdescRight">Set the routing, sync port, read and write rates for a PCM port. <a href="#a1"></a><br></dl><li><a class="el" href="csrtypes_8h.html#a9">bool</a> <a class="el" href="pcm_8h.html#a2">PcmClearRouting</a> (<a class="el" href="csrtypes_8h.html#a4">uint16</a> port)<dl class="el"><dd class="mdescRight">Unroutes the specified PCM port. <a href="#a2"></a><br></dl><li><a class="el" href="csrtypes_8h.html#a9">bool</a> <a class="el" href="pcm_8h.html#a3">PcmClearAllRouting</a> (void)<dl class="el"><dd class="mdescRight">Unroutes all PCM ports. <a href="#a3"></a><br></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2>Interface to the PCM hardware. <p>BlueCore chips provide a PCM interface to allow transmission and reception of PCM data.<hr><h2>Define Documentation</h2><a class="anchor" name="a0" doxytag="pcm.h::PCM_NO_SYNC" ></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 PCM_NO_SYNC ((<a class="el" href="csrtypes_8h.html#a4">uint16</a>) 0xFFFF) </td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Used in PcmRateAndRoute. Passing this as 'sync_port' ensures 'port' is not synchronised to any other port. </td> </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="a1" doxytag="pcm.h::PcmRateAndRoute" ></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> PcmRateAndRoute </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="csrtypes_8h.html#a4">uint16</a> </td> <td class="mdname" nowrap> <em>port</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap><a class="el" href="csrtypes_8h.html#a4">uint16</a> </td> <td class="mdname" nowrap> <em>sync_port</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> </td> <td class="mdname" nowrap> <em>read_rate</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> </td> <td class="mdname" nowrap> <em>write_rate</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap><a class="el" href="vm__if_8h.html#a63">vm_pcm_io</a> </td> <td class="mdname" nowrap> <em>io</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Set the routing, sync port, read and write rates for a PCM port. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>port</em> </td><td>The PCM to configure. </td></tr> <tr><td></td><td valign=top><em>sync_port</em> </td><td>The PCM port to sync to or PCM_NO_SYNC. </td></tr> <tr><td></td><td valign=top><em>read_rate</em> </td><td>The rate at which 'port' will read data (DAC speed). </td></tr> <tr><td></td><td valign=top><em>write_rate</em> </td><td>The rate at which 'port' will write data (ADC speed). </td></tr> <tr><td></td><td valign=top><em>io</em> </td><td>Where the data is to be routed. </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="a2" doxytag="pcm.h::PcmClearRouting" ></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> PcmClearRouting </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="csrtypes_8h.html#a4">uint16</a> </td> <td class="mdname1" valign="top" nowrap> <em>port</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Unroutes the specified PCM port. <p>Equivalent to PcmRateAndRoute(port, PCM_NO_SYNC, 0, 0, VM_PCM_NONE) </td> </tr></table><a class="anchor" name="a3" doxytag="pcm.h::PcmClearAllRouting" ></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> PcmClearAllRouting </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Unroutes all PCM ports. <p>Equivalent to multiple calls to PcmClearRouting.<p>Returns FALSE if any of the calls to PcmClearRouting failed. </td> </tr></table></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -