OSDN Git Service

Update ecrobot to nxtOSEK_v212.zip
[nxt-jsp/etrobo-atk.git] / nxtOSEK / ecrobot / c++ / html / _speaker_8h_source.html
diff --git a/nxtOSEK/ecrobot/c++/html/_speaker_8h_source.html b/nxtOSEK/ecrobot/c++/html/_speaker_8h_source.html
new file mode 100644 (file)
index 0000000..d13b3c0
--- /dev/null
@@ -0,0 +1,62 @@
+<!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>ECRobot C++ API for LEGO MINDSTORMS NXT: device/Speaker.h Source File</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<link href="doxygen.css" rel="stylesheet" type="text/css"/>
+</head>
+<body>
+<!-- Generated by Doxygen 1.6.1 -->
+<div class="navigation" id="top">
+  <div class="tabs">
+    <ul>
+      <li><a href="main.html"><span>Main&nbsp;Page</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="tabs">
+    <ul>
+      <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>
+<h1>device/Speaker.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//</span>
+<a name="l00002"></a>00002 <span class="comment">// Speaker.h</span>
+<a name="l00003"></a>00003 <span class="comment">//</span>
+<a name="l00004"></a>00004 <span class="comment">// Copyright 2009 by Takashi Chikamasa, Jon C. Martin and Robert W. Kramer</span>
+<a name="l00005"></a>00005 <span class="comment">//</span>
+<a name="l00006"></a>00006 
+<a name="l00007"></a>00007 <span class="preprocessor">#ifndef SPEAKER_H_</span>
+<a name="l00008"></a>00008 <span class="preprocessor"></span><span class="preprocessor">#define SPEAKER_H_</span>
+<a name="l00009"></a>00009 <span class="preprocessor"></span>
+<a name="l00010"></a>00010 <span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span>
+<a name="l00011"></a>00011 {
+<a name="l00012"></a>00012 <span class="preprocessor">        #include &quot;ecrobot_interface.h&quot;</span>
+<a name="l00013"></a>00013 <span class="preprocessor">        #include &quot;rtoscalls.h&quot;</span>
+<a name="l00014"></a>00014 };
+<a name="l00015"></a>00015 
+<a name="l00016"></a>00016 <span class="keyword">namespace </span>ecrobot
+<a name="l00017"></a>00017 {
+<a name="l00021"></a><a class="code" href="classecrobot_1_1_speaker.html">00021</a> <span class="keyword">class </span><a class="code" href="classecrobot_1_1_speaker.html" title="NXT speaker class.">Speaker</a>
+<a name="l00022"></a>00022 {
+<a name="l00023"></a>00023 <span class="keyword">public</span>:
+<a name="l00027"></a><a class="code" href="classecrobot_1_1_speaker.html#a570ecf1eca25491d323291e34cdd8b0e">00027</a>         <span class="keyword">static</span> <span class="keyword">const</span> U32 <a class="code" href="classecrobot_1_1_speaker.html#a570ecf1eca25491d323291e34cdd8b0e" title="Minimum frequency of tone.">MIN_TONE_FREQ</a> = 33;
+<a name="l00028"></a>00028 
+<a name="l00032"></a><a class="code" href="classecrobot_1_1_speaker.html#a102af16b4a182aae68507590dd04304c">00032</a>         <span class="keyword">static</span> <span class="keyword">const</span> U32 <a class="code" href="classecrobot_1_1_speaker.html#a102af16b4a182aae68507590dd04304c" title="Maximum frequency of tone.">MAX_TONE_FREQ</a> = 1976;
+<a name="l00033"></a>00033 
+<a name="l00039"></a>00039         <a class="code" href="classecrobot_1_1_speaker.html#a84bcf8d29bfaf923629638e7b1fcca5f" title="Constructor.">Speaker</a>(<span class="keywordtype">void</span>);
+<a name="l00040"></a>00040 
+<a name="l00048"></a>00048         <span class="keywordtype">void</span> <a class="code" href="classecrobot_1_1_speaker.html#a39c1ca40dbfb82cd20585d9fe0a73907" title="Play a tone sound.">playTone</a>(U32 freq, U32 duration, U32 volume);
+<a name="l00049"></a>00049         
+<a name="l00057"></a>00057         S16 <a class="code" href="classecrobot_1_1_speaker.html#a9742b85036bd62bfbab1cdd2c9575d95" title="Play an 8bit monochrome PCM WAV file.">playWav</a>(<span class="keyword">const</span> CHAR* file, U32 length, U32 volume);
+<a name="l00058"></a>00058 };
+<a name="l00059"></a>00059 }
+<a name="l00060"></a>00060 <span class="preprocessor">#endif</span>
+</pre></div></div>
+<hr size="1"/><address style="text-align: right;"><small>Generated on Tue Dec 29 11:38:01 2009 for ECRobot C++ API for LEGO MINDSTORMS NXT by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
+</body>
+</html>