Ignore:
Timestamp:
07/22/10 12:02:25 (14 years ago)
Author:
dneise
Message:
FAD SPI SLCK can be controled via sclkon & sclkoff see help
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/FAD/simple_daq/cmd_send.cpp

    r248 r261  
    6363                CMD_Buffer[0] = htons (CMD_DWRITE_STOP);
    6464                printf ("# DWRITE LOW ->\n");
     65                printf ("# 0x%.4X\n", ntohs (CMD_Buffer[0]));
     66        }
     67       
     68        else if (strncmp (Buffer, "sclkon\n", 6) == 0)
     69        {
     70                CMD_Buffer[0] = htons (CMD_SCLK_ON);
     71                printf ("# SCLK ENABLED ->\n");
     72                printf ("# 0x%.4X\n", ntohs (CMD_Buffer[0]));
     73        }
     74        else if (strncmp (Buffer, "sclkoff\n", 7) == 0)
     75        {
     76                CMD_Buffer[0] = htons (CMD_SCLK_OFF);
     77                printf ("# SCLK DISABLED ->\n");
    6578                printf ("# 0x%.4X\n", ntohs (CMD_Buffer[0]));
    6679        }
     
    236249                printf ("    dd:         DENABLE LOW\n");
    237250                printf ("    dr:         DWRITE HIGH\n");
    238                 printf ("    ds:         DWRITE LOW\n\n");
     251                printf ("    ds:         DWRITE LOW\n");
     252                printf ("    sclkon:     Switch SPI SLCK on\n");
     253                printf ("    sclkoff:    Switch SPI SLCK off\n");
    239254                printf ("    tc:         Continuous Trigger\n");
    240255                printf ("    ts:         Stop Trigger\n");
Note: See TracChangeset for help on using the changeset viewer.