1use crate::ram_command::{Command, RamCommand};
2use crate::SifliTool;
3
4pub trait Reset {
5 fn soft_reset(&mut self) -> Result<(), std::io::Error>;
6}
7
8impl Reset for SifliTool {
9 fn soft_reset(&mut self) -> Result<(), std::io::Error> {
10 self.command(Command::SoftReset)?;
11 Ok(())
12 }
13}