/* * initialization_on_setconfiguration.h * * Created on: 27-Jul-2023 * Author: vivek */ #ifndef SRC_INITIALIZATION_ON_SETCONFIGURATION_H_ #define SRC_INITIALIZATION_ON_SETCONFIGURATION_H_ #include "ltcusb.h" #include "trb_fifo.h" #include "event_fifo.h" /** * @brief * @return 0 when successful. * @retval -1 when DALEPENA register write failed before EP Config. * @retval -2 DEPCFG command failed for EP1. * @retval -3 DEPSTARTCFG command failed. * @retval -4 DEPCFG command failed for EP2. * @retval -5 DEPCFG command failed for EP3. * @retval -6 DEPCFG command failed for EP4. * @retval -7 DEPCFG command failed for EP5. * @retval -8 DEPCFG command failed for EP6. * @retval -9 DEPCFG command failed for EP7. * @retval -10 DEPCFG command failed for EP8. * @retval -11 DEPCFG command failed for EP9. * @retval -12 DEPCFG command failed for EP10. * @retval -13 DEPCFG command failed for EP11. * @retval -14 DEPCFG command failed for EP12. * @retval -15 DEPCFG command failed for EP13. * @retval -16 DEPXFERCFG command failed for EP2. * @retval -17 DEPXFERCFG command failed for EP3. * @retval -18 DEPXFERCFG command failed for EP4. * @retval -19 DEPXFERCFG command failed for EP5. * @retval -20 DEPXFERCFG command failed for EP6. * @retval -21 DEPXFERCFG command failed for EP7. * @retval -22 DEPXFERCFG command failed for EP8. * @retval -23 DEPXFERCFG command failed for EP9. * @retval -24 DEPXFERCFG command failed for EP10. * @retval -25 DEPXFERCFG command failed for EP11. * @retval -26 DEPXFERCFG command failed for EP12. * @retval -27 DEPXFERCFG command failed for EP13. * @retval -28 DALEPENA register write failed after EP Config. * @retval -29 TRB_control_status2 failed. * @retval -30 XferNotReady event for EP 1 failed. */ extern int Initialization_on_SetConfiguration(void); #endif /* SRC_INITIALIZATION_ON_SETCONFIGURATION_H_ */