Commit 8b124566 authored by John Robert Gill's avatar John Robert Gill

Fixed LEMO_DBG define values for the configuring the lemos via the API.

parent f7d5829f
......@@ -148,21 +148,20 @@ int libwr2rf_read_diag(struct libwr2rf_dev *dev, unsigned id,
#define LIBWR2RF_LEMO_TMGCLK2 6
/* Debug names */
#define LIBWR2RF_LEMO_DBG_NONE 0
#define LIBWR2RF_LEMO_DBG_NCO_RESET 1
#define LIBWR2RF_LEMO_DBG_RF1_NCO_RESET_CDELAYED 2
#define LIBWR2RF_LEMO_DBG_RF2_NCO_RESET_CDELAYED 3
#define LIBWR2RF_LEMO_DBG_RF1_FREV 4
#define LIBWR2RF_LEMO_DBG_RF1_FREV_MAIN 5
#define LIBWR2RF_LEMO_DBG_RF2_FREV 6
#define LIBWR2RF_LEMO_DBG_RF2_FREV_MAIN 7
#define LIBWR2RF_LEMO_DBG_WRS_RX_VALID 8
#define LIBWR2RF_LEMO_DBG_WRS_TX_VALID 9
#define LIBWR2RF_LEMO_DBG_WRS_GPIO1 10
#define LIBWR2RF_LEMO_DBG_WRS_GPIO2 11
#define LIBWR2RF_LEMO_DBG_WRS_RF_RST 12
#define LIBWR2RF_LEMO_DBG_WRS_SOFTSTOP 13
#define LIBWR2RF_LEMO_DBG_WRS_SOFTSTART 14
#define LIBWR2RF_LEMO_DBG_NCO_RESET 0
#define LIBWR2RF_LEMO_DBG_RF1_NCO_RESET_CDELAYED 1
#define LIBWR2RF_LEMO_DBG_RF2_NCO_RESET_CDELAYED 2
#define LIBWR2RF_LEMO_DBG_RF1_FREV 3
#define LIBWR2RF_LEMO_DBG_RF1_FREV_MAIN 4
#define LIBWR2RF_LEMO_DBG_RF2_FREV 5
#define LIBWR2RF_LEMO_DBG_RF2_FREV_MAIN 6
#define LIBWR2RF_LEMO_DBG_WRS_RX_VALID 7
#define LIBWR2RF_LEMO_DBG_WRS_TX_VALID 8
#define LIBWR2RF_LEMO_DBG_WRS_GPIO1 9
#define LIBWR2RF_LEMO_DBG_WRS_GPIO2 10
#define LIBWR2RF_LEMO_DBG_WRS_RF_RST 11
#define LIBWR2RF_LEMO_DBG_WRS_SOFTSTOP 12
#define LIBWR2RF_LEMO_DBG_WRS_SOFTSTART 13
/* LEMO front panel debug selection */
int libwr2rf_configure_lemo_debug(struct libwr2rf_dev *dev,
......
#!/bin/bash
sps_circ=6911
ba3ba4_arc=1318.9338
ftw=`echo "($ba3ba4_arc*(2^48))/$sps_circ" | bc -q`
ftw_hex=`echo "ibase=10; obase=16; $ftw" | bc -q`
echo "ftw=$ftw"
echo "ftw_hex=$ftw_hex"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment