#[repr(u8)]pub enum CommandType {
Show 13 variants
Handshake = 240,
Ack = 225,
DownloadFlashImage = 210,
DownloadOtpEfuse = 195,
UploadData = 180,
ReadOtpEfuse = 165,
FlashLock = 150,
Reset = 135,
DownloadFactoryBin = 120,
DownloadVersion = 105,
SetBaudRate = 90,
DownloadNv = 75,
SwitchDfu = 30,
}Expand description
SEBOOT command types (frame type field).
These are the official command codes from HiSilicon’s BurnTool.
Variants§
Handshake = 240
Handshake/connection establishment (0xF0).
Ack = 225
ACK frame type (response from device, 0xE1).
DownloadFlashImage = 210
Download flash image (0xD2).
DownloadOtpEfuse = 195
Download OTP/eFuse (0xC3).
UploadData = 180
Upload data from flash (0xB4).
ReadOtpEfuse = 165
Read OTP/eFuse (0xA5).
FlashLock = 150
Flash lock (0x96).
Reset = 135
Reset device (0x87).
DownloadFactoryBin = 120
Download factory bin (0x78).
DownloadVersion = 105
Download version info (0x69).
SetBaudRate = 90
Set baud rate (0x5A).
DownloadNv = 75
Download NV data (0x4B).
SwitchDfu = 30
Switch to DFU mode (0x1E).
Implementations§
Trait Implementations§
Source§impl Clone for CommandType
impl Clone for CommandType
Source§fn clone(&self) -> CommandType
fn clone(&self) -> CommandType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandType
impl Debug for CommandType
Source§impl PartialEq for CommandType
impl PartialEq for CommandType
impl Copy for CommandType
impl Eq for CommandType
impl StructuralPartialEq for CommandType
Auto Trait Implementations§
impl Freeze for CommandType
impl RefUnwindSafe for CommandType
impl Send for CommandType
impl Sync for CommandType
impl Unpin for CommandType
impl UnsafeUnpin for CommandType
impl UnwindSafe for CommandType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more