Crate tockloader_proto

Source
Expand description

Implements the Tockloader protocol.

TockOS applications are loaded with tockloader. This speaks to the TockOS bootloader using a specific protocol. This crate implements that protocol so that you can write future tockloader compatible bootloaders in Rust!

Modules§

prelude

Structs§

CommandDecoder
The ComandDecoder takes bytes and gives you Commands.
CommandEncoder
The CommandEncoder takes a Command and gives you bytes.
ResponseDecoder
The ResponseDecoder takes bytes and gives you Responsess.
ResponseEncoder
The ResponseEncoder takes a Response and gives you bytes.

Enums§

BaudMode
Command
Commands supported by the protocol. A bootloader will decode these and a flash tool will encode them.
Error
Response
Reponses supported by the protocol. A bootloader will encode these and a flash tool will decode them.

Traits§

Encoder