Module protocols

Module protocols 

Source
Expand description

McuBoot Protocol Abstraction Layer

This module provides a unified interface for communicating with McuBoot devices across different physical transports (UART, USB, I2C). It defines common traits and error types that allow the same high-level McuBoot commands to work regardless of the underlying communication medium.

The protocol abstraction handles the low-level details of packet framing, acknowledgment handling, and error recovery while providing a consistent interface for sending and receiving McuBoot packets.

§Supported Protocols

  • UART: Serial communication over UART interfaces
  • USB: USB HID communication for direct device connection
  • I2C: I2C bus communication for embedded applications

Modules§

i2c
uart
usb

Enums§

CommunicationError
Communication error types for McuBoot protocol operations

Traits§

Protocol
Core protocol trait for McuBoot communication
ProtocolOpen
Trait for opening protocol connections