📄 structusart__options__t.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>AVR321000 Communication with the AVR32 USART: usart_options_t Struct Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.5.1 --><div class="tabs"> <ul> <li><a href="main.html"><span>Main Page</span></a></li> <li id="current"><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul></div><div class="tabs"> <ul> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="functions.html"><span>Data Fields</span></a></li> </ul></div><h1>usart_options_t Struct Reference</h1><!-- doxytag: class="usart_options_t" --><code>#include <<a class="el" href="usart_8h-source.html">usart.h</a>></code><p><hr><a name="_details"></a><h2>Detailed Description</h2>Input parameters when initializing rs232 mode, and some similar modes. <p><p>Definition at line <a class="el" href="usart_8h-source.html#l00072">72</a> of file <a class="el" href="usart_8h-source.html">usart.h</a>.<table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Data Fields</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned long </td><td class="memItemRight" valign="bottom"><a class="el" href="structusart__options__t.html#276ad428776a25b8247762bd2c82b35b">baudrate</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned char </td><td class="memItemRight" valign="bottom"><a class="el" href="structusart__options__t.html#0dc365b8779891743180e9b69116f5ea">channelmode</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned char </td><td class="memItemRight" valign="bottom"><a class="el" href="structusart__options__t.html#a6b77cc05829d2e70ee7f96194c6ce23">charlength</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned char </td><td class="memItemRight" valign="bottom"><a class="el" href="structusart__options__t.html#85401f7a6f516a5883adc0538dc27f8e">paritytype</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned short </td><td class="memItemRight" valign="bottom"><a class="el" href="structusart__options__t.html#433a6ede2186d42b4cf19ef4b370cd61">stopbits</a></td></tr></table><hr><h2>Field Documentation</h2><a class="anchor" name="276ad428776a25b8247762bd2c82b35b"></a><!-- doxytag: member="usart_options_t::baudrate" ref="276ad428776a25b8247762bd2c82b35b" args="" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">unsigned long <a class="el" href="structusart__options__t.html#276ad428776a25b8247762bd2c82b35b">usart_options_t::baudrate</a> </td> </tr> </table></div><div class="memdoc"><p>Set baudrate of the usart <p>Definition at line <a class="el" href="usart_8h-source.html#l00077">77</a> of file <a class="el" href="usart_8h-source.html">usart.h</a>.<p>Referenced by <a class="el" href="usart__example_8c-source.html#l00096">main()</a>, and <a class="el" href="usart_8c-source.html#l00152">usart_init_rs232()</a>.</div></div><p><a class="anchor" name="0dc365b8779891743180e9b69116f5ea"></a><!-- doxytag: member="usart_options_t::channelmode" ref="0dc365b8779891743180e9b69116f5ea" args="" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">unsigned char <a class="el" href="structusart__options__t.html#0dc365b8779891743180e9b69116f5ea">usart_options_t::channelmode</a> </td> </tr> </table></div><div class="memdoc"><p>Run the channel in testmode: 0=normal tx/rx, 1=auto echo(tx->rx), 2=local loopback(tx->rx), 3=remote loopback(rx->tx) <p>Definition at line <a class="el" href="usart_8h-source.html#l00104">104</a> of file <a class="el" href="usart_8h-source.html">usart.h</a>.<p>Referenced by <a class="el" href="usart__example_8c-source.html#l00096">main()</a>, and <a class="el" href="usart_8c-source.html#l00152">usart_init_rs232()</a>.</div></div><p><a class="anchor" name="a6b77cc05829d2e70ee7f96194c6ce23"></a><!-- doxytag: member="usart_options_t::charlength" ref="a6b77cc05829d2e70ee7f96194c6ce23" args="" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">unsigned char <a class="el" href="structusart__options__t.html#a6b77cc05829d2e70ee7f96194c6ce23">usart_options_t::charlength</a> </td> </tr> </table></div><div class="memdoc"><p>Number of bits to transmit as a character (5-9) <p>Definition at line <a class="el" href="usart_8h-source.html#l00082">82</a> of file <a class="el" href="usart_8h-source.html">usart.h</a>.<p>Referenced by <a class="el" href="usart__example_8c-source.html#l00096">main()</a>, and <a class="el" href="usart_8c-source.html#l00152">usart_init_rs232()</a>.</div></div><p><a class="anchor" name="85401f7a6f516a5883adc0538dc27f8e"></a><!-- doxytag: member="usart_options_t::paritytype" ref="85401f7a6f516a5883adc0538dc27f8e" args="" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">unsigned char <a class="el" href="structusart__options__t.html#85401f7a6f516a5883adc0538dc27f8e">usart_options_t::paritytype</a> </td> </tr> </table></div><div class="memdoc"><p>How to calculate the parity bit: 0=even parity, 1=odd parity, 2=space, 3=mark, 4|5=no parity bit, 6|7=multidrop mode <p>Definition at line <a class="el" href="usart_8h-source.html#l00089">89</a> of file <a class="el" href="usart_8h-source.html">usart.h</a>.<p>Referenced by <a class="el" href="usart__example_8c-source.html#l00096">main()</a>, and <a class="el" href="usart_8c-source.html#l00152">usart_init_rs232()</a>.</div></div><p><a class="anchor" name="433a6ede2186d42b4cf19ef4b370cd61"></a><!-- doxytag: member="usart_options_t::stopbits" ref="433a6ede2186d42b4cf19ef4b370cd61" args="" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">unsigned short <a class="el" href="structusart__options__t.html#433a6ede2186d42b4cf19ef4b370cd61">usart_options_t::stopbits</a> </td> </tr> </table></div><div class="memdoc"><p>Number of stop bits between to characters: 0=1bit, 1=1.5bit(async mode only), 2=2bits, the numbers 3 to 257 will result in a time guard period of that length between characters. <p>Definition at line <a class="el" href="usart_8h-source.html#l00097">97</a> of file <a class="el" href="usart_8h-source.html">usart.h</a>.<p>Referenced by <a class="el" href="usart__example_8c-source.html#l00096">main()</a>, and <a class="el" href="usart_8c-source.html#l00152">usart_init_rs232()</a>.</div></div><p><hr size="1"><address style="align: right;"><small>Generated on Thu May 10 14:17:57 2007 for AVR321000 Communication with the AVR32 USART by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -