1 Reply Latest reply on Jun 7, 2018 10:35 PM by keaj

    CyU3PSibSetIntfParams() returns ERROR_BAD_ARGUMENT

    caleb.martinez_2580147

      I'm trying to set the intf parameters for S-Port0 as follows:

       

      intfParams.resetGpio = 0xFF;

      intfParams.rstActHigh = CyFalse;

      intfParams.cardDetType = CY_U3P_SIB_DETECT_DAT_3;

      intfParams.writeProtEnable = 1;

      intfParams.lowVoltage = CyFalse;

      intfParams.voltageSwGpio = 0xFF;

      intfParams.lvGpioState = CyFalse;

      intfParams.useDdr = CyTrue;

      intfParams.maxFreq = CY_U3P_SIB_FREQ_52MHZ;

      intfParams.cardInitDelay   = 0;

       

      stat = CyU3PSibSetIntfParams (CY_U3P_SIB_PORT_0, &intfParams);

       

      This is returning CY_U3P_ERROR_BAD_ARGUMENT and I don't understand why. Is there something I'm overlooking?