From a0f5d55cc100bcc42d1ff1a670e9995e20b7a630 Mon Sep 17 00:00:00 2001 From: Marco <49691247+marcoSchr@users.noreply.github.com> Date: Tue, 15 Aug 2023 18:54:08 +0200 Subject: [PATCH] Add M17 stream information to rtxStatus struct --- openrtx/include/rtx/rtx.h | 11 ++++++++--- openrtx/src/rtx/rtx.cpp | 5 +++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/openrtx/include/rtx/rtx.h b/openrtx/include/rtx/rtx.h index 60f37dab..35c0ce0a 100644 --- a/openrtx/include/rtx/rtx.h +++ b/openrtx/include/rtx/rtx.h @@ -55,9 +55,14 @@ typedef struct uint8_t can : 4, /**< M17 Channel Access Number */ _unused : 4; - char source_address[10]; /**< M17 call source address */ - char destination_address[10]; /**< M17 call routing address */ - bool invertRxPhase; /**< M17 RX phase inversion */ + char source_address[10]; /**< M17 call source address */ + char destination_address[10]; /**< M17 call routing address */ + bool invertRxPhase; /**< M17 RX phase inversion */ + bool lsfOk; /** M17 LSF is valid */ + char M17_dst[10]; /** M17 LSF destination */ + char M17_src[10]; /** M17 LSF source */ + char M17_orig[10]; /** M17 LSF traffic originator */ + char M17_refl[10]; /** M17 LSF reflector module */ } rtxStatus_t; diff --git a/openrtx/src/rtx/rtx.cpp b/openrtx/src/rtx/rtx.cpp index b5155a6c..44001cbd 100644 --- a/openrtx/src/rtx/rtx.cpp +++ b/openrtx/src/rtx/rtx.cpp @@ -59,6 +59,11 @@ void rtx_init(pthread_mutex_t *m) rtxStatus.txToneEn = 0; rtxStatus.txTone = 0; rtxStatus.invertRxPhase = false; + rtxStatus.lsfOk = false; + rtxStatus.M17_src[0] = '\0'; + rtxStatus.M17_dst[0] = '\0'; + rtxStatus.M17_orig[0] = '\0'; + rtxStatus.M17_refl[0] = '\0'; currMode = &noMode; /*