6个版本
0.0.5 | 2022年10月3日 |
---|---|
0.0.4 | 2021年10月28日 |
0.0.3 | 2021年3月6日 |
0.0.1 | 2021年2月5日 |
#913 in 硬件支持
每月50次下载
16KB
308 行
pump
⛽️ 串口泵。
安装
$ cargo install pump
使用方法
$ pump --help
USAGE:
pump [SUBCOMMAND]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
SUBCOMMANDS:
download Download from serial port [aliases: down]
help Prints this message or the help of the given subcommand(s)
list List available ports [aliases: ls]
upload Upload to serial port [aliases: up]
列出串口
$ pump list --help
List available ports
USAGE:
pump list [FLAGS]
FLAGS:
-i, --info Prints detailed ports information
-h, --help Prints help information
-V, --version Prints version information
上传到串口
$ pump upload --help
Upload to serial port
USAGE:
pump upload [OPTIONS] <PORT> [BAUDRATE]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-d, --data-bits <DATA_BITS> Sets the data bits [default: 8] [possible values: 5, 6, 7, 8]
-f, --flow <FLOW> Sets the flow control [env: PUMP_FLOW=] [default: off] [possible values: off, soft]
-i, --input <INPUT> Sets the input file [default: stdin]
-l, --limit <LIMIT> Sets the data limit in bytes
-p, --parity <PARITY> Sets the parity [default: none] [possible values: none, odd, even]
-s, --stop-bits <STOP_BITS> Sets the stop bits [default: 1] [possible values: 1, 2]
-t, --timeout <TIMEOUT> Sets the timeout in milliseconds [default: 0]
ARGS:
<PORT> Sets thes port name [env: PUMP_PORT=]
<BAUDRATE> Sets the baudrate [env: PUMP_BAUDRATE=] [default: 115200]
从串口下载
$ pump download --help
Download from serial port
USAGE:
pump download [OPTIONS] <PORT> [BAUDRATE]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-d, --data-bits <DATA_BITS> Sets the data bits [default: 8] [possible values: 5, 6, 7, 8]
-f, --flow <FLOW> Sets the flow control [env: PUMP_FLOW=] [default: off] [possible values: off, soft]
-o, --output <OUTPUT> Sets the output file [default: stdout]
-l, --limit <LIMIT> Sets the data limit in bytes
-p, --parity <PARITY> Sets the parity [default: none] [possible values: none, odd, even]
-s, --stop-bits <STOP_BITS> Sets the stop bits [default: 1] [possible values: 1, 2]
-t, --timeout <TIMEOUT> Sets the timeout in milliseconds [default: 0]
ARGS:
<PORT> Sets thes port name [env: PUMP_PORT=]
<BAUDRATE> Sets the baudrate [env: PUMP_BAUDRATE=] [default: 115200]
许可证
许可协议为以下之一
- Apache License,版本2.0 (LICENSE-APACHE 或 http://apache.ac.cn/licenses/LICENSE-2.0)
- MIT许可 (LICENSE-MIT 或 http://opensource.org/licenses/MIT)
任选其一。
贡献
除非你明确说明,否则你提交的任何贡献,根据Apache-2.0许可协议定义,将按上述方式双重许可,不附加任何额外条款或条件。
依赖关系
~3MB
~47K SLoC