当前位置: 首页 > news >正文

PlantUML 绘图

官网

  • https://plantuml.com/zh/

示例

在这里插入图片描述

绘制时序图

USB 枚举过程 PlantUML 源码

@startuml
host   <-- device : device insert host
note right        : step 1
host   ->  device : get speed, reset, speed check
note right        : step 2
host   ->  device : get device descriptors
note right        : step 3
device --> host   : return device descriptors
note right        : step 4
host   ->  device : reset again
note right        : step 5
host   ->  device : set device address
note right        : step 6
host   ->  device : use new address get device descriptors(real get)
note right        : step 7
device --> host   : return device descriptors
note right        : step 8
host   ->  device : get config descriptors or get config descriptors sets
note right        : step 9
device --> host   : return config descriptors or config descriptors sets
note right        : step 10
host   ->  device : get string descriptors
note right        : step 11
device --> host   : return string descriptors
note right        : step 12
host   ->  device : get class special descriptors
note right        : step 13
device --> host   : return class special descriptors
note right        : step 14
@enduml

效果
在这里插入图片描述

绘制定时图片

USB 字节序 PlantUML 源码

@startuml
header Page 1
footer Page 1 of 1<style>
timingDiagram {.red{Linecolor red}.blue {Linecolor blue}}
</style>concise "status" as status
concise "DATA" as data 
binary "DP" as DP  <<red>>
binary "DM" as DM  <<blue>>@0
data is "SE0"
DP is low
DM is low@2
data is "idle"
DP is high
DM is low@6
data is "0"
status is "SYNC 0x80"
DP is low
DM is high@7
data is "0"
DP is high
DM is low@8
data is "0"
DP is low
DM is high@9
data is "0"
DP is high
DM is low@10
data is "0"
DP is low
DM is high@11
data is "0"
DP is high
DM is low@12
data is "0"
DP is low
DM is high@13
data is "1"
DP is low
DM is high@14
data is "1"
status is "PID SETUP 0x2D"
DP is low
DM is high@15
data is "0"
DP is high
DM is low@16
data is "1"
DP is high
DM is low@17
data is "1"
DP is high
DM is low@18
data is "0"
DP is low
DM is high@19
data is "1"
DP is low
DM is high@20
data is "0"
DP is high
DM is low@21
data is "0"
DP is low
DM is high@22
data is "0"
status is "other"
DP is high
DM is low@enduml

效果
在这里插入图片描述

http://www.lryc.cn/news/188793.html

相关文章:

  • spring boot自定义配置时在yml文件输入有提示
  • Linux:I/O 5种模型
  • 企业提升效率的秘密武器,推荐J2L3x聊天软件!
  • Android Termux安装MySQL,并使用cpolar实现公网安全远程连接[内网穿透]
  • 如何有效管理公司分配给员工的个人微信,实现聚合聊天管理?
  • 【HTML5】语义化标签记录
  • 数据结构———— 堆
  • 如何选择专业的游戏开发公司?
  • Unity基础课程之物理引擎3-碰撞检测案例-吃金币并加分显在UI文本框上
  • DAPLink V2 STLink V2 JLink V9.7 串口四合一仿真调试下载器
  • 使用PyTorch处理多维特征输入的完美指南
  • 萝卜刀玩具上架亚马逊CPC认证测试标准
  • 阶段六-Day03-MyBatis
  • 探索RPA流程自动化在不同行业的应用案例
  • 解决gpedit.msc命令无法打开的问题
  • 一大突破!清华大学研制出首颗忆阻器存算一体芯片
  • JUC的线程池架构
  • PostgreSQL limit 语法
  • CUDA C编程权威指南:2.1-CUDA编程模型
  • 两条记录合并成一条记录
  • vue3 + typescript + vite + naive ui + tailwindcss + jsx 仿苹果桌面系统
  • 揭秘,用软件一秒识别纸质表格数字,找到你想要的一串数字
  • 解析图片文件格式
  • 新的“HTTP/2 快速重置”零日攻击打破了 DDoS 记录
  • 现代化战机之路:美国空军U-2侦察机基于Jenkins和k8s的CI/CD架构演进
  • Linux中常用的软件:Squid
  • Ali MaxCompute SDK
  • 解决element中table在页面切换时候表格底部出现空白
  • Vue中对路由的进阶学习
  • Vuex的同步存值与取值及异步请求