5 Replies Latest reply on Oct 2, 2018 1:58 AM by user_400598011

    How to make it work when CyU3PSpiSetConfig() called repeatedly to change the settings?

    user_400598011

      How to make it work when CyU3PSpiSetConfig() called repeatedly to change the settings?

      the example code as the following, but it not work.

       

      example code:

      CyU3PSpiConfig_t spiConfig;

      spiConfig.wordLen    = 10;

      CyU3PSpiSetConfig (&spiConfig, NULL);

       

      CyU3PSpiSetSsnLine (CyFalse);

      CyU3PSpiTransmitWords (addr, addrbytecnt);

       

      spiConfig.wordLen    = 8;

      CyU3PSpiSetConfig (&spiConfig, NULL);

       

      CyU3PSpiTransmitWords (data, DataByteCount);

      CyU3PSpiSetSsnLine (CyTrue);