sftool-lib 0.1.7

SiFli SoC serial utility library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::ram_command::{Command, RamCommand};
use crate::SifliTool;

pub trait Reset {
    fn soft_reset(&mut self) -> Result<(), std::io::Error>;
}

impl Reset for SifliTool {
    fn soft_reset(&mut self) -> Result<(), std::io::Error> {
        self.command(Command::SoftReset)?;
        Ok(())
    }
}