Merge pull request #247 from waveform80/doc-fixes

Fix up GPIO device hierarchy diagram
This commit is contained in:
Dave Jones
2016-04-03 20:16:46 +01:00
3 changed files with 79 additions and 69 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View File

@@ -4,75 +4,75 @@
<!-- Generated by graphviz version 2.36.0 (20140111.2315)
-->
<!-- Title: classes Pages: 1 -->
<svg width="557pt" height="404pt"
viewBox="0.00 0.00 557.00 404.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg width="611pt" height="404pt"
viewBox="0.00 0.00 611.00 404.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 400)">
<title>classes</title>
<polygon fill="white" stroke="none" points="-4,4 -4,-400 553,-400 553,4 -4,4"/>
<polygon fill="white" stroke="none" points="-4,4 -4,-400 607,-400 607,4 -4,4"/>
<!-- Device -->
<g id="node1" class="node"><title>Device</title>
<polygon fill="#9ec6e0" stroke="#9ec6e0" points="341,-396 287,-396 287,-360 341,-360 341,-396"/>
<text text-anchor="middle" x="314" y="-375.5" font-family="Sans" font-size="10.00" fill="#000000">Device</text>
<polygon fill="#9ec6e0" stroke="#9ec6e0" points="395,-396 341,-396 341,-360 395,-360 395,-396"/>
<text text-anchor="middle" x="368" y="-375.5" font-family="Sans" font-size="10.00" fill="#000000">Device</text>
</g>
<!-- GPIODevice -->
<g id="node2" class="node"><title>GPIODevice</title>
<polygon fill="#9ec6e0" stroke="#9ec6e0" points="350,-324 278,-324 278,-288 350,-288 350,-324"/>
<text text-anchor="middle" x="314" y="-303.5" font-family="Sans" font-size="10.00" fill="#000000">GPIODevice</text>
<polygon fill="#9ec6e0" stroke="#9ec6e0" points="404,-324 332,-324 332,-288 404,-288 404,-324"/>
<text text-anchor="middle" x="368" y="-303.5" font-family="Sans" font-size="10.00" fill="#000000">GPIODevice</text>
</g>
<!-- GPIODevice&#45;&gt;Device -->
<g id="edge1" class="edge"><title>GPIODevice&#45;&gt;Device</title>
<path fill="none" stroke="black" d="M314,-324.303C314,-332.017 314,-341.288 314,-349.888"/>
<polygon fill="black" stroke="black" points="310.5,-349.896 314,-359.896 317.5,-349.896 310.5,-349.896"/>
<path fill="none" stroke="black" d="M368,-324.303C368,-332.017 368,-341.288 368,-349.888"/>
<polygon fill="black" stroke="black" points="364.5,-349.896 368,-359.896 371.5,-349.896 364.5,-349.896"/>
</g>
<!-- WaitableInputDevice -->
<g id="node3" class="node"><title>WaitableInputDevice</title>
<polygon fill="#9ec6e0" stroke="#9ec6e0" points="296.5,-180 183.5,-180 183.5,-144 296.5,-144 296.5,-180"/>
<text text-anchor="middle" x="240" y="-159.5" font-family="Sans" font-size="10.00" fill="#000000">WaitableInputDevice</text>
<polygon fill="#9ec6e0" stroke="#9ec6e0" points="350.5,-180 237.5,-180 237.5,-144 350.5,-144 350.5,-180"/>
<text text-anchor="middle" x="294" y="-159.5" font-family="Sans" font-size="10.00" fill="#000000">WaitableInputDevice</text>
</g>
<!-- InputDevice -->
<g id="node5" class="node"><title>InputDevice</title>
<polygon fill="#2980b9" stroke="#2980b9" points="294.5,-252 221.5,-252 221.5,-216 294.5,-216 294.5,-252"/>
<text text-anchor="middle" x="258" y="-231.5" font-family="Sans" font-size="10.00" fill="#ffffff">InputDevice</text>
<polygon fill="#2980b9" stroke="#2980b9" points="348.5,-252 275.5,-252 275.5,-216 348.5,-216 348.5,-252"/>
<text text-anchor="middle" x="312" y="-231.5" font-family="Sans" font-size="10.00" fill="#ffffff">InputDevice</text>
</g>
<!-- WaitableInputDevice&#45;&gt;InputDevice -->
<g id="edge3" class="edge"><title>WaitableInputDevice&#45;&gt;InputDevice</title>
<path fill="none" stroke="black" d="M244.449,-180.303C246.455,-188.102 248.869,-197.491 251.101,-206.171"/>
<polygon fill="black" stroke="black" points="247.722,-207.082 253.602,-215.896 254.501,-205.339 247.722,-207.082"/>
<path fill="none" stroke="black" d="M298.449,-180.303C300.455,-188.102 302.869,-197.491 305.101,-206.171"/>
<polygon fill="black" stroke="black" points="301.722,-207.082 307.602,-215.896 308.501,-205.339 301.722,-207.082"/>
</g>
<!-- SmoothedInputDevice -->
<g id="node4" class="node"><title>SmoothedInputDevice</title>
<polygon fill="#9ec6e0" stroke="#9ec6e0" points="174.5,-108 51.5,-108 51.5,-72 174.5,-72 174.5,-108"/>
<text text-anchor="middle" x="113" y="-87.5" font-family="Sans" font-size="10.00" fill="#000000">SmoothedInputDevice</text>
<polygon fill="#9ec6e0" stroke="#9ec6e0" points="209.5,-108 86.5,-108 86.5,-72 209.5,-72 209.5,-108"/>
<text text-anchor="middle" x="148" y="-87.5" font-family="Sans" font-size="10.00" fill="#000000">SmoothedInputDevice</text>
</g>
<!-- SmoothedInputDevice&#45;&gt;WaitableInputDevice -->
<g id="edge5" class="edge"><title>SmoothedInputDevice&#45;&gt;WaitableInputDevice</title>
<path fill="none" stroke="black" d="M144.068,-108.124C160.827,-117.361 181.706,-128.869 199.702,-138.788"/>
<polygon fill="black" stroke="black" points="198.366,-142.048 208.813,-143.81 201.745,-135.918 198.366,-142.048"/>
<path fill="none" stroke="black" d="M183.716,-108.124C203.497,-117.608 228.272,-129.487 249.326,-139.581"/>
<polygon fill="black" stroke="black" points="247.87,-142.764 258.4,-143.932 250.896,-136.452 247.87,-142.764"/>
</g>
<!-- InputDevice&#45;&gt;GPIODevice -->
<g id="edge2" class="edge"><title>InputDevice&#45;&gt;GPIODevice</title>
<path fill="none" stroke="black" d="M271.843,-252.303C278.489,-260.611 286.578,-270.723 293.887,-279.859"/>
<polygon fill="black" stroke="black" points="291.336,-282.273 300.317,-287.896 296.803,-277.901 291.336,-282.273"/>
<path fill="none" stroke="black" d="M325.843,-252.303C332.489,-260.611 340.578,-270.723 347.887,-279.859"/>
<polygon fill="black" stroke="black" points="345.336,-282.273 354.317,-287.896 350.803,-277.901 345.336,-282.273"/>
</g>
<!-- DigitalInputDevice -->
<g id="node6" class="node"><title>DigitalInputDevice</title>
<polygon fill="#2980b9" stroke="#2980b9" points="295.5,-108 192.5,-108 192.5,-72 295.5,-72 295.5,-108"/>
<text text-anchor="middle" x="244" y="-87.5" font-family="Sans" font-size="10.00" fill="#ffffff">DigitalInputDevice</text>
<polygon fill="#2980b9" stroke="#2980b9" points="349.5,-108 246.5,-108 246.5,-72 349.5,-72 349.5,-108"/>
<text text-anchor="middle" x="298" y="-87.5" font-family="Sans" font-size="10.00" fill="#ffffff">DigitalInputDevice</text>
</g>
<!-- DigitalInputDevice&#45;&gt;WaitableInputDevice -->
<g id="edge4" class="edge"><title>DigitalInputDevice&#45;&gt;WaitableInputDevice</title>
<path fill="none" stroke="black" d="M243.011,-108.303C242.57,-116.017 242.041,-125.288 241.549,-133.888"/>
<polygon fill="black" stroke="black" points="238.054,-133.712 240.977,-143.896 245.042,-134.112 238.054,-133.712"/>
<path fill="none" stroke="black" d="M297.011,-108.303C296.57,-116.017 296.041,-125.288 295.549,-133.888"/>
<polygon fill="black" stroke="black" points="292.054,-133.712 294.977,-143.896 299.042,-134.112 292.054,-133.712"/>
</g>
<!-- Button -->
<g id="node7" class="node"><title>Button</title>
<polygon fill="#2980b9" stroke="#2980b9" points="271,-36 217,-36 217,-0 271,-0 271,-36"/>
<text text-anchor="middle" x="244" y="-15.5" font-family="Sans" font-size="10.00" fill="#ffffff">Button</text>
<polygon fill="#2980b9" stroke="#2980b9" points="335,-36 281,-36 281,-0 335,-0 335,-36"/>
<text text-anchor="middle" x="308" y="-15.5" font-family="Sans" font-size="10.00" fill="#ffffff">Button</text>
</g>
<!-- Button&#45;&gt;DigitalInputDevice -->
<g id="edge6" class="edge"><title>Button&#45;&gt;DigitalInputDevice</title>
<path fill="none" stroke="black" d="M244,-36.3034C244,-44.0173 244,-53.2875 244,-61.8876"/>
<polygon fill="black" stroke="black" points="240.5,-61.8956 244,-71.8957 247.5,-61.8957 240.5,-61.8956"/>
<path fill="none" stroke="black" d="M305.528,-36.3034C304.426,-44.0173 303.102,-53.2875 301.873,-61.8876"/>
<polygon fill="black" stroke="black" points="298.393,-61.5012 300.443,-71.8957 305.323,-62.4912 298.393,-61.5012"/>
</g>
<!-- MotionSensor -->
<g id="node8" class="node"><title>MotionSensor</title>
@@ -81,8 +81,8 @@
</g>
<!-- MotionSensor&#45;&gt;SmoothedInputDevice -->
<g id="edge7" class="edge"><title>MotionSensor&#45;&gt;SmoothedInputDevice</title>
<path fill="none" stroke="black" d="M58.7978,-36.3034C67.604,-44.865 78.3821,-55.3438 88.0011,-64.6955"/>
<polygon fill="black" stroke="black" points="85.7972,-67.4343 95.407,-71.8957 90.6768,-62.4154 85.7972,-67.4343"/>
<path fill="none" stroke="black" d="M67.1751,-36.1239C81.0359,-45.1917 98.2414,-56.4477 113.211,-66.2408"/>
<polygon fill="black" stroke="black" points="111.44,-69.2645 121.724,-71.8102 115.272,-63.4067 111.44,-69.2645"/>
</g>
<!-- LightSensor -->
<g id="node9" class="node"><title>LightSensor</title>
@@ -91,68 +91,78 @@
</g>
<!-- LightSensor&#45;&gt;SmoothedInputDevice -->
<g id="edge8" class="edge"><title>LightSensor&#45;&gt;SmoothedInputDevice</title>
<path fill="none" stroke="black" d="M131.82,-36.3034C129.005,-44.1868 125.609,-53.6958 122.481,-62.4536"/>
<polygon fill="black" stroke="black" points="119.176,-61.301 119.109,-71.8957 125.768,-63.6554 119.176,-61.301"/>
<path fill="none" stroke="black" d="M140.472,-36.3034C141.574,-44.0173 142.898,-53.2875 144.127,-61.8876"/>
<polygon fill="black" stroke="black" points="140.677,-62.4912 145.557,-71.8957 147.607,-61.5012 140.677,-62.4912"/>
</g>
<!-- LineSensor -->
<g id="node10" class="node"><title>LineSensor</title>
<polygon fill="#2980b9" stroke="#2980b9" points="263,-36 193,-36 193,-0 263,-0 263,-36"/>
<text text-anchor="middle" x="228" y="-15.5" font-family="Sans" font-size="10.00" fill="#ffffff">LineSensor</text>
</g>
<!-- LineSensor&#45;&gt;SmoothedInputDevice -->
<g id="edge9" class="edge"><title>LineSensor&#45;&gt;SmoothedInputDevice</title>
<path fill="none" stroke="black" d="M208.225,-36.3034C198.246,-45.0345 185.989,-55.7595 175.143,-65.2497"/>
<polygon fill="black" stroke="black" points="172.769,-62.6766 167.548,-71.8957 177.378,-67.9446 172.769,-62.6766"/>
</g>
<!-- OutputDevice -->
<g id="node10" class="node"><title>OutputDevice</title>
<polygon fill="#2980b9" stroke="#2980b9" points="412,-252 330,-252 330,-216 412,-216 412,-252"/>
<text text-anchor="middle" x="371" y="-231.5" font-family="Sans" font-size="10.00" fill="#ffffff">OutputDevice</text>
<g id="node11" class="node"><title>OutputDevice</title>
<polygon fill="#2980b9" stroke="#2980b9" points="466,-252 384,-252 384,-216 466,-216 466,-252"/>
<text text-anchor="middle" x="425" y="-231.5" font-family="Sans" font-size="10.00" fill="#ffffff">OutputDevice</text>
</g>
<!-- OutputDevice&#45;&gt;GPIODevice -->
<g id="edge9" class="edge"><title>OutputDevice&#45;&gt;GPIODevice</title>
<path fill="none" stroke="black" d="M356.91,-252.303C350.077,-260.695 341.743,-270.93 334.244,-280.139"/>
<polygon fill="black" stroke="black" points="331.528,-277.931 327.928,-287.896 336.956,-282.351 331.528,-277.931"/>
<g id="edge10" class="edge"><title>OutputDevice&#45;&gt;GPIODevice</title>
<path fill="none" stroke="black" d="M410.91,-252.303C404.077,-260.695 395.743,-270.93 388.244,-280.139"/>
<polygon fill="black" stroke="black" points="385.528,-277.931 381.928,-287.896 390.956,-282.351 385.528,-277.931"/>
</g>
<!-- DigitalOutputDevice -->
<g id="node11" class="node"><title>DigitalOutputDevice</title>
<polygon fill="#2980b9" stroke="#2980b9" points="427,-180 315,-180 315,-144 427,-144 427,-180"/>
<text text-anchor="middle" x="371" y="-159.5" font-family="Sans" font-size="10.00" fill="#ffffff">DigitalOutputDevice</text>
<g id="node12" class="node"><title>DigitalOutputDevice</title>
<polygon fill="#2980b9" stroke="#2980b9" points="481,-180 369,-180 369,-144 481,-144 481,-180"/>
<text text-anchor="middle" x="425" y="-159.5" font-family="Sans" font-size="10.00" fill="#ffffff">DigitalOutputDevice</text>
</g>
<!-- DigitalOutputDevice&#45;&gt;OutputDevice -->
<g id="edge10" class="edge"><title>DigitalOutputDevice&#45;&gt;OutputDevice</title>
<path fill="none" stroke="black" d="M371,-180.303C371,-188.017 371,-197.288 371,-205.888"/>
<polygon fill="black" stroke="black" points="367.5,-205.896 371,-215.896 374.5,-205.896 367.5,-205.896"/>
<g id="edge11" class="edge"><title>DigitalOutputDevice&#45;&gt;OutputDevice</title>
<path fill="none" stroke="black" d="M425,-180.303C425,-188.017 425,-197.288 425,-205.888"/>
<polygon fill="black" stroke="black" points="421.5,-205.896 425,-215.896 428.5,-205.896 421.5,-205.896"/>
</g>
<!-- LED -->
<g id="node12" class="node"><title>LED</title>
<polygon fill="#2980b9" stroke="#2980b9" points="375,-108 321,-108 321,-72 375,-72 375,-108"/>
<text text-anchor="middle" x="348" y="-87.5" font-family="Sans" font-size="10.00" fill="#ffffff">LED</text>
<g id="node13" class="node"><title>LED</title>
<polygon fill="#2980b9" stroke="#2980b9" points="429,-108 375,-108 375,-72 429,-72 429,-108"/>
<text text-anchor="middle" x="402" y="-87.5" font-family="Sans" font-size="10.00" fill="#ffffff">LED</text>
</g>
<!-- LED&#45;&gt;DigitalOutputDevice -->
<g id="edge11" class="edge"><title>LED&#45;&gt;DigitalOutputDevice</title>
<path fill="none" stroke="black" d="M353.685,-108.303C356.248,-116.102 359.333,-125.491 362.185,-134.171"/>
<polygon fill="black" stroke="black" points="358.933,-135.488 365.38,-143.896 365.584,-133.303 358.933,-135.488"/>
<g id="edge12" class="edge"><title>LED&#45;&gt;DigitalOutputDevice</title>
<path fill="none" stroke="black" d="M407.685,-108.303C410.248,-116.102 413.333,-125.491 416.185,-134.171"/>
<polygon fill="black" stroke="black" points="412.933,-135.488 419.38,-143.896 419.584,-133.303 412.933,-135.488"/>
</g>
<!-- Buzzer -->
<g id="node13" class="node"><title>Buzzer</title>
<polygon fill="#2980b9" stroke="#2980b9" points="447,-108 393,-108 393,-72 447,-72 447,-108"/>
<text text-anchor="middle" x="420" y="-87.5" font-family="Sans" font-size="10.00" fill="#ffffff">Buzzer</text>
<g id="node14" class="node"><title>Buzzer</title>
<polygon fill="#2980b9" stroke="#2980b9" points="501,-108 447,-108 447,-72 501,-72 501,-108"/>
<text text-anchor="middle" x="474" y="-87.5" font-family="Sans" font-size="10.00" fill="#ffffff">Buzzer</text>
</g>
<!-- Buzzer&#45;&gt;DigitalOutputDevice -->
<g id="edge12" class="edge"><title>Buzzer&#45;&gt;DigitalOutputDevice</title>
<path fill="none" stroke="black" d="M407.888,-108.303C402.132,-116.526 395.138,-126.517 388.794,-135.579"/>
<polygon fill="black" stroke="black" points="385.84,-133.696 382.973,-143.896 391.575,-137.71 385.84,-133.696"/>
<g id="edge13" class="edge"><title>Buzzer&#45;&gt;DigitalOutputDevice</title>
<path fill="none" stroke="black" d="M461.888,-108.303C456.132,-116.526 449.138,-126.517 442.794,-135.579"/>
<polygon fill="black" stroke="black" points="439.84,-133.696 436.973,-143.896 445.575,-137.71 439.84,-133.696"/>
</g>
<!-- PWMOutputDevice -->
<g id="node14" class="node"><title>PWMOutputDevice</title>
<polygon fill="#2980b9" stroke="#2980b9" points="549,-180 445,-180 445,-144 549,-144 549,-180"/>
<text text-anchor="middle" x="497" y="-159.5" font-family="Sans" font-size="10.00" fill="#ffffff">PWMOutputDevice</text>
<g id="node15" class="node"><title>PWMOutputDevice</title>
<polygon fill="#2980b9" stroke="#2980b9" points="603,-180 499,-180 499,-144 603,-144 603,-180"/>
<text text-anchor="middle" x="551" y="-159.5" font-family="Sans" font-size="10.00" fill="#ffffff">PWMOutputDevice</text>
</g>
<!-- PWMOutputDevice&#45;&gt;OutputDevice -->
<g id="edge13" class="edge"><title>PWMOutputDevice&#45;&gt;OutputDevice</title>
<path fill="none" stroke="black" d="M466.177,-180.124C449.55,-189.361 428.835,-200.869 410.981,-210.788"/>
<polygon fill="black" stroke="black" points="408.983,-207.894 401.942,-215.81 412.383,-214.013 408.983,-207.894"/>
<g id="edge14" class="edge"><title>PWMOutputDevice&#45;&gt;OutputDevice</title>
<path fill="none" stroke="black" d="M520.177,-180.124C503.55,-189.361 482.835,-200.869 464.981,-210.788"/>
<polygon fill="black" stroke="black" points="462.983,-207.894 455.942,-215.81 466.383,-214.013 462.983,-207.894"/>
</g>
<!-- PWMLED -->
<g id="node15" class="node"><title>PWMLED</title>
<polygon fill="#2980b9" stroke="#2980b9" points="526,-108 468,-108 468,-72 526,-72 526,-108"/>
<text text-anchor="middle" x="497" y="-87.5" font-family="Sans" font-size="10.00" fill="#ffffff">PWMLED</text>
<g id="node16" class="node"><title>PWMLED</title>
<polygon fill="#2980b9" stroke="#2980b9" points="580,-108 522,-108 522,-72 580,-72 580,-108"/>
<text text-anchor="middle" x="551" y="-87.5" font-family="Sans" font-size="10.00" fill="#ffffff">PWMLED</text>
</g>
<!-- PWMLED&#45;&gt;PWMOutputDevice -->
<g id="edge14" class="edge"><title>PWMLED&#45;&gt;PWMOutputDevice</title>
<path fill="none" stroke="black" d="M497,-108.303C497,-116.017 497,-125.288 497,-133.888"/>
<polygon fill="black" stroke="black" points="493.5,-133.896 497,-143.896 500.5,-133.896 493.5,-133.896"/>
<g id="edge15" class="edge"><title>PWMLED&#45;&gt;PWMOutputDevice</title>
<path fill="none" stroke="black" d="M551,-108.303C551,-116.017 551,-125.288 551,-133.888"/>
<polygon fill="black" stroke="black" points="547.5,-133.896 551,-143.896 554.5,-133.896 547.5,-133.896"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 10 KiB