<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="application/ecmascript" contentStyleType="text/css" height="282px" preserveAspectRatio="none" style="width:455px;height:282px;" version="1.1" viewBox="0 0 455 282" width="455px" zoomAndPan="magnify"><defs><filter height="300%" id="f12kntt60xghcw" width="300%" x="-1" y="-1"><feGaussianBlur result="blurOut" stdDeviation="2.0"/><feColorMatrix in="blurOut" result="blurOut2" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .4 0"/><feOffset dx="4.0" dy="4.0" in="blurOut2" result="blurOut3"/><feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/></filter></defs><g><ellipse cx="124" cy="252" fill="#000000" filter="url(#f12kntt60xghcw)" rx="10" ry="10" style="stroke:none;stroke-width:1.0;"/><rect fill="#FEFECE" filter="url(#f12kntt60xghcw)" height="33.9688" rx="12.5" ry="12.5" style="stroke:#A80036;stroke-width:1.5;" width="95" x="221.5" y="235"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="75" x="231.5" y="256.1387">Limit 500mA</text><rect fill="#FEFECE" filter="url(#f12kntt60xghcw)" height="33.9688" rx="12.5" ry="12.5" style="stroke:#A80036;stroke-width:1.5;" width="100" x="7" y="7"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="80" x="17" y="28.1387">USB plugged</text><rect fill="#FEFECE" filter="url(#f12kntt60xghcw)" height="33.9688" rx="12.5" ry="12.5" style="stroke:#A80036;stroke-width:1.5;" width="151" x="127.5" y="7"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="131" x="137.5" y="28.1387">USB type recognition</text><polygon fill="#FEFECE" filter="url(#f12kntt60xghcw)" points="203,82,215,94,203,106,191,94,203,82" style="stroke:#A80036;stroke-width:1.5;"/><rect fill="#FEFECE" filter="url(#f12kntt60xghcw)" height="33.9688" rx="12.5" ry="12.5" style="stroke:#A80036;stroke-width:1.5;" width="103" x="201.5" y="160"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="83" x="211.5" y="181.1387">Limit 1500mA</text><rect fill="#FEFECE" filter="url(#f12kntt60xghcw)" height="33.9688" rx="12.5" ry="12.5" style="stroke:#A80036;stroke-width:1.5;" width="116" x="325" y="160"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="96" x="335" y="181.1387">USB unplugged</text><!--MD5=[4efa0ceb8d869b0f02c9d84720c80e93]
link start to Limit 500mA--><path d="M134.43,252 C151.43,252 186.24,252 216.2,252 " fill="none" id="start-to-Limit 500mA" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="221.34,252,212.34,248,216.34,252,212.34,256,221.34,252" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="66" x="144.75" y="246.2104">initialization</text><!--MD5=[04d55dba39d9a0eb7d067c791539fcd8]
link USB plugged to USB type recognition--><path d="M107.19,24 C112.24,24 117.29,24 122.35,24 " fill="none" id="USB plugged-to-USB type recognition" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="127.4,24,118.4,20,122.4,24,118.4,28,127.4,24" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[36317cad5e94ba9bb427f52905fd2925]
link USB type recognition to #8--><path d="M203,41.12 C203,51.92 203,66.08 203,76.88 " fill="none" id="USB type recognition-to-#8" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="203,81.89,207,72.89,203,76.89,199,72.89,203,81.89" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="106" x="76.7938" y="73.3494">Detected USB type</text><!--MD5=[8b72c5e5407284ef9afe374b980984ef]
link #8 to Limit 500mA--><path d="M197.54,100.67 C183.16,116.32 146.62,161.12 166,194 C177.15,212.91 197.07,225.98 216.44,234.79 " fill="none" id="#8-to-Limit 500mA" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="221.35,236.94,214.6995,229.6756,216.7669,234.9412,211.5014,237.0085,221.35,236.94" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="23" x="167" y="181.2104">SDP</text><!--MD5=[b5dd0bbf25620b4138b920210523f638]
link #8 to Limit 1500mA--><path d="M200.74,103.84 C198.8,113.34 197.16,128.6 203,140 C206.33,146.5 211.44,152.09 217.14,156.8 " fill="none" id="#8-to-Limit 1500mA" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="221.16,159.91,216.4833,151.2423,217.2033,156.8532,211.5924,157.5731,221.16,159.91" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="23" x="204" y="137.2104">CDP</text><!--MD5=[b5dd0bbf25620b4138b920210523f638]
link #8 to Limit 1500mA--><path d="M208.66,100.82 C214.28,106.81 222.91,116.55 229,126 C234.87,135.1 240.21,145.84 244.35,155.04 " fill="none" id="#8-to-Limit 1500mA-1" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="246.41,159.69,246.4415,149.8412,244.3939,155.1145,239.1206,153.0669,246.41,159.69" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="23" x="238" y="137.2104">DCP</text><!--MD5=[96c530ca5284f63feb7182093e557ed9]
link USB unplugged to Limit 500mA--><path d="M357.98,194.02 C340.58,205.16 317.3,220.07 298.92,231.84 " fill="none" id="USB unplugged-to-Limit 500mA" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="294.35,234.76,304.0859,233.2729,298.5601,232.0627,299.7703,226.5368,294.35,234.76" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[83154e0bea18ea5a1fea1a60710e90e5]
@startuml
(*) -> [initialization] "Limit 500mA"
"USB plugged" -> "USB type recognition"
If "Detected USB type" then
- - -> [SDP] "Limit 500mA"
else
-> [CDP] "Limit 1500mA"
else
- -> [DCP] "Limit 1500mA"
Endif
"USB unplugged" - -> "Limit 500mA"
@enduml
PlantUML version 1.2021.00(Sun Jan 10 11:25:05 CET 2021)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Default Encoding: UTF-8
Language: pl
Country: PL
--></g></svg>