mirror of
https://github.com/elua/elua.git
synced 2025-01-25 01:02:54 +08:00
Portuguese version structure added
This commit is contained in:
parent
634528c5a6
commit
e64a80124e
@ -14,7 +14,7 @@
|
||||
<frame name="wb_bar" scrolling="no" src="wb_bar_en.html" frameborder="0" target="wb_cont">
|
||||
<frame name="wb_tree" src="wb_tree_en.html" frameborder="1" target="wb_cont">
|
||||
</frameset>
|
||||
<frame name="wb_cont" src="en/eluamodules.html" frameborder="0">
|
||||
<frame name="wb_cont" src="en/eluaapi.html" frameborder="0">
|
||||
</frameset>
|
||||
<noframes>
|
||||
<body>
|
||||
|
@ -14,7 +14,7 @@
|
||||
<frame name="wb_bar" scrolling="no" src="wb_bar_pt.html" frameborder="0" target="wb_cont">
|
||||
<frame name="wb_tree" src="wb_tree_pt.html" frameborder="1" target="wb_cont">
|
||||
</frameset>
|
||||
<frame name="wb_cont" src="pt/eluamodules.html" frameborder="0">
|
||||
<frame name="wb_cont" src="pt/eluaapi.html" frameborder="0">
|
||||
</frameset>
|
||||
<noframes>
|
||||
<body>
|
||||
|
99
doc/pt/bit_ref.html
Normal file
99
doc/pt/bit_ref.html
Normal file
@ -0,0 +1,99 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
|
||||
<html><head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
|
||||
|
||||
|
||||
|
||||
<meta http-equiv="Content-Language" content="en-us">
|
||||
|
||||
<title>Product</title><link rel="stylesheet" type="text/css" href="./style.css"></head>
|
||||
<body bgcolor="#ffffff">
|
||||
|
||||
<h3><a name="over"></a>bit</h3><p class="MsoNormal" style="font-family: Verdana;"><a name="bnot"></a>Res = bit.bnot( value ): unary negation
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;"><a name="band"></a>
|
||||
Res = bit.band( v1, v2, ... ): <b>bitwise </b>"and"
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;"><a name="bor"></a>
|
||||
Res = bit.bor( v1, v2, ... ): <b>bitwise</b><b> </b>"or"
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;"><a name="bxor"></a>
|
||||
Res = bit.bxor( v1, v2, ... ): <b>bitwise</b><b> </b>"exclusive or"
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;"><a name="lshift"></a>
|
||||
Res = bit.lshift( value, pos ): shift "value" left "pos" positions.
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;"><a name="rshift"></a>
|
||||
Res = bit.rshift( value, pos ): shift "value" right "pos" positions. The sign is
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
not propagated.
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;"><a name="arshift"></a>
|
||||
Res = bit.arshift( value, pos ): shift "value" right "pos" positions. The sign
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
is propagated ("arithmetic shift").
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;"><a name="bit"></a>
|
||||
Res = bit.bit( bitno ): a shortcut for bit.lshift( 1, bitno )
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;"><a name="set"></a>
|
||||
Res1, Res2, ... = bit.set( bitno, v1, v2, ... ): set the bit at position "bitno"
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
in v1, v2, ... to 1.
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;"><a name="clear"></a>
|
||||
Res1, Res2, ... = bit.clear( bitno, v1, v2, ... ): set the bit at position
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
"bitno"in v1, v2, ... to 0.
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;"><a name="isset"></a>
|
||||
Res = bit.isset( value, bitno ): returns true if bit at position "bitno" in
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
"value" is 1, false otherwise.
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;"><a name="isclear"></a>
|
||||
Res = bit.isclear( value, bitno ): returns true if bit at position "bitno" in
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
"value" is 0, false otherwise.
|
||||
</p>
|
||||
<br style="font-family: Verdana;">
|
||||
<br style="font-family: Verdana;"><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br></body></html>
|
155
doc/pt/cpu_ref.html
Normal file
155
doc/pt/cpu_ref.html
Normal file
@ -0,0 +1,155 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
|
||||
<html><head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
|
||||
|
||||
|
||||
|
||||
<meta http-equiv="Content-Language" content="en-us">
|
||||
|
||||
<title>Product</title><link rel="stylesheet" type="text/css" href="./style.css"></head>
|
||||
<body bgcolor="#ffffff">
|
||||
|
||||
<h3><a name="over"></a>cpu</h3><p class="MsoNormal" style="font-family: Verdana;"><br></p><p style="margin-bottom: 0in;">
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><a name="write32"></a>write32( address, data ) : write the 32-bit data at the specified address</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><a name="write16"></a>write16( address, data ) : write the 16-bit data at the specified address</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><a name="write8"></a>write8( address, data ) : write the 8-bit data at the specified address</font> <br></p><p style="margin-bottom: 0in;"><br></p><br><font face="Bitstream Vera Sans Mono, sans-serif"><a name="read32"></a>Data = read32( address ) : reads 32-bit data from the specified address</font><p style="margin-bottom: 0in;">
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><a name="read16"></a>Data = read16( address ) : reads 16-bit data from the specified address</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><a name="read8"></a>Data = read8( address ) : reads 8-bit data from the specified address</font></p><p style="margin-bottom: 0in;"><br></p><br><p style="margin-bottom: 0in;"><a name="disableinterrupts"></a>
|
||||
[cpu.disableinterrupts()] <font face="Bitstream Vera Sans Mono, sans-serif">cli(): disable CPU interrupts</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<br>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<br>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;"><a name="enableinterrupts"></a>
|
||||
[cpu.enableinterrupts()] <font face="Bitstream Vera Sans Mono, sans-serif">sei(): enable CPU interrupts</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<br>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><br>
|
||||
</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><a name="clockfrequency"></a>[cpu.clockfrequency()] Clock = clock(): returns the CPU frequency</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<br>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">Also, you can expose as many CPU constants (for example memory mapped registers)</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">as you want to this module. You might want to use this feature to access some </font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">CPU memory areas (as defined in the CPU header files from the CPU support </font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">package) directly from Lua. To do this, you'll need to define the </font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">PLATFORM_CPU_CONSTANTS macro in the platform's platform_conf.h file </font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">(src/platform/<platform name>/platform_conf.h). Include all your constants in a </font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">_C( <constant name> ) definition, and then build your project.</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">For example, let's suppose that your CPU's interrupt controler has 3 memory</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">mapped registers: INT_REG_ENABLE, INT_REG_DISABLE and INT_REG_MASK. If you want</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">to access them from Lua, locate the header that defines the values of these</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">registers (I'll assume its name is "cpu.h") and add these lines to the</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">platform_conf.h:</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<br>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">#include "cpu.h"</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<br>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">#define PLATFORM_CPU_CONSTANTS\</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">_C( INT_REG_ENABLE ),\</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">_C( INT_REG_DISABLE ),\</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">_C( INT_REG_MASK )</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<br>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">After this you'll be able to access the regs directly from Lua, like this:</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<br>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">data = cpu.r32( cpu.INT_REG_ENABLE )</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">cpu.w32( cpu.INT_REG_ENABLE, data )</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<br>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">For a "real-life" example, see the src/platform/lm3s/platform_conf.h file.</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">[uart.sendstring] uart.sendstr( id, str1, str2, ... ): this is similar to "uart.send", but its parameters are string. </font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<br>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<br>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<br>
|
||||
</p>
|
||||
|
||||
<br style="font-family: Verdana;"><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br></body></html>
|
70
doc/pt/disp_ref.html
Normal file
70
doc/pt/disp_ref.html
Normal file
@ -0,0 +1,70 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
|
||||
<html><head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
|
||||
|
||||
|
||||
|
||||
<meta http-equiv="Content-Language" content="en-us">
|
||||
|
||||
<title>Product</title><link rel="stylesheet" type="text/css" href="./style.css"></head>
|
||||
<body bgcolor="#ffffff">
|
||||
|
||||
<h3><a name="over"></a>spi</h3><span style="font-weight: bold;"></span><br>
|
||||
<big><span style="font-family: Helvetica,Arial,sans-serif;"></span><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big><a name="setup"></a>Actual_clock = spi.setup( id, spi.MASTER | spi.SLAVE, clock, cpol, cpha,</big></font><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>databits): set the SPI interface with the given parameters, returns the clock</big></font><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>that was set for the interface.</big></font><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big><a name="select"></a>spi.select( </big></font><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>id</big></font><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big> ): sets the selected spi as active (sets the SS line of the given interface).</big></font><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big> </big></font><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big><a name="unselect"></a>spi.unselect( id ): clears the SS line of the given interface.</big></font><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big> </big></font><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big><a name="send"></a>spi.send( id, Data1, Data2, ... ): sends all the data to the specified SPI</big></font><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>interface.</big></font><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big><a name="sendrecv"></a>[</big></font><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>spi.sendrecv(</big></font><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>id, Out1, Out2, ...</big></font><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>)] </big></font><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>In1, In2, ... = spi.send_recv( id, Out1, Out2, ... ): sends all the "out" bytes</big></font><span style="font-family: Helvetica,Arial,sans-serif;"> </span><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>to the specified SPI interface and returts the data read after each sent byte.</big></font><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><br style="font-family: Helvetica,Arial,sans-serif;"><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>Returning
|
||||
several values in this blocking way would not complicate some queued
|
||||
send implementations ? (ok, this could be another function :)</big></font><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><br style="font-family: Helvetica,Arial,sans-serif;"><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>Sending multiple data/chars in a single call and not in
|
||||
a table argument does not allow the data to be built in run time
|
||||
(without some string massage, of course :)</big></font><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br style="font-family: Helvetica,Arial,sans-serif;"><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>
|
||||
</big></font><br style="font-family: Helvetica,Arial,sans-serif;"><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>
|
||||
</big></font><br style="font-family: Helvetica,Arial,sans-serif;"><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
|
||||
</span></big>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<br>
|
||||
<br style="font-family: Verdana;"></body></html>
|
16
doc/pt/eluaapi.html
Normal file
16
doc/pt/eluaapi.html
Normal file
@ -0,0 +1,16 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
|
||||
<html><head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
|
||||
|
||||
|
||||
|
||||
<meta http-equiv="Content-Language" content="en-us">
|
||||
|
||||
<title>Product</title><link rel="stylesheet" type="text/css" href="./style.css"></head>
|
||||
<body bgcolor="#ffffff">
|
||||
|
||||
<h3><a name="over"></a>eLua API</h3><br><br><br><br><br>
|
||||
|
||||
|
||||
|
||||
</body></html>
|
16
doc/pt/genericmodules.html
Normal file
16
doc/pt/genericmodules.html
Normal file
@ -0,0 +1,16 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
|
||||
<html><head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
|
||||
|
||||
|
||||
|
||||
<meta http-equiv="Content-Language" content="en-us">
|
||||
|
||||
<title>Product</title><link rel="stylesheet" type="text/css" href="./style.css"></head>
|
||||
<body bgcolor="#ffffff">
|
||||
|
||||
<h3><a name="over"></a>eLua Generic Modules</h3><br><br><br><br><br>
|
||||
|
||||
|
||||
|
||||
</body></html>
|
143
doc/pt/gpio_ref.html
Normal file
143
doc/pt/gpio_ref.html
Normal file
@ -0,0 +1,143 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
|
||||
<html><head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
|
||||
|
||||
|
||||
|
||||
<meta http-equiv="Content-Language" content="en-us">
|
||||
|
||||
<title>Product</title><link rel="stylesheet" type="text/css" href="./style.css"></head>
|
||||
<body bgcolor="#ffffff">
|
||||
|
||||
<h3><a name="over">gpio</a></h3><p class="MsoNormal" style="font-family: Verdana;">
|
||||
<b>[gpio] pio</b><br>
|
||||
</p>
|
||||
<br>
|
||||
<p class="MsoNormal" style="font-family: Verdana;"><a name="setpinvalue"></a>
|
||||
[gpio.setpinvalue] pio.setpin( value, Pin1, Pin2 ... ): set the value to all the pins in the list
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
to "value" (0 or 1).
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;"><a name="setpinhigh"></a>
|
||||
[gpio.setpinhigh] pio.set( Pin1, Pin2, ... ): set the value of all the pins in the list to 1.
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;"><a name="getpinvalue"></a>
|
||||
[gpio.getpinvalue] Val1, Val2, ... = pio.get( Pin1, Pin2, ... ): reads one or more pins and returns
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
their values (0 or 1).
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;"><a name="setpinlow"></a>
|
||||
[gpio.setpinlow] pio.clear( Pin1, Pin2, ... ): set the value of all the pins in the list to 0.
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;"><a name="configpin"></a>
|
||||
[gpio.configpin(gpio.DIR, gpio.DIR_INPUT)] pio.input( Pin1, Pin2, ... ): set the specified pin(s) as input(s).
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
[gpio.configpin(gpio.DIR, gpio.DIR_OUTPUT)] pio.output( Pin1, Pin2, ... ): set the specified pin(s) as output(s).
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;"><a name="setportvalue"></a>
|
||||
[gpio.setportvalue] pio.setport( value, Port1, Port2, ... ): set the value of all the ports in the
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
list to "value".
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;"><a name="getportvalue"></a>
|
||||
[gpio.getportvalue] Val1, Val2, ... = pio.getport( Port1, Port2, ... ): reads one or more ports and
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
returns their values.
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;"><a name="getportname"></a> [gpio.getportname]
|
||||
Port = pio.port( code ): return the physical port number associated
|
||||
with the given code. For example, "pio.port( pio.P0_20 )" will return
|
||||
0.
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;"><a name="getpinnumber"></a>
|
||||
[gpio.getpinnumber] Pin = pio.pin( code ): return the physical pin number associated with the
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
given code. For example, "pio.pin( pio.P0_20 )" will return 20.
|
||||
</p>
|
||||
<br><a name="togglepin"></a>
|
||||
[gpio.togglepin([Pin1], [Pin2], ...)]<br><br><a name="toogleport"></a>
|
||||
[gpio.toggleport([Port1], [Port2], ...)]<br style="font-family: Verdana;">
|
||||
<br>
|
||||
Another idea (can be added to the above ?)<br>
|
||||
[gpio.configport(gpio.[FUNCTION], gpio.MASK, [MASK])]<br>
|
||||
Ex:<br>
|
||||
gpio.configpin(gpio.DIR, gpio.DIR_INPUT) (.DIR_OUTPUT)<br>
|
||||
gpio.configpin(gpio.PULL, gpio.PULL_UP) (.PULL_DOWN, PULL_NO)<br style="font-family: Verdana;">
|
||||
<br>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
[gpio.configport(gpio.DIR, gpio.DIR_INPUT, [Port1], [Port2], ...)]
|
||||
pio.port_input( Port1, Port2, ... ): set the specified port(s) as
|
||||
input(s).
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
[gpio.configport(gpio.DIR, gpio.DIR_OUTPUT, [Port1], [Port2], ...)]
|
||||
pio.port_output( Port1, Port2, ... ): set the specified port(s) as
|
||||
output(s).
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
[gpio.configpin(gpio.PULL, gpio.PULL_UP, [Pin1], [Pin2], ...)]
|
||||
pio.pullup( Pin1, Pin2, ... ): enable internal pullups on the specified
|
||||
pins.Note that some CPUs might not provide this feature.
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
[gpio.configpin(gpio.PULL, gpio.PULL_DOWN, [Pin1], [Pin2], ...)]
|
||||
pio.pulldown( Pin1, Pin2, ... ): enable internal pulldowns on the
|
||||
specified pins. Note that some CPUs might not provide this feature.
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
|
||||
</p>
|
||||
<p class="MsoNormal" style="font-family: Verdana;">
|
||||
[gpio.configpin(gpio.PULL, gpio.PULL_NO, [Pin1], [Pin2], ...)]
|
||||
pio.nopull( Pin1, Pin2, ... ): disable the pullups/pulldowns on the
|
||||
specifiedpins. Note that some CPUs might not provide this feature.
|
||||
</p>
|
||||
<br>
|
||||
<br>What is the real advantage/reason of having a pin "list" on some of
|
||||
these functions ? If we cannot build a table with them, there's really
|
||||
no great use of this, as we cannot create the list in run time and some
|
||||
other proposed functions solve the problem of avoiding more than one
|
||||
call for several pins.<br>A: It IS usefull and sometimes necessary so it will stay.....<br>
|
||||
<br></body></html>
|
12
doc/pt/net_ref.html
Normal file
12
doc/pt/net_ref.html
Normal file
@ -0,0 +1,12 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
|
||||
<html><head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
|
||||
|
||||
|
||||
|
||||
<meta http-equiv="Content-Language" content="en-us">
|
||||
|
||||
<title>Product</title><link rel="stylesheet" type="text/css" href="./style.css"></head>
|
||||
<body bgcolor="#ffffff">
|
||||
|
||||
<h3><a name="over"></a>net</h3><br></body></html>
|
16
doc/pt/platdependentmodules.html
Normal file
16
doc/pt/platdependentmodules.html
Normal file
@ -0,0 +1,16 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
|
||||
<html><head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
|
||||
|
||||
|
||||
|
||||
<meta http-equiv="Content-Language" content="en-us">
|
||||
|
||||
<title>Product</title><link rel="stylesheet" type="text/css" href="./style.css"></head>
|
||||
<body bgcolor="#ffffff">
|
||||
|
||||
<h3><a name="over"></a>eLua Platform Dependent Modules</h3><br><br><br><br><br><br>
|
||||
|
||||
|
||||
|
||||
</body></html>
|
124
doc/pt/pwm_ref.html
Normal file
124
doc/pt/pwm_ref.html
Normal file
@ -0,0 +1,124 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
|
||||
<html><head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
|
||||
|
||||
|
||||
|
||||
<meta http-equiv="Content-Language" content="en-us">
|
||||
|
||||
<title>Product</title><link rel="stylesheet" type="text/css" href="./style.css"></head>
|
||||
<body bgcolor="#ffffff">
|
||||
|
||||
<h3><a name="over"></a>pwm</h3><span style="font-weight: bold;"></span><br><p style="margin-bottom: 0in;">
|
||||
<br>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">It allows Lua to use the PWM blocks on the target CPU.</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<br>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><strike><a name="setup"></a>[pwm.setup]</strike>(</font><font face="Bitstream Vera Sans Mono, sans-serif">pwm.setup( id, frequency, Active Cycle ) </font><font face="Bitstream Vera Sans Mono, sans-serif">
|
||||
Data = pwm.setup( id, frequency, duty ): sets the PWM block 'id' to
|
||||
generate the specified frequency with the specified duty cycle (duty is
|
||||
an integer number from 0 to 100, specifying the duty cycle in
|
||||
percents). It returns the actual frequency set on the PWM block.</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<br>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
Here there is a bigger change on the proposal.
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
The Timer Clock and the PWM "frame" frequency would be set up in the same function (.setup)
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
The normal control function would only set the active cicle (.setcycle)
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
The original .setup function would then be replaced by:
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<br>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">[pwm.setup( id, tmrclock, pwm_frequency )</font> ]<br>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<a name="setcycle"></a>[pwm.setcycle( id, active_cycle )]</p><p style="margin-bottom: 0in;"><font face="Bitstream Vera Sans Mono, sans-serif"><a name="start"></a>[pwm.start()] pwm.start( id ): start the PWM block 'id'.</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><a name="stop"></a>[</font><font face="Bitstream Vera Sans Mono, sans-serif">pwm.stop()] </font><font face="Bitstream Vera Sans Mono, sans-serif">pwm.stop( id ): stop the PWM block 'id'.</font>
|
||||
</p><br><p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><a name="setclock"></a>Data = pwm.setclock( id, clock ): set the base clock of the PWM block 'id' to</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">the given clock. In returns the actual clock set on the PWM block.</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<br>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">[</font><font face="Bitstream Vera Sans Mono, sans-serif"><strike>pwm.getclock</strike>] </font><font face="Bitstream Vera Sans Mono, sans-serif">Data = pwm.getclock( id ): returns the base clock of the PWM block 'id'.</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<br>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;"> Is it really necessary to have
|
||||
.getclock ?? The clock is set by the same program, is seldom changed
|
||||
during operation, ..........
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
If really needed, it could be something like pwm.gettimerclock(id) or something (must be discussed.....)
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<br>
|
||||
</p>
|
||||
|
||||
<br><br><br><br><br><br><br><br><br><br><br><br><br><br>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<br>
|
||||
</p><big><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br style="font-family: Helvetica,Arial,sans-serif;"><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>
|
||||
</big></font><br style="font-family: Helvetica,Arial,sans-serif;"><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>
|
||||
</big></font><br style="font-family: Helvetica,Arial,sans-serif;"><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
|
||||
</span></big>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<br>
|
||||
<br style="font-family: Verdana;"></body></html>
|
70
doc/pt/spi_ref.html
Normal file
70
doc/pt/spi_ref.html
Normal file
@ -0,0 +1,70 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
|
||||
<html><head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
|
||||
|
||||
|
||||
|
||||
<meta http-equiv="Content-Language" content="en-us">
|
||||
|
||||
<title>Product</title><link rel="stylesheet" type="text/css" href="./style.css"></head>
|
||||
<body bgcolor="#ffffff">
|
||||
|
||||
<h3><a name="over"></a>spi</h3><span style="font-weight: bold;"></span><br>
|
||||
<big><span style="font-family: Helvetica,Arial,sans-serif;"></span><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big><a name="setup"></a>Actual_clock = spi.setup( id, spi.MASTER | spi.SLAVE, clock, cpol, cpha,</big></font><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>databits): set the SPI interface with the given parameters, returns the clock</big></font><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>that was set for the interface.</big></font><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big><a name="select"></a>spi.select( </big></font><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>id</big></font><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big> ): sets the selected spi as active (sets the SS line of the given interface).</big></font><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big> </big></font><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big><a name="unselect"></a>spi.unselect( id ): clears the SS line of the given interface.</big></font><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big> </big></font><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big><a name="send"></a>spi.send( id, Data1, Data2, ... ): sends all the data to the specified SPI</big></font><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>interface.</big></font><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big><a name="sendrecv"></a>[</big></font><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>spi.sendrecv(</big></font><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>id, Out1, Out2, ...</big></font><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>)] </big></font><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>In1, In2, ... = spi.send_recv( id, Out1, Out2, ... ): sends all the "out" bytes</big></font><span style="font-family: Helvetica,Arial,sans-serif;"> </span><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>to the specified SPI interface and returts the data read after each sent byte.</big></font><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><br style="font-family: Helvetica,Arial,sans-serif;"><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>Returning
|
||||
several values in this blocking way would not complicate some queued
|
||||
send implementations ? (ok, this could be another function :)</big></font><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
</span><br style="font-family: Helvetica,Arial,sans-serif;"><br style="font-family: Helvetica,Arial,sans-serif;"><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>Sending multiple data/chars in a single call and not in
|
||||
a table argument does not allow the data to be built in run time
|
||||
(without some string massage, of course :)</big></font><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br style="font-family: Helvetica,Arial,sans-serif;"><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>
|
||||
</big></font><br style="font-family: Helvetica,Arial,sans-serif;"><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>
|
||||
</big></font><br style="font-family: Helvetica,Arial,sans-serif;"><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
|
||||
</span></big>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<br>
|
||||
<br style="font-family: Verdana;"></body></html>
|
34
doc/pt/sys_ref.html
Normal file
34
doc/pt/sys_ref.html
Normal file
@ -0,0 +1,34 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
|
||||
<html><head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
|
||||
|
||||
|
||||
|
||||
<meta http-equiv="Content-Language" content="en-us">
|
||||
|
||||
<title>Product</title><link rel="stylesheet" type="text/css" href="./style.css"></head>
|
||||
<body bgcolor="#ffffff">
|
||||
|
||||
<h3><a name="over"></a>sys</h3><br><p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><a name="platform"></a>[sys.platform()] pd.platform(): returns the platform name (f.e. LM3S)</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><a name="mcu"></a>[sys.mcu()] pd.cpu(): returns the CPU name (f.e. LM3S8962)</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><a name="cpu"></a>[sys.cpu()] would return ARM Cortex M3 in this case.....</font></p><p style="margin-bottom: 0in;"><font face="Bitstream Vera Sans Mono, sans-serif"><br>
|
||||
</font>
|
||||
</p>
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"> <a name="board"></a>[sys.board()]</font><font face="Bitstream Vera Sans Mono, sans-serif"> pd.board(): returns the CPU board (f.e. EK-LM3S8962)</font>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<br>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
Could also be <b>elua.</b><br>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
Many other miscelania functions will need a place to live and sys or elua is more generic than pd for it.<br>
|
||||
</p>
|
||||
<font style="color: rgb(0, 0, 255);" color="#ff0000"> </font><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br></body></html>
|
87
doc/pt/term_ref.html
Normal file
87
doc/pt/term_ref.html
Normal file
@ -0,0 +1,87 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
|
||||
<html><head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
|
||||
|
||||
|
||||
|
||||
<meta http-equiv="Content-Language" content="en-us">
|
||||
|
||||
<title>Product</title><link rel="stylesheet" type="text/css" href="./style.css"></head>
|
||||
<body bgcolor="#ffffff">
|
||||
|
||||
<h3><a name="over">term</a></h3> Terminal support
|
||||
|
||||
<p>
|
||||
<a name="clear"></a>[term.clear] term.clrscr(): clear the screen
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
<br><a name="cleareol"></a>[term.cleareol] term.clreol(): clear from the current cursor position to the end of the line
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
<p><a name="moveto"></a>
|
||||
[term.moveto] term.gotoxy( x, y ): position the cursor at the given coordinates<br>
|
||||
</p><br>
|
||||
<p><a name="moveup"></a>
|
||||
[term.moveup] term.up( delta ): move the cursor up "delta" lines
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
<p><a name="movedown"></a>
|
||||
[term.movedown] term.down( delta ): move the cursor down "delta" lines
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
<p><a name="moveleft"></a>
|
||||
[term.moveleft] term.left( delta ): move the cursor left "delta" lines
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
<br><a name="moveright"></a>[term.moveright] term.right( delta ): move the cursor right "delta" lines
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
<p><a name="getlinecount"></a>
|
||||
[term.getlinecount] Lines = term.lines(): returns the number of lines
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
<p><a name="getcolcount"></a>
|
||||
[term.getcolcount] Cols = term.cols(): returns the number of columns
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</p><br><p><a name="printstr"></a>
|
||||
[term.printstr] term.putstr( s1, s2, ... ): writes the specified string(s) to the terminal<br>
|
||||
</p>
|
||||
<p>
|
||||
</p><p>
|
||||
[term.printchar] term.put( c1, c2, ... ): writes the specified character(s) to the terminal
|
||||
</p><p>
|
||||
</p>
|
||||
<p><a name="getx"></a>
|
||||
[term.getx] Cx = term.cursorx(): return the cursor X position
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
<p>
|
||||
<a name="gety"></a>[term.gety] Cy = term.cursory(): return the cursor Y position
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
<p>
|
||||
<font size="2"><a name="inputchar"></a>[term.inputchar] c = term.getch( term.WAIT | term.NOWAIT ): returns a char read from the </font>
|
||||
</p>
|
||||
<font size="2"> terminal.</font>
|
||||
|
||||
<br style="font-family: Verdana;"></body></html>
|
122
doc/pt/tmr_ref.html
Normal file
122
doc/pt/tmr_ref.html
Normal file
@ -0,0 +1,122 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
|
||||
<html><head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
|
||||
|
||||
|
||||
|
||||
<meta http-equiv="Content-Language" content="en-us">
|
||||
|
||||
<title>Product</title><link rel="stylesheet" type="text/css" href="./style.css"></head>
|
||||
<body bgcolor="#ffffff">
|
||||
|
||||
<h3><a name="over"></a>tmr</h3><span style="font-weight: bold;"></span><big><br></big><p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">It allows Lua to execute timer specific operations (delay, read timer value,</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">start timer, get time difference).</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<br>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><a name="delay"></a>tmr.delay( id, delay ): uses timer 'id' to wait for 'delay' us.</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<br>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><span style="font-style: italic;"><a name="read"></a></span>Data = tmr.read( id ): reads the value of timer 'id'. The returned value is </font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">platform dependent.</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><span style="font-style: italic;"><a name="start"></a></span>Data = tmr.start( id ): start the timer 'id', and also returns its value at</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">the moment of start. The returned value is platform dependent.</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><a name="diff"></a>diff = tmr.diff( id, end, start ): returns the time difference (in us) between</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">the timer values 'end' and 'start' (obtained from calling tmr.start or</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">tmr.read). The order of end/start is irrelevant. </font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><a name="mindelay"></a>Data = tmr.mindelay( id ): returns the minimum delay (in us ) that can be </font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">achieved by calling the tmr.delay function. If the return value is 0, the </font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">platform layer is capable of executing sub-microsecond delays.</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><a name="maxdelay"></a>Data = tmr.maxdelay( id ): returns the maximum delay (in us) that can be</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">achieved by calling the tmr.delay function.</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><a name="setclock"></a>Data = tmr.setclock( id, clock ): sets the clock of the given timer. Returns the</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">actual clock set for the timer.</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><a name="getclock"></a>Data = tmr.getclock( id ): return the clock of the given timer.</font>
|
||||
</p>
|
||||
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<br>
|
||||
</p><big><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br style="font-family: Helvetica,Arial,sans-serif;"><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>
|
||||
</big></font><br style="font-family: Helvetica,Arial,sans-serif;"><font style="font-family: Helvetica,Arial,sans-serif;" size="2"><big>
|
||||
</big></font><br style="font-family: Helvetica,Arial,sans-serif;"><span style="font-family: Helvetica,Arial,sans-serif;">
|
||||
|
||||
</span></big>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<br>
|
||||
<br style="font-family: Verdana;"></body></html>
|
59
doc/pt/uart_ref.html
Normal file
59
doc/pt/uart_ref.html
Normal file
@ -0,0 +1,59 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
|
||||
<html><head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
|
||||
|
||||
|
||||
|
||||
<meta http-equiv="Content-Language" content="en-us">
|
||||
|
||||
<title>Product</title><link rel="stylesheet" type="text/css" href="./style.css"></head>
|
||||
<body bgcolor="#ffffff">
|
||||
|
||||
<h3><a name="over"></a>uart</h3><p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><a name="setup"></a>[uart.setup(</font><font face="Bitstream Vera Sans Mono, sans-serif"> id, baud, databits, </font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">uart.PARITY_EVEN |uart.</font><font face="Bitstream Vera Sans Mono, sans-serif">PARITY</font><font face="Bitstream Vera Sans Mono, sans-serif">_ODD | uart.</font><font face="Bitstream Vera Sans Mono, sans-serif">PARITY</font><font face="Bitstream Vera Sans Mono, sans-serif">_NONE, </font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">uart.STOPBITS_1 | uart.STOPBITS_1_5 | uart.STOPBITS_2 )] Actual_baud = uart.setup( id, baud, databits, </font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">uart.PAR_EVEN |uart.PAR_ODD | uart.PAR_NONE, </font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">uart.STOP_1 | uart.STOP_1_5 | uart.STOP_2 ): set the UART interface with the</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">given parameters, returns the baud rate that was set for the UART.</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><br>
|
||||
</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><a name="send"></a>[</font><font face="Bitstream Vera Sans Mono, sans-serif">uart.send] </font><font face="Bitstream Vera Sans Mono, sans-serif">uart.send( id, Data1, Data2, ... ): send all the data to the specified UART interface.</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">#### Data 1 only !?!!<br>
|
||||
</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><br>
|
||||
</font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif"><a name="recv"></a>[</font><font face="Bitstream Vera Sans Mono, sans-serif">uart.recv(</font><font face="Bitstream Vera Sans Mono, sans-serif"> id, uart.TIMEOUT_NO | <strike>uart.TIMEOUT_INFINITE</strike> | timeout )</font><font face="Bitstream Vera Sans Mono, sans-serif"> </font><font face="Bitstream Vera Sans Mono, sans-serif">Data = uart.recv( id, uart.NO_TIMEOUT | uart.INF_TIMEOUT | timeout ): reads a </font>
|
||||
</p>
|
||||
<p style="margin-bottom: 0in;">
|
||||
<font face="Bitstream Vera Sans Mono, sans-serif">byte from the specified UART interface.</font></p><p style="margin-bottom: 0in;"></p><p style="margin-bottom: 0in;"></p><p style="margin-bottom: 0in;"></p><p style="margin-bottom: 0in;"></p><p style="margin-bottom: 0in;"></p><p style="margin-bottom: 0in;"></p><p style="margin-bottom: 0in;"></p><p style="margin-bottom: 0in;"></p><p style="margin-bottom: 0in;"></p><p style="margin-bottom: 0in;"></p><p style="margin-bottom: 0in;"></p><p style="margin-bottom: 0in;"></p><p style="margin-bottom: 0in;"></p><p style="margin-bottom: 0in;"></p><p style="margin-bottom: 0in;"></p><p style="margin-bottom: 0in;"></p><p style="margin-bottom: 0in;"></p><p style="margin-bottom: 0in;"></p><p style="margin-bottom: 0in;"></p><p style="margin-bottom: 0in;"></p><p style="margin-bottom: 0in;"></p><p style="margin-bottom: 0in;"><font face="Bitstream Vera Sans Mono, sans-serif"></font>
|
||||
</p>
|
||||
<br>
|
||||
|
||||
|
||||
|
||||
</body></html>
|
@ -21,11 +21,11 @@ wb_usr = {
|
||||
wb_usr.messages = {
|
||||
pt = {
|
||||
title = "eLua Doc",
|
||||
bar_title = "eLua Doc"
|
||||
bar_title = "eLua API - Manual de Referência"
|
||||
},
|
||||
en = {
|
||||
title = "eLua Doc",
|
||||
bar_title = "eLua Doc"
|
||||
bar_title = "eLua API Reference Manual"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,13 +1,13 @@
|
||||
en/gpio_ref.html
|
||||
en/disp_ref.html
|
||||
en/net_ref.html
|
||||
en/eluaapi.html
|
||||
en/bit_ref.html
|
||||
en/platdependentmodules.html
|
||||
en/uart_ref.html
|
||||
en/pwm_ref.html
|
||||
en/eluamodules.html
|
||||
en/spi_ref.html
|
||||
en/sys_ref.html
|
||||
en/spi_ref.html
|
||||
en/net_ref.html
|
||||
en/term_ref.html
|
||||
en/genericmodules.html
|
||||
en/tmr_ref.html
|
||||
|
@ -1,13 +1,13 @@
|
||||
pt/gpio_ref.html
|
||||
pt/disp_ref.html
|
||||
pt/net_ref.html
|
||||
pt/eluaapi.html
|
||||
pt/bit_ref.html
|
||||
pt/platdependentmodules.html
|
||||
pt/uart_ref.html
|
||||
pt/pwm_ref.html
|
||||
pt/eluamodules.html
|
||||
pt/spi_ref.html
|
||||
pt/sys_ref.html
|
||||
pt/spi_ref.html
|
||||
pt/net_ref.html
|
||||
pt/term_ref.html
|
||||
pt/genericmodules.html
|
||||
pt/tmr_ref.html
|
||||
|
@ -35,7 +35,7 @@ a.contact:hover {
|
||||
<table style="width: 100%" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td style="width: 50px;"><img src="logo.gif"></td>
|
||||
<td class="title">eLua Doc</td>
|
||||
<td class="title">eLua API Reference Manual</td>
|
||||
<td style="width: 3.5em">
|
||||
<a class="contact" href="ssSearch_en.html">SimpleSearch</a>
|
||||
</td>
|
||||
|
@ -35,7 +35,7 @@ a.contact:hover {
|
||||
<table style="width: 100%" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td style="width: 50px;"><img src="logo.gif"></td>
|
||||
<td class="title">eLua Doc</td>
|
||||
<td class="title">eLua API - Manual de Referência</td>
|
||||
<td style="width: 3.5em">
|
||||
<a class="contact" href="ssSearch_pt.html">SimpleSearch</a>
|
||||
</td>
|
||||
|
@ -218,7 +218,7 @@
|
||||
|
||||
<body style="margin: 2px; background-color: #F1F1F1" onload="showStartPage()">
|
||||
<div class="tree" onmouseout="clearLastLink()">
|
||||
<h3><a name="link0folder.0" class="el" href="en/eluamodules.html">eLua API</a></h3>
|
||||
<h3><a name="link0folder.0" class="el" href="en/eluaapi.html">eLua API</a></h3>
|
||||
<p><img name="imgfolder.1" src="wb_img/minusnode.png" onclick="toggleFolder('folder.1')"><a name="link1folder.1" class="el" href="en/genericmodules.html">Generic Modules</a></p>
|
||||
<div id="folder.1" style="display:block">
|
||||
<p><img src="wb_img/vertline.png"><img name="imgfolder.1.1" src="wb_img/plusnode.png" onclick="toggleFolder('folder.1.1')"><a name="link2folder.1.1" class="el" href="en/bit_ref.html">bit</a></p>
|
||||
|
@ -218,7 +218,7 @@
|
||||
|
||||
<body style="margin: 2px; background-color: #F1F1F1" onload="showStartPage()">
|
||||
<div class="tree" onmouseout="clearLastLink()">
|
||||
<h3><a name="link0folder.0" class="el" href="pt/eluamodules.html">eLua API</a></h3>
|
||||
<h3><a name="link0folder.0" class="el" href="pt/eluaapi.html">eLua API</a></h3>
|
||||
<p><img name="imgfolder.1" src="wb_img/minusnode.png" onclick="toggleFolder('folder.1')"><a name="link85folder.1" class="el" href="pt/genericmodules.html">M<EFBFBD>dulos Gen<65>ricos</a></p>
|
||||
<div id="folder.1" style="display:block">
|
||||
<p><img src="wb_img/vertline.png"><img name="imgfolder.1.1" src="wb_img/plusnode.png" onclick="toggleFolder('folder.1.1')"><a name="link86folder.1.1" class="el" href="pt/bit_ref.html">bit</a></p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user