pub fn openocd_swo(
        &self,
        config: &Config,
        ports: &BTreeSet<u32>,
        reset: bool,
        pipe: &Path,
        output: Option<&Path>,
    ) -> Result<NamedTempFile> {
        let data = json!({
            "config": config,
            "ports": ports,
            "reset": reset,
            "pipe": pipe,
            "output": output,
        });
        helpers::clear_vars();
        named_temp_file(|file| self.0.render_to_write("openocd/swo.gdb", &data, file))
    }
/// Renders OpenOCD `swo` command script.
Renders OpenOCD `swo` command script.
Renders OpenOCD ` swo ` command script .
pub fn openocd_swo(
        &self,
        config: &Config,
        ports: &BTreeSet<u32>,
        reset: bool,
        pipe: &Path,
        output: Option<&Path>,
    ) -> Result<NamedTempFile> {
        let data = json!({
            "config": config,
            "ports": ports,
            "reset": reset,
            "pipe": pipe,
            "output": output,
        });
        helpers::clear_vars();
        named_temp_file(|file| self.0.render_to_write("openocd/swo.gdb", &data, file))
    }
pub fn openocd_swo ( & self , config : & Config , ports : & BTreeSet < u32 > , reset : bool , pipe : & Path , output : Option < & Path > , ) -> Result < NamedTempFile > { let data = json ! ( { " " config " " ports " " reset " " pipe " " output } ) ; helpers :: clear_vars ( ) ; named_temp_file ( | file | self . 0 . render_to_write ( " " , & data , file ) ) }
Renders OpenOCD `swo` command script.
Renders OpenOCD ` swo ` command script .
&self
config
&Config
ports
&BTreeSet<u32>
reset
bool
pipe
&Path
output
Option<&Path>
&self
config
&Config
ports
&BTreeSet<u32>
reset
bool
pipe
&Path
output
Option<&Path>