AHBUARTplugin » History » Version 2
Alexis Jeandet, 21/09/2015 06:50 PM
1 | 1 | Alexis Jeandet | h1. AHBUARTplugin |
---|---|---|---|
2 | |||
3 | p=. !{width: 80%}AHBUARTPluginWLegend.png(AHBUart plugin screenshot example)! |
||
4 | 2 | Alexis Jeandet | |
5 | h2. General Description |
||
6 | |||
7 | The AHBUARTplugin is a root plugin which allows you to connect to any "SOC":https://en.wikipedia.org/wiki/System_on_a_chip using "gaisler's AHBUART":http://www.gaisler.com/products/grlib/grip.pdf IP. The plugin is capable of scanning available serial port on the computer and measuring system clock if a DSU3 IP is also present. Before any transaction it will check if the device is still connected by reading at 0x80000000. |
||
8 | |||
9 | h2. Python's specific features |
||
10 | |||
11 | [[Plugins_Python_API|Common methods]] |
||
12 | |||
13 | Methods list: |
||
14 | |||
15 | * %{color:green}bool% *[[AHBUARTplugin#open|open]]* (%{color:green}QString% PortName, %{color:green}int% baudrate); |
||
16 | * %{color:blue}void% *[[AHBUARTplugin#close|close]]* (); |
||
17 | * %{color:blue}void% *[[AHBUARTplugin#updatePortList|updatePortList]]* (); |
||
18 | * %{color:green}int% *[[AHBUARTplugin#detectSpeed|detectSpeed]]* (); |
||
19 | |||
20 | |||
21 | ---- |
||
22 | |||
23 | ---- |
||
24 | |||
25 | |||
26 | h2(#open). %{color:green}bool% *[[AHBUARTplugin#open|open]]* (%{color:green}QString% PortName, %{color:green}int% baudrate) |
||
27 | |||
28 | Opens given *PortName* with given *baudrate* and returns %{color:blue}true% if success. |
||
29 | On Windows PortName is COMx where x is the port number. |
||
30 | On Linux PortName may be "/dev/ttySx" if you are using an integrated COM port or "/dev/ttyUSBx" if you are using an USB to RS232 converter. In both case x is the port number. |
||
31 | |||
32 | ---- |
||
33 | |||
34 | h2(#close). %{color:blue}void% *[[AHBUARTplugin#close|close]]* () |
||
35 | |||
36 | Closes current port and tells child plugins that it is disconnected. If already disconnected, does nothing. |
||
37 | |||
38 | ---- |
||
39 | |||
40 | h2(#updatePortList). %{color:blue}void% *[[AHBUARTplugin#updatePortList|updatePortList]]* () |
||
41 | |||
42 | Search for available serial port on the computer. This method isn't much useful in the python terminal since the list of serial ports will be used only for completion on the GUI. |
||
43 | |||
44 | |||
45 | ---- |
||
46 | |||
47 | h2(#detectSpeed). %{color:green}int% *[[AHBUARTplugin#detectSpeed|detectSpeed]]* () |
||
48 | |||
49 | Returns the system clock. This method will only work if a DSU3 IP is present on the soc and the timetag counter is counting. |
||
50 | |||
51 | ---- |