📄 source_8h.html
字号:
</table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Map the first header associated with a source into the address map, returning a pointer to the first word in the header. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>source</em> </td><td>The Source whose header we wish to map.</td></tr> </table></dl>The number of accessible words is as given by SourceSizeHeader. At most one header source can be mapped in at any time; pointers previously obtained from SourceMapHeader become invalid when another call to SourceMapHeader is made.<p>Returns NULL if the source is invalid or has no headers. </td> </tr></table><a class="anchor" name="a6" doxytag="source.h::SourceSizeHeader" ></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> SourceSizeHeader </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="source___8h.html#a0">Source</a> </td> <td class="mdname1" valign="top" nowrap> <em>source</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>Reports the number of words available in the first header associated with source. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>source</em> </td><td>The Source whose header size is required.</td></tr> </table></dl>Returns zero if the source is invalid or has no header. </td> </tr></table><a class="anchor" name="a7" doxytag="source.h::SourceConfigure" ></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> SourceConfigure </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="source___8h.html#a0">Source</a> </td> <td class="mdname" nowrap> <em>source</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#a59">vm_source_config_key</a> </td> <td class="mdname" nowrap> <em>key</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>value</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>Configure a particular source. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>source</em> </td><td>The source to configure. </td></tr> <tr><td></td><td valign=top><em>key</em> </td><td>The key to configure. </td></tr> <tr><td></td><td valign=top><em>value</em> </td><td>The value to write to 'key'</td></tr> </table></dl>Returns FALSE if the request could not be performed, TRUE otherwise.<p>See vm_source_config_key for the possible keys and their meanings. Note that some keys apply only to specific kinds of source. </td> </tr></table><a class="anchor" name="a8" doxytag="source.h::SourceConfigureHidSensorAgilentAN2051" ></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> SourceConfigureHidSensorAgilentAN2051 </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="source___8h.html#a0">Source</a> </td> <td class="mdname" nowrap> <em>source</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>const <a class="el" href="struct_h_i_d___a_g_i_l_e_n_t___a_n2051___c_o_n_f_i_g.html">HID_AGILENT_AN2051_CONFIG</a> * </td> <td class="mdname" nowrap> <em>config</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>Select and configure the Agilent AN2051 sensor for the hid source. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>source</em> </td><td>The source to configure. </td></tr> <tr><td></td><td valign=top><em>config</em> </td><td>The sensor configuration.</td></tr> </table></dl>Returns FALSE if the request could not be performed, TRUE otherwise. </td> </tr></table><a class="anchor" name="a9" doxytag="source.h::SourceConfigureHidSensorUART" ></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> SourceConfigureHidSensorUART </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="source___8h.html#a0">Source</a> </td> <td class="mdname1" valign="top" nowrap> <em>source</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>Select the UART HID sensor for the hid source. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>source</em> </td><td>The source to configure.</td></tr> </table></dl>Returns FALSE if the request could not be performed, TRUE otherwise. </td> </tr></table><a class="anchor" name="a10" doxytag="source.h::SourceConfigureHidSensorMatrix" ></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> SourceConfigureHidSensorMatrix </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="source___8h.html#a0">Source</a> </td> <td class="mdname" nowrap> <em>source</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>const <a class="el" href="struct_h_i_d___m_a_t_r_i_x___c_o_n_f_i_g.html">HID_MATRIX_CONFIG</a> * </td> <td class="mdname" nowrap> <em>config</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>Select and configure the HID matrix sensor for the hid source. <p><dl compact><dt><b>Parameters:</b></dt><dd>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -