diff --git a/satrs-core/src/mode.rs b/satrs-core/src/mode.rs index c07a030..3972a8b 100644 --- a/satrs-core/src/mode.rs +++ b/satrs-core/src/mode.rs @@ -50,6 +50,22 @@ impl ModeCommand { mode_submode, } } + + pub fn address(&self) -> TargetId { + self.address + } + + pub fn mode_submode(&self) -> ModeAndSubmode { + self.mode_submode + } + + pub fn get_mode(&self) -> u32 { + self.mode_submode.mode + } + + pub fn get_submode(&self) -> u16 { + self.mode_submode.submode + } } #[derive(Debug, Copy, Clone, PartialEq, Eq)]