3 releases
0.1.2 | Jun 19, 2024 |
---|---|
0.1.1 | May 17, 2024 |
0.1.0 | May 17, 2024 |
#1141 in Hardware support
152 downloads per month
1MB
818 lines
zmodem2 - ZMODEM transfer protocol crate
This a library crate that implements ZMODEM transfer protocol, and is continued
development from zmodem crate by Aleksei
Arbuzov. The crate does not use heap and can be compiled for no_std
.
Contributing
- For larger changes, please create an issue. For small and cosmetic PR's just a PR is good enough.
- Use
Closes: #<issue>
when the issue exists. - For large singular commits, preferably write also a description to the commit message.
- Add
Signed-off-by: Firstname Lastname <email@address.com>
to the commmits (i.e.git commit -s
). - Try to separate changes into logical pieces in a pull requests with multiple commits.
lib.rs
:
ZMODEM file transfer protocol crate. zmodem2::receive
and zmodem2::send
provide a synchronous and sequential API for sending and receiving files
with the ZMODEM protocol. Each step corresponds to a single ZMODEM frame
transaction, and the state between the calls is kept in a zmodem2::State
instance.
The usage can be described in the high-level with the following flow:
- Create
zmodem2::State
. - Call either
zmodem2::send
orzmodem2::receive
. - If the returned
zmodem2::Stage
is not yetzmodem2::Stage::Done
, go back to step 2.