Skip to main content

Crate tinyboot_protocol

Crate tinyboot_protocol 

Source
Expand description

Wire protocol for the tinyboot bootloader.

Defines the frame format, commands, status codes, and CRC used for host-device communication over UART / RS-485.

Re-exports§

pub use frame::Data;
pub use frame::EraseData;
pub use frame::InfoData;
pub use frame::MAX_PAYLOAD;
pub use frame::VerifyData;

Modules§

crc
CRC16-CCITT implementation.
frame
Frame encoding, decoding, and typed payload access.

Macros§

pkg_version
Expands to pack_version(MAJOR, MINOR, PATCH) using the calling crate’s Cargo.toml version fields. Zero runtime cost — evaluates to a u16 constant.

Structs§

ReadError
Transport IO error.

Enums§

Cmd
Commands (host to device).
Status
Response status codes (device to host).

Functions§

const_parse_u8
const fn parse of a &str decimal digit sequence into u8. Panics at compile time if the string is empty or contains non-digit chars.
pack_version
Pack a semantic version into a u16 using 5.5.6 encoding.
unpack_version
Unpack a 5.5.6-encoded u16 into (major, minor, patch).