         ostime_t    time;
         ostime_t    txend;
         u4_t        freq;
+        u2_t        opmode;
+        u2_t        fcntDn;
+        u2_t        fcntUp;
         rps_t       rps;
-        u2_t        opmode;
         u1_t        txChnl;
         u1_t        datarate;
         u1_t        txrxFlags;

#include <arduino_lmic_lorawan_compliance.h>

#include <SPI.h>

//
// For compliance tests with the RWC5020A, we use the default addresses

    if (v < 16)
        Serial.print('0');
    Serial.print(v, HEX);
}

void printHex4(unsigned v) {
    printHex2(v >> 8u);
    printHex2(v);
}

void printFreq(u4_t freq) {
