pub trait RiscvDebugSequence: Send + Sync + Debug {
    // Provided methods
    fn on_connect(
        &self,
        _interface: &mut RiscvCommunicationInterface
    ) -> Result<(), Error> { ... }
    fn detect_flash_size(
        &self,
        _interface: &mut RiscvCommunicationInterface
    ) -> Result<Option<usize>, Error> { ... }
}
Expand description

A interface to operate debug sequences for RISC-V targets.

Should be implemented on a custom handle for chips that require special sequence code.

Provided Methods§

source

fn on_connect( &self, _interface: &mut RiscvCommunicationInterface ) -> Result<(), Error>

Executed when the probe establishes a connection to the target.

source

fn detect_flash_size( &self, _interface: &mut RiscvCommunicationInterface ) -> Result<Option<usize>, Error>

Detects the flash size of the target.

Implementors§