Trait probe_rs::architecture::riscv::sequences::RiscvDebugSequence
source · 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§
sourcefn on_connect(
&self,
_interface: &mut RiscvCommunicationInterface
) -> Result<(), Error>
fn on_connect( &self, _interface: &mut RiscvCommunicationInterface ) -> Result<(), Error>
Executed when the probe establishes a connection to the target.
sourcefn detect_flash_size(
&self,
_interface: &mut RiscvCommunicationInterface
) -> Result<Option<usize>, Error>
fn detect_flash_size( &self, _interface: &mut RiscvCommunicationInterface ) -> Result<Option<usize>, Error>
Detects the flash size of the target.