This commit is contained in:
Mateusz Faderewski 2023-03-03 00:34:07 +01:00
parent e83c6feeb0
commit b648182586
2 changed files with 2 additions and 6 deletions

View File

@ -161,7 +161,7 @@ struct FirmwareArgs {
firmware: PathBuf, firmware: PathBuf,
} }
#[derive(Clone, Debug, ValueEnum)] #[derive(Clone, ValueEnum)]
enum SaveType { enum SaveType {
None, None,
Eeprom4k, Eeprom4k,
@ -197,7 +197,7 @@ impl From<SaveType> for sc64::SaveType {
} }
} }
#[derive(Clone, Debug, ValueEnum)] #[derive(Clone, ValueEnum)]
enum TvType { enum TvType {
PAL, PAL,
NTSC, NTSC,

View File

@ -1,27 +1,23 @@
use super::{error::Error, utils}; use super::{error::Error, utils};
use std::{collections::VecDeque, time::Duration}; use std::{collections::VecDeque, time::Duration};
#[derive(Clone, Debug)]
pub struct Device { pub struct Device {
pub sn: String, pub sn: String,
pub port: String, pub port: String,
} }
#[derive(Clone, Debug)]
pub struct Command { pub struct Command {
pub id: u8, pub id: u8,
pub args: [u32; 2], pub args: [u32; 2],
pub data: Vec<u8>, pub data: Vec<u8>,
} }
#[derive(Clone, Debug)]
pub struct Response { pub struct Response {
pub id: u8, pub id: u8,
pub data: Vec<u8>, pub data: Vec<u8>,
pub error: bool, pub error: bool,
} }
#[derive(Clone, Debug)]
pub struct Packet { pub struct Packet {
pub id: u8, pub id: u8,
pub data: Vec<u8>, pub data: Vec<u8>,