probe_rs::vendor

Trait Vendor

Source
pub trait Vendor:
    Send
    + Sync
    + Display {
    // Required method
    fn try_create_debug_sequence(&self, chip: &Chip) -> Option<DebugSequence>;

    // Provided methods
    fn try_detect_arm_chip(
        &self,
        _probe: &mut dyn ArmProbeInterface,
        _chip_info: ArmChipInfo,
    ) -> Result<Option<String>, Error> { ... }
    fn try_detect_riscv_chip(
        &self,
        _probe: &mut RiscvCommunicationInterface<'_>,
        _idcode: u32,
    ) -> Result<Option<String>, Error> { ... }
    fn try_detect_xtensa_chip(
        &self,
        _probe: &mut XtensaCommunicationInterface<'_>,
        _idcode: u32,
    ) -> Result<Option<String>, Error> { ... }
}
Expand description

Vendor support trait.

Required Methods§

Source

fn try_create_debug_sequence(&self, chip: &Chip) -> Option<DebugSequence>

Tries to create a debug sequence for the given chip.

Provided Methods§

Source

fn try_detect_arm_chip( &self, _probe: &mut dyn ArmProbeInterface, _chip_info: ArmChipInfo, ) -> Result<Option<String>, Error>

Tries to identify an ARM chip. Returns Some(target name) on success.

Source

fn try_detect_riscv_chip( &self, _probe: &mut RiscvCommunicationInterface<'_>, _idcode: u32, ) -> Result<Option<String>, Error>

Tries to identify an RISC-V chip. Returns Some(target name) on success.

Source

fn try_detect_xtensa_chip( &self, _probe: &mut XtensaCommunicationInterface<'_>, _idcode: u32, ) -> Result<Option<String>, Error>

Tries to identify an Xtensa chip. Returns Some(target name) on success.

Implementors§