]> code.octet-stream.net Git - m17rt/blobdiff - m17core/src/reflector/convert.rs
Implement TX for reflector TNC
[m17rt] / m17core / src / reflector / convert.rs
index 7ad54c375b588ffa202ce13a2806a33e4e242deb..fd52df87377908b2b3101f230c607c4c56346dbe 100644 (file)
@@ -7,6 +7,7 @@ use super::packet::Voice;
 /// Accepts `Voice` packets from a reflector and turns them into LSF and Stream frames.
 ///
 /// This is the format required for the voice data to cross the KISS protocol boundary.
+#[derive(Debug, Default)]
 pub struct VoiceToRf {
     /// Link Setup most recently acquired
     lsf: Option<LsfFrame>,
@@ -61,6 +62,7 @@ impl VoiceToRf {
 ///
 /// For a series of transmissions this object should be re-used so that Stream ID is correctly
 /// changed after each new LSF.
+#[derive(Debug, Clone)]
 pub struct RfToVoice {
     lsf: LsfFrame,
     stream_id: u16,