Enum stm32_uart_loader::protocol::Command[][src]

pub enum Command {
    Get,
    GetVersionReadStatus,
    GetId,
    ReadMemory,
    Go,
    WriteMemory,
    Erase,
    ExtendedErase,
    WriteProtect,
    WriteUnprotect,
    ReadoutProtect,
    ReadoutUnprotect,
}

Variants

Get

Fetch bootloader version and allowed commands

GetVersionReadStatus

Gets the bootloader version and the Read Protection status of the Flash memory.

GetId

Gets the chip ID

ReadMemory

Reads up to 256 bytes of memory starting from an address specified by the application.

Go

Jumps to user application code located in the internal Flash memory or in the SRAM.

WriteMemory

Writes up to 256 bytes to the RAM or Flash memory starting from an address specified by the application.

Erase

Erases from one to all the Flash memory pages.

ExtendedErase

Erases from one to all the Flash memory pages using two byte addressing mode (available only for v3.0 USART bootloader versions and above).

WriteProtect

Enables the write protection for some sectors.

WriteUnprotect

Disables the write protection for all Flash memory sectors

ReadoutProtect

Enables the read protection

ReadoutUnprotect

Disables the read protection.

Trait Implementations

impl Clone for Command[src]

impl Debug for Command[src]

impl PartialEq<Command> for Command[src]

impl StructuralPartialEq for Command[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.