ardupilot/libraries/doc/html/vprintf_8cpp.html

389 lines
20 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>ArduPilot Libraries: /home/jgoppert/Projects/ap/libraries/FastSerial/vprintf.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#define-members">Defines</a> </div>
<div class="headertitle">
<h1>/home/jgoppert/Projects/ap/libraries/FastSerial/vprintf.cpp File Reference</h1> </div>
</div>
<div class="contents">
<code>#include &quot;<a class="el" href="_better_stream_8h_source.html">BetterStream.h</a>&quot;</code><br/>
<code>#include &lt;avr/pgmspace.h&gt;</code><br/>
<code>#include &lt;stdarg.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="ftoa__engine_8h_source.html">ftoa_engine.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="ntz_8h_source.html">ntz.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="xtoa__fast_8h_source.html">xtoa_fast.h</a>&quot;</code><br/>
<div class="dynheader">
Include dependency graph for vprintf.cpp:</div>
<div class="dyncontent">
<div class="center"><img src="vprintf_8cpp__incl.png" border="0" usemap="#_2home_2jgoppert_2_projects_2ap_2libraries_2_fast_serial_2vprintf_8cpp" alt=""/></div>
<map name="_2home_2jgoppert_2_projects_2ap_2libraries_2_fast_serial_2vprintf_8cpp" id="_2home_2jgoppert_2_projects_2ap_2libraries_2_fast_serial_2vprintf_8cpp">
<area shape="rect" id="node3" href="_better_stream_8h.html" title="BetterStream.h" alt="" coords="15,83,137,112"/><area shape="rect" id="node14" href="ftoa__engine_8h.html" title="ftoa_engine.h" alt="" coords="404,83,513,112"/><area shape="rect" id="node16" href="ntz_8h.html" title="ntz.h" alt="" coords="537,83,591,112"/><area shape="rect" id="node18" href="xtoa__fast_8h.html" title="xtoa_fast.h" alt="" coords="615,83,708,112"/></map>
</div>
<p><a href="vprintf_8cpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vprintf_8cpp.html#a75acaba9e781937468d0911423bc0c35">PROGMEM</a>&nbsp;&nbsp;&nbsp;__attribute__(( section(&quot;.progmem.data&quot;) ))</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vprintf_8cpp.html#a05ca900ebf7cd121be73c654d9ccb3eb">PSTR</a>(s)&nbsp;&nbsp;&nbsp;(__extension__({static prog_char __c[] PROGMEM = (s); &amp;__c[0];}))</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vprintf_8cpp.html#a594135840cf97491063107face7966e4">GETBYTE</a>(flag, mask, pnt)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vprintf_8cpp.html#aaad70046054194bb1cbe0673b3c212f2">FL_ZFILL</a>&nbsp;&nbsp;&nbsp;0x01</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vprintf_8cpp.html#a5052dbb513e79cafd4cb51a474526318">FL_PLUS</a>&nbsp;&nbsp;&nbsp;0x02</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vprintf_8cpp.html#ab75bdf743821eb031641f604ef84291a">FL_SPACE</a>&nbsp;&nbsp;&nbsp;0x04</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vprintf_8cpp.html#af952bbf75b391b81f9fcd24834117c6d">FL_LPAD</a>&nbsp;&nbsp;&nbsp;0x08</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vprintf_8cpp.html#a58b1ac5446b292c77043f99558eb07cb">FL_ALT</a>&nbsp;&nbsp;&nbsp;0x10</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vprintf_8cpp.html#a1dec6f2986dc2f1055bfc39ed745500e">FL_WIDTH</a>&nbsp;&nbsp;&nbsp;0x20</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vprintf_8cpp.html#a8c134b2f4722f9b59d3851d0be28dda9">FL_PREC</a>&nbsp;&nbsp;&nbsp;0x40</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vprintf_8cpp.html#aba9eba8db439010ca11f2fb7607c7c6e">FL_LONG</a>&nbsp;&nbsp;&nbsp;0x80</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vprintf_8cpp.html#a95045f8d69f7ad062c5d2bd4b4e4b6b4">FL_PGMSTRING</a>&nbsp;&nbsp;&nbsp;FL_LONG</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vprintf_8cpp.html#a753650881115de6d78f9755bfcc777f0">FL_NEGATIVE</a>&nbsp;&nbsp;&nbsp;FL_LONG</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vprintf_8cpp.html#a41bcbafa8f3d8487945b6a6ede5df7a2">FL_ALTUPP</a>&nbsp;&nbsp;&nbsp;FL_PLUS</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vprintf_8cpp.html#ab6ee3505eb9bc230d1d3dc2f8c83e67f">FL_ALTHEX</a>&nbsp;&nbsp;&nbsp;FL_SPACE</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vprintf_8cpp.html#a220f13ec366247f858df3eb7962a8340">FL_FLTUPP</a>&nbsp;&nbsp;&nbsp;FL_ALT</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vprintf_8cpp.html#a4118c3d3af25daa2c39fb4aa1d5a4462">FL_FLTEXP</a>&nbsp;&nbsp;&nbsp;FL_PREC</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vprintf_8cpp.html#a15e99332e501376914ddb0ccde08800f">FL_FLTFIX</a>&nbsp;&nbsp;&nbsp;FL_LONG</td></tr>
</table>
<hr/><h2>Define Documentation</h2>
<a class="anchor" id="a58b1ac5446b292c77043f99558eb07cb"></a><!-- doxytag: member="vprintf.cpp::FL_ALT" ref="a58b1ac5446b292c77043f99558eb07cb" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define FL_ALT&nbsp;&nbsp;&nbsp;0x10</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="vprintf_8cpp_source.html#l00085">85</a> of file <a class="el" href="vprintf_8cpp_source.html">vprintf.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="ab6ee3505eb9bc230d1d3dc2f8c83e67f"></a><!-- doxytag: member="vprintf.cpp::FL_ALTHEX" ref="ab6ee3505eb9bc230d1d3dc2f8c83e67f" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define FL_ALTHEX&nbsp;&nbsp;&nbsp;FL_SPACE</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="vprintf_8cpp_source.html#l00094">94</a> of file <a class="el" href="vprintf_8cpp_source.html">vprintf.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a41bcbafa8f3d8487945b6a6ede5df7a2"></a><!-- doxytag: member="vprintf.cpp::FL_ALTUPP" ref="a41bcbafa8f3d8487945b6a6ede5df7a2" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define FL_ALTUPP&nbsp;&nbsp;&nbsp;FL_PLUS</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="vprintf_8cpp_source.html#l00093">93</a> of file <a class="el" href="vprintf_8cpp_source.html">vprintf.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a4118c3d3af25daa2c39fb4aa1d5a4462"></a><!-- doxytag: member="vprintf.cpp::FL_FLTEXP" ref="a4118c3d3af25daa2c39fb4aa1d5a4462" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define FL_FLTEXP&nbsp;&nbsp;&nbsp;FL_PREC</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="vprintf_8cpp_source.html#l00097">97</a> of file <a class="el" href="vprintf_8cpp_source.html">vprintf.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a15e99332e501376914ddb0ccde08800f"></a><!-- doxytag: member="vprintf.cpp::FL_FLTFIX" ref="a15e99332e501376914ddb0ccde08800f" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define FL_FLTFIX&nbsp;&nbsp;&nbsp;FL_LONG</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="vprintf_8cpp_source.html#l00098">98</a> of file <a class="el" href="vprintf_8cpp_source.html">vprintf.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a220f13ec366247f858df3eb7962a8340"></a><!-- doxytag: member="vprintf.cpp::FL_FLTUPP" ref="a220f13ec366247f858df3eb7962a8340" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define FL_FLTUPP&nbsp;&nbsp;&nbsp;FL_ALT</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="vprintf_8cpp_source.html#l00096">96</a> of file <a class="el" href="vprintf_8cpp_source.html">vprintf.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="aba9eba8db439010ca11f2fb7607c7c6e"></a><!-- doxytag: member="vprintf.cpp::FL_LONG" ref="aba9eba8db439010ca11f2fb7607c7c6e" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define FL_LONG&nbsp;&nbsp;&nbsp;0x80</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="vprintf_8cpp_source.html#l00088">88</a> of file <a class="el" href="vprintf_8cpp_source.html">vprintf.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="af952bbf75b391b81f9fcd24834117c6d"></a><!-- doxytag: member="vprintf.cpp::FL_LPAD" ref="af952bbf75b391b81f9fcd24834117c6d" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define FL_LPAD&nbsp;&nbsp;&nbsp;0x08</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="vprintf_8cpp_source.html#l00084">84</a> of file <a class="el" href="vprintf_8cpp_source.html">vprintf.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a753650881115de6d78f9755bfcc777f0"></a><!-- doxytag: member="vprintf.cpp::FL_NEGATIVE" ref="a753650881115de6d78f9755bfcc777f0" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define FL_NEGATIVE&nbsp;&nbsp;&nbsp;FL_LONG</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="vprintf_8cpp_source.html#l00091">91</a> of file <a class="el" href="vprintf_8cpp_source.html">vprintf.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a95045f8d69f7ad062c5d2bd4b4e4b6b4"></a><!-- doxytag: member="vprintf.cpp::FL_PGMSTRING" ref="a95045f8d69f7ad062c5d2bd4b4e4b6b4" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define FL_PGMSTRING&nbsp;&nbsp;&nbsp;FL_LONG</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="vprintf_8cpp_source.html#l00090">90</a> of file <a class="el" href="vprintf_8cpp_source.html">vprintf.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a5052dbb513e79cafd4cb51a474526318"></a><!-- doxytag: member="vprintf.cpp::FL_PLUS" ref="a5052dbb513e79cafd4cb51a474526318" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define FL_PLUS&nbsp;&nbsp;&nbsp;0x02</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="vprintf_8cpp_source.html#l00082">82</a> of file <a class="el" href="vprintf_8cpp_source.html">vprintf.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a8c134b2f4722f9b59d3851d0be28dda9"></a><!-- doxytag: member="vprintf.cpp::FL_PREC" ref="a8c134b2f4722f9b59d3851d0be28dda9" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define FL_PREC&nbsp;&nbsp;&nbsp;0x40</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="vprintf_8cpp_source.html#l00087">87</a> of file <a class="el" href="vprintf_8cpp_source.html">vprintf.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="ab75bdf743821eb031641f604ef84291a"></a><!-- doxytag: member="vprintf.cpp::FL_SPACE" ref="ab75bdf743821eb031641f604ef84291a" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define FL_SPACE&nbsp;&nbsp;&nbsp;0x04</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="vprintf_8cpp_source.html#l00083">83</a> of file <a class="el" href="vprintf_8cpp_source.html">vprintf.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a1dec6f2986dc2f1055bfc39ed745500e"></a><!-- doxytag: member="vprintf.cpp::FL_WIDTH" ref="a1dec6f2986dc2f1055bfc39ed745500e" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define FL_WIDTH&nbsp;&nbsp;&nbsp;0x20</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="vprintf_8cpp_source.html#l00086">86</a> of file <a class="el" href="vprintf_8cpp_source.html">vprintf.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="aaad70046054194bb1cbe0673b3c212f2"></a><!-- doxytag: member="vprintf.cpp::FL_ZFILL" ref="aaad70046054194bb1cbe0673b3c212f2" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define FL_ZFILL&nbsp;&nbsp;&nbsp;0x01</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="vprintf_8cpp_source.html#l00081">81</a> of file <a class="el" href="vprintf_8cpp_source.html">vprintf.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a594135840cf97491063107face7966e4"></a><!-- doxytag: member="vprintf.cpp::GETBYTE" ref="a594135840cf97491063107face7966e4" args="(flag, mask, pnt)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define GETBYTE</td>
<td>(</td>
<td class="paramtype">&nbsp;</td>
<td class="paramname">flag, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&nbsp;</td>
<td class="paramname">mask, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&nbsp;</td>
<td class="paramname">pnt</td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<b>Value:</b><div class="fragment"><pre class="fragment">({ \
<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> __c; \
<span class="keyword">asm</span> ( \
<span class="stringliteral">&quot;sbrc %2,%3 \n\t&quot;</span> \
<span class="stringliteral">&quot;lpm %0,Z+ \n\t&quot;</span> \
<span class="stringliteral">&quot;sbrs %2,%3 \n\t&quot;</span> \
<span class="stringliteral">&quot;ld %0,Z+ &quot;</span> \
: <span class="stringliteral">&quot;=r&quot;</span> (__c), \
<span class="stringliteral">&quot;+z&quot;</span> (pnt) \
: <span class="stringliteral">&quot;r&quot;</span> (flag), \
<span class="stringliteral">&quot;I&quot;</span> (<a class="code" href="ntz_8h.html#a7498d7d85df9105a7ade7ee6abe30e4a">ntz</a>(mask)) \
); \
__c; \
})
</pre></div>
<p>Definition at line <a class="el" href="vprintf_8cpp_source.html#l00057">57</a> of file <a class="el" href="vprintf_8cpp_source.html">vprintf.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a75acaba9e781937468d0911423bc0c35"></a><!-- doxytag: member="vprintf.cpp::PROGMEM" ref="a75acaba9e781937468d0911423bc0c35" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define PROGMEM&nbsp;&nbsp;&nbsp;__attribute__(( section(&quot;.progmem.data&quot;) ))</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="vprintf_8cpp_source.html#l00053">53</a> of file <a class="el" href="vprintf_8cpp_source.html">vprintf.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a05ca900ebf7cd121be73c654d9ccb3eb"></a><!-- doxytag: member="vprintf.cpp::PSTR" ref="a05ca900ebf7cd121be73c654d9ccb3eb" args="(s)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define PSTR</td>
<td>(</td>
<td class="paramtype">&nbsp;</td>
<td class="paramname">s</td>
<td>&nbsp;)&nbsp;</td>
<td>&nbsp;&nbsp;&nbsp;(__extension__({static prog_char __c[] PROGMEM = (s); &amp;__c[0];}))</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="vprintf_8cpp_source.html#l00055">55</a> of file <a class="el" href="vprintf_8cpp_source.html">vprintf.cpp</a>.</p>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated for ArduPilot Libraries by&nbsp;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.png" alt="doxygen"/></a></small></address>
</body>
</html>