dap_rs/
jtag.rs

1pub trait Jtag<DEPS>: From<DEPS> {
2    /// If JTAG is available or not.
3    const AVAILABLE: bool;
4
5    /// Handle a JTAG sequence request.
6    fn sequences(&mut self, data: &[u8], rxbuf: &mut [u8]) -> u32;
7
8    /// Set the maximum clock frequency, return `true` if it is valid.
9    fn set_clock(&mut self, max_frequency: u32) -> bool;
10
11    // TODO: What is missing for the 2 other JTAG commands
12}