]> code.octet-stream.net Git - m17rt/blobdiff - m17app/src/link_setup.rs
RTLSDR input via rtl_fm
[m17rt] / m17app / src / link_setup.rs
index 007dc78fc3b2338cf6a9cd57734648c6d28856a5..2a701de676681aaefb4e6be74411affb18e432c1 100644 (file)
@@ -17,6 +17,14 @@ impl LinkSetup {
         Self { raw: frame }
     }
 
         Self { raw: frame }
     }
 
+    pub fn source(&self) -> M17Address {
+        M17Address(self.raw.source())
+    }
+
+    pub fn destination(&self) -> M17Address {
+        M17Address(self.raw.destination())
+    }
+
     /// Set up an unencrypted voice stream with channel access number 0 and the given source and destination.
     pub fn new_voice(source: &M17Address, destination: &M17Address) -> Self {
         Self {
     /// Set up an unencrypted voice stream with channel access number 0 and the given source and destination.
     pub fn new_voice(source: &M17Address, destination: &M17Address) -> Self {
         Self {