Giter VIP home page Giter VIP logo

Comments (4)

jynik avatar jynik commented on August 15, 2024

The following lmsregs body was provided on IRC, autogenerated from the LMS documentation

    lms_spi_read(dev,0x00,&value);
    printf("Register : 0x00 = 0x%.2x\n",value);
    printf("\t 7-6 \t %d \t Not used\n", GetBits(value, 7, 6));
    printf("\t 5-0 \t %d \t DC_REGVAL[5:0]\n", GetBits(value, 5, 0));
    printf("\n");

    lms_spi_read(dev,0x01,&value);
    printf("Register : 0x01 = 0x%.2x\n",value);
    printf("\t 7-5 \t %d \t RCCAL_LPFCAL[2:0]\n", GetBits(value, 7, 5));
    printf("\t 4-2 \t %d \t DC_LOCK[2:0]\n", GetBits(value, 4, 2));
    printf("\t 1 \t %d \t DC_CLBR_DONE\n", GetBits(value, 1, 1));
    printf("\t 0 \t %d \t DC_UD\n", GetBits(value, 0, 0));
    printf("\n");

    lms_spi_read(dev,0x02,&value);
    printf("Register : 0x02 = 0x%.2x\n",value);
    printf("\t 7-6 \t %d \t Not used\n", GetBits(value, 7, 6));
    printf("\t 5-0 \t %d \t DC_CNTVAL[5:0]\n", GetBits(value, 5, 0));
    printf("\n");

    lms_spi_read(dev,0x03,&value);
    printf("Register : 0x03 = 0x%.2x\n",value);
    printf("\t 7-6 \t %d \t Not used\n", GetBits(value, 7, 6));
    printf("\t 5 \t %d \t DC_START_CLBR\n", GetBits(value, 5, 5));
    printf("\t 4 \t %d \t DC_LOAD\n", GetBits(value, 4, 4));
    printf("\t 3 \t %d \t DC_SRESET\n", GetBits(value, 3, 3));
    printf("\t 2-0 \t %d \t DC_ADDR[2:0]\n", GetBits(value, 2, 0));
    printf("\n");

    lms_spi_read(dev,0x04,&value);
    printf("Register : 0x04 = 0x%.2x\n",value);
    printf("\t 7-4 \t %d \t VER[3:0]\n", GetBits(value, 7, 4));
    printf("\t 3-0 \t %d \t REV[3:0]\n", GetBits(value, 3, 0));
    printf("\n");

    lms_spi_read(dev,0x05,&value);
    printf("Register : 0x05 = 0x%.2x\n",value);
    printf("\t 7 \t %d \t DECODE\n", GetBits(value, 7, 7));
    printf("\t 6 \t %d \t Not used\n", GetBits(value, 6, 6));
    printf("\t 5 \t %d \t SRESET\n", GetBits(value, 5, 5));
    printf("\t 4 \t %d \t EN\n", GetBits(value, 4, 4));
    printf("\t 3 \t %d \t STXEN\n", GetBits(value, 3, 3));
    printf("\t 2 \t %d \t SRXEN\n", GetBits(value, 2, 2));
    printf("\t 1 \t %d \t TFWMODE\n", GetBits(value, 1, 1));
    printf("\t 0 \t %d \t Not used\n", GetBits(value, 0, 0));
    printf("\n");

    lms_spi_read(dev,0x06,&value);
    printf("Register : 0x06 = 0x%.2x\n",value);
    printf("\t 7-4 \t %d \t Not used\n", GetBits(value, 7, 4));
    printf("\t 3 \t %d \t CLKSEL_LPFCAL\n", GetBits(value, 3, 3));
    printf("\t 2 \t %d \t PD_CLKLPFCAL\n", GetBits(value, 2, 2));
    printf("\t 1 \t %d \t ENF_EN_CAL_LPFCAL\n", GetBits(value, 1, 1));
    printf("\t 0 \t %d \t RST_CAL_LPFCAL\n", GetBits(value, 0, 0));
    printf("\n");

    lms_spi_read(dev,0x07,&value);
    printf("Register : 0x07 = 0x%.2x\n",value);
    printf("\t 7 \t %d \t EN_CAL_LPFCAL\n", GetBits(value, 7, 7));
    printf("\t 6-4 \t %d \t FORCE_CODE_CAL_LPFCAL[2:0]\n", GetBits(value, 6, 4));
    printf("\t 3-0 \t %d \t BWC_LPFCAL[3:0]\n", GetBits(value, 3, 0));
    printf("\n");

    lms_spi_read(dev,0x08,&value);
    printf("Register : 0x08 = 0x%.2x\n",value);
    printf("\t 7 \t %d \t LBEN_LPFIN\n", GetBits(value, 7, 7));
    printf("\t 6 \t %d \t LBEN_VGA2IN\n", GetBits(value, 6, 6));
    printf("\t 5 \t %d \t LBEN_OPIN\n", GetBits(value, 5, 5));
    printf("\t 4 \t %d \t LBRFEN[3:0]\n", GetBits(value, 4, 4));
    printf("\t 3-0 \t %d \t Default\n", GetBits(value, 3, 0));
    printf("\n");

    lms_spi_read(dev,0x09,&value);
    printf("Register : 0x09 = 0x%.2x\n",value);
    printf("\t 7 \t %d \t RXOUTSW\n", GetBits(value, 7, 7));
    printf("\t 6-0 \t %d \t CLK_EN[6:0]\n", GetBits(value, 6, 0));
    printf("\t 6 \t %d \t CLK_EN\n", GetBits(value, 6, 6));
    printf("\t 5 \t %d \t CLK_EN\n", GetBits(value, 5, 5));
    printf("\t 4 \t %d \t CLK_EN\n", GetBits(value, 4, 4));
    printf("\t 3 \t %d \t CLK_EN\n", GetBits(value, 3, 3));
    printf("\t 2 \t %d \t CLK_EN\n", GetBits(value, 2, 2));
    printf("\t 1 \t %d \t CLK_EN\n", GetBits(value, 1, 1));
    printf("\t 0 \t %d \t CLK_EN\n", GetBits(value, 0, 0));
    printf("\n");

    lms_spi_read(dev,0x0A,&value);
    printf("Register : 0x0A = 0x%.2x\n",value);
    printf("\t 7-2 \t %d \t Not used\n", GetBits(value, 7, 2));
    printf("\t 1 \t %d \t FDDTDD\n", GetBits(value, 1, 1));
    printf("\t 0 \t %d \t TDDMOD\n", GetBits(value, 0, 0));
    printf("\n");

    lms_spi_read(dev,0x0B,&value);
    printf("Register : 0x0B = 0x%.2x\n",value);
    printf("\t 7-5 \t %d \t Not used\n", GetBits(value, 7, 5));
    printf("\t 4 \t %d \t PDXCOBUF\n", GetBits(value, 4, 4));
    printf("\t 3 \t %d \t SLFBXCOBUF\n", GetBits(value, 3, 3));
    printf("\t 2 \t %d \t BYPXCOBUF\n", GetBits(value, 2, 2));
    printf("\t 1-0 \t %d \t PD[1:0]\n", GetBits(value, 1, 0));
    printf("\n");

    lms_spi_read(dev,0x0E,&value);
    printf("Register : 0x0E = 0x%.2x\n",value);
    printf("\t 5-0 \t %d \t SPARE0[7:0]\n", GetBits(value, 5, 0));
    printf("\n");

    lms_spi_read(dev,0x0F,&value);
    printf("Register : 0x0F = 0x%.2x\n",value);
    printf("\t 7-0 \t %d \t SPARE0[7:0]\n", GetBits(value, 7, 0));
    printf("\n");

    lms_spi_read(dev,0x30,&value);
    printf("Register : 0x30 = 0x%.2x\n",value);
    printf("\t 7-6 \t %d \t Not used\n", GetBits(value, 7, 6));
    printf("\t 5-0 \t %d \t DC_REGVAL[5:0]\n", GetBits(value, 5, 0));
    printf("\n");

    lms_spi_read(dev,0x31,&value);
    printf("Register : 0x31 = 0x%.2x\n",value);
    printf("\t 7-5 \t %d \t Not used\n", GetBits(value, 7, 5));
    printf("\t 4-2 \t %d \t DC_LOCK[2:0]\n", GetBits(value, 4, 2));
    printf("\t 1 \t %d \t DC_CLBR_DONE\n", GetBits(value, 1, 1));
    printf("\t 0 \t %d \t DC_UD\n", GetBits(value, 0, 0));
    printf("\n");

    lms_spi_read(dev,0x32,&value);
    printf("Register : 0x32 = 0x%.2x\n",value);
    printf("\t 7-6 \t %d \t Not used\n", GetBits(value, 7, 6));
    printf("\t 5-0 \t %d \t DC_CNTVAL[5:0]\n", GetBits(value, 5, 0));
    printf("\n");

    lms_spi_read(dev,0x33,&value);
    printf("Register : 0x33 = 0x%.2x\n",value);
    printf("\t 7-6 \t %d \t Not used\n", GetBits(value, 7, 6));
    printf("\t 5 \t %d \t DC_START_CLBR\n", GetBits(value, 5, 5));
    printf("\t 4 \t %d \t DC_LOAD\n", GetBits(value, 4, 4));
    printf("\t 3 \t %d \t DC_SRESET\n", GetBits(value, 3, 3));
    printf("\t 2-0 \t %d \t DC_ADDR[2:0]\n", GetBits(value, 2, 0));
    printf("\n");

    lms_spi_read(dev,0x34,&value);
    printf("Register : 0x34 = 0x%.2x\n",value);
    printf("\t 7-6 \t %d \t Not used\n", GetBits(value, 7, 6));
    printf("\t 5-2 \t %d \t BWC_LPF[3:0]\n", GetBits(value, 5, 2));
    printf("\t 1 \t %d \t EN\n", GetBits(value, 1, 1));
    printf("\t 0 \t %d \t DECODE\n", GetBits(value, 0, 0));
    printf("\n");

    lms_spi_read(dev,0x35,&value);
    printf("Register : 0x35 = 0x%.2x\n",value);
    printf("\t 7 \t %d \t not used\n", GetBits(value, 7, 7));
    printf("\t 6 \t %d \t BYP_EN_LPF\n", GetBits(value, 6, 6));
    printf("\t 5-0 \t %d \t DCO_DACCAL[5:0]\n", GetBits(value, 5, 0));
    printf("\n");

    lms_spi_read(dev,0x36,&value);
    printf("Register : 0x36 = 0x%.2x\n",value);
    printf("\t 7 \t %d \t TX_DACBUF_PD\n", GetBits(value, 7, 7));
    printf("\t 6-4 \t %d \t RCCAL_LPF[2:0]\n", GetBits(value, 6, 4));
    printf("\t 3 \t %d \t PD_DCOCMP_LPF\n", GetBits(value, 3, 3));
    printf("\t 2 \t %d \t PD_DCODAC_LPF\n", GetBits(value, 2, 2));
    printf("\t 1 \t %d \t PD_DCOREF_LPF\n", GetBits(value, 1, 1));
    printf("\t 0 \t %d \t PD_FIL_LPF\n", GetBits(value, 0, 0));
    printf("\n");

    lms_spi_read(dev,0x3E,&value);
    printf("Register : 0x3E = 0x%.2x\n",value);
    printf("\t 7-0 \t %d \t SPARE0[7:0]\n", GetBits(value, 7, 0));
    printf("\n");

    lms_spi_read(dev,0x3F,&value);
    printf("Register : 0x3F = 0x%.2x\n",value);
    printf("\t 7-0 \t %d \t SPARE1[7:0]\n", GetBits(value, 7, 0));
    printf("\n");

    lms_spi_read(dev,0x40,&value);
    printf("Register : 0x40 = 0x%.2x\n",value);
    printf("\t 7-2 \t %d \t Not used\n", GetBits(value, 7, 2));
    printf("\t 1 \t %d \t EN\n", GetBits(value, 1, 1));
    printf("\t 0 \t %d \t DECODE\n", GetBits(value, 0, 0));
    printf("\n");

    lms_spi_read(dev,0x41,&value);
    printf("Register : 0x41 = 0x%.2x\n",value);
    printf("\t 7-5 \t %d \t Not used\n", GetBits(value, 7, 5));
    printf("\t 4-0 \t %d \t VGA1GAIN[4:0]\n", GetBits(value, 4, 0));
    printf("\n");

    lms_spi_read(dev,0x42,&value);
    printf("Register : 0x42 = 0x%.2x\n",value);
    printf("\t 7-0 \t %d \t VGA1DC_I[7:0]\n", GetBits(value, 7, 0));
    printf("\n");

    lms_spi_read(dev,0x43,&value);
    printf("Register : 0x43 = 0x%.2x\n",value);
    printf("\t 7-0 \t %d \t VGA1DC_Q[7:0]\n", GetBits(value, 7, 0));
    printf("\n");

    lms_spi_read(dev,0x44,&value);
    printf("Register : 0x44 = 0x%.2x\n",value);
    printf("\t 7-5 \t %d \t Not used\n", GetBits(value, 7, 5));
    printf("\t 4-2 \t %d \t PA_EN[2:0]\n", GetBits(value, 4, 2));
    printf("\t 1 \t %d \t PA_EN[2:1]\n", GetBits(value, 1, 1));
    printf("\t 0 \t %d \t PA_EN[0]\n", GetBits(value, 0, 0));
    printf("\n");

    lms_spi_read(dev,0x45,&value);
    printf("Register : 0x45 = 0x%.2x\n",value);
    printf("\t 7-3 \t %d \t VGA2GAIN[4:0]\n", GetBits(value, 7, 3));
    printf("\t 2-0 \t %d \t LSB=1dB,\n", GetBits(value, 2, 0));
    printf("\n");

    lms_spi_read(dev,0x46,&value);
    printf("Register : 0x46 = 0x%.2x\n",value);
    printf("\t 7-4 \t %d \t PKDBW[3:0]\n", GetBits(value, 7, 4));
    printf("\t 3-2 \t %d \t LOOPBBEN[1:0]\n", GetBits(value, 3, 2));
    printf("\t 1 \t %d \t FST_PKDET\n", GetBits(value, 1, 1));
    printf("\t 0 \t %d \t FST_TXHFBIAS\n", GetBits(value, 0, 0));
    printf("\n");

    lms_spi_read(dev,0x47,&value);
    printf("Register : 0x47 = 0x%.2x\n",value);
    printf("\t 7-4 \t %d \t ICT_TXLOBUF[3:0]\n", GetBits(value, 7, 4));
    printf("\t 3-0 \t %d \t VBCAS_TXDRV[3:0]\n", GetBits(value, 3, 0));
    printf("\n");

    lms_spi_read(dev,0x48,&value);
    printf("Register : 0x48 = 0x%.2x\n",value);
    printf("\t 7-5 \t %d \t Not used\n", GetBits(value, 7, 5));
    printf("\t 4-0 \t %d \t ICT_TXMIX[4:0]\n", GetBits(value, 4, 0));
    printf("\n");

    lms_spi_read(dev,0x49,&value);
    printf("Register : 0x49 = 0x%.2x\n",value);
    printf("\t 7-5 \t %d \t Not used\n", GetBits(value, 7, 5));
    printf("\t 4-0 \t %d \t ICT_TXDRV[4:0]\n", GetBits(value, 4, 0));
    printf("\n");

    lms_spi_read(dev,0x4A,&value);
    printf("Register : 0x4A = 0x%.2x\n",value);
    printf("\t 7-5 \t %d \t Not used\n", GetBits(value, 7, 5));
    printf("\t 4 \t %d \t PW_VGA1_I\n", GetBits(value, 4, 4));
    printf("\t 3 \t %d \t PW_VGA1_Q\n", GetBits(value, 3, 3));
    printf("\t 2 \t %d \t PD_TXDRV\n", GetBits(value, 2, 2));
    printf("\t 1 \t %d \t PD_TXLOBUF\n", GetBits(value, 1, 1));
    printf("\t 0 \t %d \t PD_TXMIX\n", GetBits(value, 0, 0));
    printf("\n");

    lms_spi_read(dev,0x4B,&value);
    printf("Register : 0x4B = 0x%.2x\n",value);
    printf("\t 7-0 \t %d \t VGA1GAINT[7:0]\n", GetBits(value, 7, 0));
    printf("\n");

    lms_spi_read(dev,0x4C,&value);
    printf("Register : 0x4C = 0x%.2x\n",value);
    printf("\t 7-0 \t %d \t G_TXVGA2[8:1]\n", GetBits(value, 7, 0));
    printf("\n");

    lms_spi_read(dev,0x4D,&value);
    printf("Register : 0x4D = 0x%.2x\n",value);
    printf("\t 7 \t %d \t G_TXVGA2[0]\n", GetBits(value, 7, 7));
    printf("\t 6-0 \t %d \t Not used\n", GetBits(value, 6, 0));
    printf("\n");

    lms_spi_read(dev,0x4E,&value);
    printf("Register : 0x4E = 0x%.2x\n",value);
    printf("\t 7-0 \t %d \t SPARE0[7:0]\n", GetBits(value, 7, 0));
    printf("\n");

    lms_spi_read(dev,0x4F,&value);
    printf("Register : 0x4F = 0x%.2x\n",value);
    printf("\t 7-0 \t %d \t SPARE1[7:0]\n", GetBits(value, 7, 0));
    printf("\n");

    lms_spi_read(dev,0x50,&value);
    printf("Register : 0x50 = 0x%.2x\n",value);
    printf("\t 7-6 \t %d \t Not used\n", GetBits(value, 7, 6));
    printf("\t 5-0 \t %d \t DC_REGVAL[5:0]\n", GetBits(value, 5, 0));
    printf("\n");

    lms_spi_read(dev,0x51,&value);
    printf("Register : 0x51 = 0x%.2x\n",value);
    printf("\t 7-5 \t %d \t Not used\n", GetBits(value, 7, 5));
    printf("\t 4-2 \t %d \t DC_LOCK[2:0]\n", GetBits(value, 4, 2));
    printf("\t 1 \t %d \t DC_CLBR_DONE\n", GetBits(value, 1, 1));
    printf("\t 0 \t %d \t DC_UD\n", GetBits(value, 0, 0));
    printf("\n");

    lms_spi_read(dev,0x52,&value);
    printf("Register : 0x52 = 0x%.2x\n",value);
    printf("\t 7-6 \t %d \t Not used\n", GetBits(value, 7, 6));
    printf("\t 5-0 \t %d \t DC_CNTVAL[5:0]\n", GetBits(value, 5, 0));
    printf("\n");

    lms_spi_read(dev,0x53,&value);
    printf("Register : 0x53 = 0x%.2x\n",value);
    printf("\t 7-6 \t %d \t Not used\n", GetBits(value, 7, 6));
    printf("\t 5 \t %d \t DC_START_CLBR\n", GetBits(value, 5, 5));
    printf("\t 4 \t %d \t DC_LOAD\n", GetBits(value, 4, 4));
    printf("\t 3 \t %d \t DC_SRESET\n", GetBits(value, 3, 3));
    printf("\t 2-0 \t %d \t DC_ADDR[3:0]\n", GetBits(value, 2, 0));
    printf("\n");

    lms_spi_read(dev,0x54,&value);
    printf("Register : 0x54 = 0x%.2x\n",value);
    printf("\t 7-6 \t %d \t BWC_LPF[3:0]\n", GetBits(value, 7, 6));
    printf("\t 5-2 \t %d \t EN_LPF\n", GetBits(value, 5, 2));
    printf("\t 1 \t %d \t DECODE\n", GetBits(value, 1, 1));
    printf("\t 0 \t %d \t Default\n", GetBits(value, 0, 0));
    printf("\n");

    lms_spi_read(dev,0x55,&value);
    printf("Register : 0x55 = 0x%.2x\n",value);
    printf("\t 7 \t %d \t BYP_EN_LPF\n", GetBits(value, 7, 7));
    printf("\t 6 \t %d \t DCO_DACCAL[5:0]\n", GetBits(value, 6, 6));
    printf("\t 5-0 \t %d \t Default\n", GetBits(value, 5, 0));
    printf("\n");

    lms_spi_read(dev,0x56,&value);
    printf("Register : 0x56 = 0x%.2x\n",value);
    printf("\t 7 \t %d \t RCCAL_LPF[2:0]\n", GetBits(value, 7, 7));
    printf("\t 6-4 \t %d \t PD_DCOCMP_LPF\n", GetBits(value, 6, 4));
    printf("\t 3 \t %d \t PD_DCODAC_LPF\n", GetBits(value, 3, 3));
    printf("\t 2 \t %d \t PD_DCOREF_LPF\n", GetBits(value, 2, 2));
    printf("\t 1 \t %d \t PD_FIL_LPF\n", GetBits(value, 1, 1));
    printf("\t 0 \t %d \t Default\n", GetBits(value, 0, 0));
    printf("\n");

    lms_spi_read(dev,0x57,&value);
    printf("Register : 0x57 = 0x%.2x\n",value);
    printf("\t 7 \t %d \t EN_ADC_DAC\n", GetBits(value, 7, 7));
    printf("\t 6 \t %d \t DECODE\n", GetBits(value, 6, 6));
    printf("\t 5-3 \t %d \t 1\n", GetBits(value, 5, 3));
    printf("\t 2 \t %d \t TX_CTRL1[6:4].\n", GetBits(value, 2, 2));
    printf("\t 1-0 \t %d \t TX_CTRL1[3].\n", GetBits(value, 1, 0));
    printf("\n");

    lms_spi_read(dev,0x58,&value);
    printf("Register : 0x58 = 0x%.2x\n",value);
    printf("\t 7-6 \t %d \t RX_CTRL1[7:6].\n", GetBits(value, 7, 6));
    printf("\t 5-4 \t %d \t RX_CTRL1[5:4].\n", GetBits(value, 5, 4));
    printf("\t 3-0 \t %d \t RX_CTRL1[3:0].\n", GetBits(value, 3, 0));
    printf("\n");

    lms_spi_read(dev,0x59,&value);
    printf("Register : 0x59 = 0x%.2x\n",value);
    printf("\t 7 \t %d \t RX_CTRL2[7:6].\n", GetBits(value, 7, 7));
    printf("\t 6-5 \t %d \t RX_CTRL2[5:4].\n", GetBits(value, 6, 5));
    printf("\t 4-3 \t %d \t RX_CTRL2[3:2].\n", GetBits(value, 4, 3));
    printf("\t 2-1 \t %d \t RX_CTRL2[0].\n", GetBits(value, 2, 1));
    printf("\t 0 \t %d \t Default\n", GetBits(value, 0, 0));
    printf("\n");

    lms_spi_read(dev,0x5A,&value);
    printf("Register : 0x5A = 0x%.2x\n",value);
    printf("\t 7 \t %d \t MISC_CTRL[9].\n", GetBits(value, 7, 7));
    printf("\t 6 \t %d \t MISC_CTRL[8].\n", GetBits(value, 6, 6));
    printf("\t 5 \t %d \t MISC_CTRL[7].\n", GetBits(value, 5, 5));
    printf("\t 4 \t %d \t MISC_CTRL[6].\n", GetBits(value, 4, 4));
    printf("\t 3 \t %d \t MISC_CTRL[5].\n", GetBits(value, 3, 3));
    printf("\t 2 \t %d \t RX_CTRL3[7].\n", GetBits(value, 2, 2));
    printf("\t 1-0 \t %d \t RX_CTRL3[1:0].\n", GetBits(value, 1, 0));
    printf("\n");

    lms_spi_read(dev,0x5B,&value);
    printf("Register : 0x5B = 0x%.2x\n",value);
    printf("\t 7-6 \t %d \t RX_CTRL4[7:6]\n", GetBits(value, 7, 6));
    printf("\t 5-4 \t %d \t RX_CTRL4[5:4].\n", GetBits(value, 5, 4));
    printf("\t 3-2 \t %d \t RX_CTRL4[3:2].\n", GetBits(value, 3, 2));
    printf("\t 1-0 \t %d \t RX_CTRL4[1:0].\n", GetBits(value, 1, 0));
    printf("\n");

    lms_spi_read(dev,0x5C,&value);
    printf("Register : 0x5C = 0x%.2x\n",value);
    printf("\t 7-6 \t %d \t RX_CTRL5[7:6]\n", GetBits(value, 7, 6));
    printf("\t 5-4 \t %d \t RX_CTRL5[5:4].\n", GetBits(value, 5, 4));
    printf("\t 3-2 \t %d \t RX_CTRL5[3:2].\n", GetBits(value, 3, 2));
    printf("\t 1-0 \t %d \t RX_CTRL5[1:0].\n", GetBits(value, 1, 0));
    printf("\n");

    lms_spi_read(dev,0x5D,&value);
    printf("Register : 0x5D = 0x%.2x\n",value);
    printf("\t 7-4 \t %d \t REF_CTRL0[7:4]\n", GetBits(value, 7, 4));
    printf("\t 3-0 \t %d \t REF_CTRL0[3:0]\n", GetBits(value, 3, 0));
    printf("\n");

    lms_spi_read(dev,0x5E,&value);
    printf("Register : 0x5E = 0x%.2x\n",value);
    printf("\t 7-6 \t %d \t REF_CTRL1[7:6]\n", GetBits(value, 7, 6));
    printf("\t 5-4 \t %d \t REF_CTRL1[5:4]\n", GetBits(value, 5, 4));
    printf("\t 3-0 \t %d \t REF_CTRL1[3:0]\n", GetBits(value, 3, 0));
    printf("\n");

    lms_spi_read(dev,0x5F,&value);
    printf("Register : 0x5F = 0x%.2x\n",value);
    printf("\t 7-5 \t %d \t SPARE00[7:5]\n", GetBits(value, 7, 5));
    printf("\t 4 \t %d \t MISC_CTRL[4].\n", GetBits(value, 4, 4));
    printf("\t 3 \t %d \t MISC_CTRL[3].\n", GetBits(value, 3, 3));
    printf("\t 2 \t %d \t MISC_CTRL[2].\n", GetBits(value, 2, 2));
    printf("\t 1 \t %d \t MISC_CTRL[1].\n", GetBits(value, 1, 1));
    printf("\t 0 \t %d \t MISC_CTRL[0].\n", GetBits(value, 0, 0));
    printf("\n");

    lms_spi_read(dev,0x60,&value);
    printf("Register : 0x60 = 0x%.2x\n",value);
    printf("\t 7-6 \t %d \t Not used\n", GetBits(value, 7, 6));
    printf("\t 5-0 \t %d \t DC_REGVAL[5:0]\n", GetBits(value, 5, 0));
    printf("\n");

    lms_spi_read(dev,0x61,&value);
    printf("Register : 0x61 = 0x%.2x\n",value);
    printf("\t 7-5 \t %d \t Not used\n", GetBits(value, 7, 5));
    printf("\t 4-2 \t %d \t DC_LOCK[2:0]\n", GetBits(value, 4, 2));
    printf("\t 1 \t %d \t DC_CLBR_DONE\n", GetBits(value, 1, 1));
    printf("\t 0 \t %d \t DC_UD\n", GetBits(value, 0, 0));
    printf("\n");

    lms_spi_read(dev,0x62,&value);
    printf("Register : 0x62 = 0x%.2x\n",value);
    printf("\t 7-6 \t %d \t Not used\n", GetBits(value, 7, 6));
    printf("\t 5-0 \t %d \t DC_CNTVAL[5:0]\n", GetBits(value, 5, 0));
    printf("\n");

    lms_spi_read(dev,0x63,&value);
    printf("Register : 0x63 = 0x%.2x\n",value);
    printf("\t 7-6 \t %d \t Not used\n", GetBits(value, 7, 6));
    printf("\t 5 \t %d \t DC_START_CLBR\n", GetBits(value, 5, 5));
    printf("\t 4 \t %d \t DC_LOAD\n", GetBits(value, 4, 4));
    printf("\t 3 \t %d \t DC_SRESET\n", GetBits(value, 3, 3));
    printf("\t 2-0 \t %d \t DC_ADDR[3:0]\n", GetBits(value, 2, 0));
    printf("\n");

    lms_spi_read(dev,0x64,&value);
    printf("Register : 0x64 = 0x%.2x\n",value);
    printf("\t 7-6 \t %d \t Not used\n", GetBits(value, 7, 6));
    printf("\t 5-2 \t %d \t VCM[3:0]\n", GetBits(value, 5, 2));
    printf("\t 1 \t %d \t VCM[3]\n", GetBits(value, 1, 1));
    printf("\t 0 \t %d \t EN\n", GetBits(value, 0, 0));
    printf("\n");

    lms_spi_read(dev,0x65,&value);
    printf("Register : 0x65 = 0x%.2x\n",value);
    printf("\t 7-5 \t %d \t not used\n", GetBits(value, 7, 5));
    printf("\t 4-0 \t %d \t VGA2GAIN[4:0]\n", GetBits(value, 4, 0));
    printf("\n");

    lms_spi_read(dev,0x66,&value);
    printf("Register : 0x66 = 0x%.2x\n",value);
    printf("\t 7-6 \t %d \t not used\n", GetBits(value, 7, 6));
    printf("\t 5 \t %d \t PD[9]\n", GetBits(value, 5, 5));
    printf("\t 4 \t %d \t PD[8]\n", GetBits(value, 4, 4));
    printf("\t 3 \t %d \t PD[7]\n", GetBits(value, 3, 3));
    printf("\t 2 \t %d \t PD[6]\n", GetBits(value, 2, 2));
    printf("\t 1 \t %d \t PD[5]\n", GetBits(value, 1, 1));
    printf("\t 0 \t %d \t PD[4]\n", GetBits(value, 0, 0));
    printf("\n");

    lms_spi_read(dev,0x67,&value);
    printf("Register : 0x67 = 0x%.2x\n",value);
    printf("\t 7-4 \t %d \t not used\n", GetBits(value, 7, 4));
    printf("\t 3 \t %d \t PD[3]\n", GetBits(value, 3, 3));
    printf("\t 2 \t %d \t PD[2]\n", GetBits(value, 2, 2));
    printf("\t 1 \t %d \t PD[1]\n", GetBits(value, 1, 1));
    printf("\t 0 \t %d \t PD[0]\n", GetBits(value, 0, 0));
    printf("\n");

    lms_spi_read(dev,0x68,&value);
    printf("Register : 0x68 = 0x%.2x\n",value);
    printf("\t 7-4 \t %d \t VGA2GAINB\n", GetBits(value, 7, 4));
    printf("\t 3-0 \t %d \t LSB=3dB,\n", GetBits(value, 3, 0));
    printf("\n");

    lms_spi_read(dev,0x6E,&value);
    printf("Register : 0x6E = 0x%.2x\n",value);
    printf("\t 7-0 \t %d \t SPARE0[7:0]\n", GetBits(value, 7, 0));
    printf("\n");

    lms_spi_read(dev,0x6F,&value);
    printf("Register : 0x6F = 0x%.2x\n",value);
    printf("\t 7-0 \t %d \t SPARE1[7:0]\n", GetBits(value, 7, 0));
    printf("\n");

    lms_spi_read(dev,0x70,&value);
    printf("Register : 0x70 = 0x%.2x\n",value);
    printf("\t 7-2 \t %d \t not used\n", GetBits(value, 7, 2));
    printf("\t 1 \t %d \t DECODE\n", GetBits(value, 1, 1));
    printf("\t 0 \t %d \t EN\n", GetBits(value, 0, 0));
    printf("\n");

    lms_spi_read(dev,0x71,&value);
    printf("Register : 0x71 = 0x%.2x\n",value);
    printf("\t 7 \t %d \t IN1SEL_MIX_RXFE\n", GetBits(value, 7, 7));
    printf("\t 6-0 \t %d \t DCOFF_I_RXFE[6:0]\n", GetBits(value, 6, 0));
    printf("\n");

    lms_spi_read(dev,0x72,&value);
    printf("Register : 0x72 = 0x%.2x\n",value);
    printf("\t 7 \t %d \t INLOAD_LNA_RXFE\n", GetBits(value, 7, 7));
    printf("\t 6-0 \t %d \t DCOFF_Q_RXFE[6:0]\n", GetBits(value, 6, 0));
    printf("\n");

    lms_spi_read(dev,0x73,&value);
    printf("Register : 0x73 = 0x%.2x\n",value);
    printf("\t 7 \t %d \t XLOAD_LNA_RXFE\n", GetBits(value, 7, 7));
    printf("\t 6-0 \t %d \t IP2TRIM_I_RXFE[6:0]\n", GetBits(value, 6, 0));
    printf("\n");

    lms_spi_read(dev,0x74,&value);
    printf("Register : 0x74 = 0x%.2x\n",value);
    printf("\t 7 \t %d \t Not used\n", GetBits(value, 7, 7));
    printf("\t 6-0 \t %d \t IP2TRIM_Q_RXFE[6:0]\n", GetBits(value, 6, 0));
    printf("\n");

    lms_spi_read(dev,0x75,&value);
    printf("Register : 0x75 = 0x%.2x\n",value);
    printf("\t 7-6 \t %d \t G_LNA_RXFE[1:0]\n", GetBits(value, 7, 6));
    printf("\t 5-4 \t %d \t LNASEL_RXFE[1:0]\n", GetBits(value, 5, 4));
    printf("\t 3-0 \t %d \t CBE_LNA_RXFE[3:0]\n", GetBits(value, 3, 0));
    printf("\n");

    lms_spi_read(dev,0x76,&value);
    printf("Register : 0x76 = 0x%.2x\n",value);
    printf("\t 7 \t %d \t Not used\n", GetBits(value, 7, 7));
    printf("\t 6-0 \t %d \t RFB_TIA_RXFE[6:0]\n", GetBits(value, 6, 0));
    printf("\n");

    lms_spi_read(dev,0x77,&value);
    printf("Register : 0x77 = 0x%.2x\n",value);
    printf("\t 7 \t %d \t Not used\n", GetBits(value, 7, 7));
    printf("\t 6-0 \t %d \t CFB_TIA_RXFE[6:0]\n", GetBits(value, 6, 0));
    printf("\n");

    lms_spi_read(dev,0x78,&value);
    printf("Register : 0x78 = 0x%.2x\n",value);
    printf("\t 7-6 \t %d \t Not used\n", GetBits(value, 7, 6));
    printf("\t 5-0 \t %d \t RDLEXT_LNA_RXFE[5:0]\n", GetBits(value, 5, 0));
    printf("\n");

    lms_spi_read(dev,0x79,&value);
    printf("Register : 0x79 = 0x%.2x\n",value);
    printf("\t 7-6 \t %d \t Not used\n", GetBits(value, 7, 6));
    printf("\t 5-0 \t %d \t RDLINT_LNA_RXFE[5:0]\n", GetBits(value, 5, 0));
    printf("\n");

    lms_spi_read(dev,0x7A,&value);
    printf("Register : 0x7A = 0x%.2x\n",value);
    printf("\t 7-4 \t %d \t ICT_MIX_RXFE[3:0]\n", GetBits(value, 7, 4));
    printf("\t 3-0 \t %d \t ICT_LNA_RXFE[3:0]\n", GetBits(value, 3, 0));
    printf("\n");

    lms_spi_read(dev,0x7B,&value);
    printf("Register : 0x7B = 0x%.2x\n",value);
    printf("\t 7-4 \t %d \t ICT_TIA_RXFE[3:0]\n", GetBits(value, 7, 4));
    printf("\t 3-0 \t %d \t ICT_MXLOB_RXFE[3:0]\n", GetBits(value, 3, 0));
    printf("\n");

    lms_spi_read(dev,0x7C,&value);
    printf("Register : 0x7C = 0x%.2x\n",value);
    printf("\t 7 \t %d \t Not used\n", GetBits(value, 7, 7));
    printf("\t 6-3 \t %d \t LOBN_MIX_RXFE[3:0]\n", GetBits(value, 6, 3));
    printf("\t 2 \t %d \t RINEN_MIX_RXFE\n", GetBits(value, 2, 2));
    printf("\t 1-0 \t %d \t G_FINE_LNA3_RXFE[1:0]\n", GetBits(value, 1, 0));
    printf("\n");

    lms_spi_read(dev,0x7D,&value);
    printf("Register : 0x7D = 0x%.2x\n",value);
    printf("\t 7-4 \t %d \t Not used\n", GetBits(value, 7, 4));
    printf("\t 3-0 \t %d \t Default\n", GetBits(value, 3, 0));
    printf("\n");

    lms_spi_read(dev,0x7E,&value);
    printf("Register : 0x7E = 0x%.2x\n",value);
    printf("\t 7-0 \t %d \t SPARE0[7:0]\n", GetBits(value, 7, 0));
    printf("\n");

    lms_spi_read(dev,0x7F,&value);
    printf("Register : 0x7F = 0x%.2x\n",value);
    printf("\t 7-0 \t %d \t SPARE1[7:0]\n", GetBits(value, 7, 0));
    printf("\n");

from bladerf.

Engidea avatar Engidea commented on August 15, 2024

I would say that just printing out them is a bit "useless", meaning that what one probably want to do is to interface the HW with his own scanning SW.
It is worth considering having a standard way to get/set each register trough the API and then the printf is just another way to see things.
Want to talk about it on chat ?

from bladerf.

Engidea avatar Engidea commented on August 15, 2024

ok in the Engidea repository there are two patches, one for the rstx and another one a prerequisite for the addition of the setter/getter for rational part
github did mess up (or at least something weird happened), I could not commit the branch I made on my repo and could not get out of the mess.
Please you github masters explain a safe way to push patches without screwing up

from bladerf.

jynik avatar jynik commented on August 15, 2024

Addressed in 04498cd.

from bladerf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.