#[repr(u8)]pub enum RiscvChip {
CH32V103 = 1,
CH57X = 2,
CH56X = 3,
CH32V20X = 5,
CH32V30X = 6,
CH58X = 7,
CH32V003 = 9,
CH8571 = 10,
CH59X = 11,
CH643 = 12,
CH32X035 = 13,
CH32L103 = 14,
}Expand description
Currently supported RISC-V chip series/family
Variants§
CH32V103 = 1
CH32V103 RISC-V3A series
CH57X = 2
CH571/CH573 RISC-V3A BLE 4.2 series
CH56X = 3
CH565/CH569 RISC-V3A series
CH32V20X = 5
CH32V20X RISC-V4B/V4C series
CH32V30X = 6
CH32V30X RISC-V4C/V4F series, The same as type 5
CH58X = 7
CH58x RISC-V4A BLE 5.3 series
CH32V003 = 9
CH32V003 RISC-V2A series
CH8571 = 10
RISC-V EC controller, undocumented.
CH59X = 11
CH59x RISC-V4C BLE 5.4 series, fallback as CH58X
CH643 = 12
CH643 RISC-V4C series, RGB Display Driver MCU
CH32X035 = 13
CH32X035 RISC-V4C PDUSB series, fallbak as CH643
CH32L103 = 14
CH32L103 RISC-V4C low power series
Implementations§
source§impl RiscvChip
impl RiscvChip
sourcepub fn support_flash_protect(&self) -> bool
pub fn support_flash_protect(&self) -> bool
Support flash protect commands, and info query commands
sourcepub fn support_query_info(&self) -> bool
pub fn support_query_info(&self) -> bool
Support config registers, query info(UID, etc.)
sourcepub fn support_disable_debug(&self) -> bool
pub fn support_disable_debug(&self) -> bool
Very unsafe. This disables the debug interface of the chip. Command sequence is 810e0101
sourcepub fn support_special_erase(&self) -> bool
pub fn support_special_erase(&self) -> bool
Erase code flash by RST pin or power-off
pub fn reset_command(&self) -> Reset
sourcepub fn data_packet_size(&self) -> usize
pub fn data_packet_size(&self) -> usize
Packet data length of data endpoint
pub fn code_flash_start(&self) -> u32
pub fn write_pack_size(&self) -> u32
Trait Implementations§
source§impl PartialEq for RiscvChip
impl PartialEq for RiscvChip
impl Copy for RiscvChip
impl Eq for RiscvChip
impl StructuralEq for RiscvChip
impl StructuralPartialEq for RiscvChip
Auto Trait Implementations§
impl RefUnwindSafe for RiscvChip
impl Send for RiscvChip
impl Sync for RiscvChip
impl Unpin for RiscvChip
impl UnwindSafe for RiscvChip
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