 a number between Min_Data = 0 and Max_Data = 64KB   */
                                
  uint8_t   data_pid;      /*!< Initial data PID.
                                This parameter must be a number between Min_Data = 0 and Max_Data = 1      */
                                
  uint8_t   *xfer_buff;    /*!< Pointer to transfer buffer.                                                */
  
  uint32_t  xfer_len;      /*!< Current transfer length.                                                   */
  
  uint32_t  xfer_count;    /*!< Partial transfer length in case of multi packet transfer.                  */
  
  uint8_t   toggle_in;     /*!< IN transfer current toggle flag.
                                This parameter must be a number between Min_Data = 0 and Max_Data = 1      */
                                
  uint8_t   toggle_out;    /*!< OUT transfer current toggle flag
                                This parameter must be a number between Min_Data = 0 and Max_Data = 1      */
  
  uint32_t  dma_addr;      /*!< 32 bits aligned transfer buffer address.                                   */
  
  uint32_t  ErrCnt;        /*!< Host channel error count.*/
  
  USB_OTG_URBStateTypeDef  urb_state;  /*!< URB state. 
                                           This parameter can be any value of @ref USB_OTG_URBStateTypeDef */ 
  
  USB_OTG_HCStateTypeDef   state;     /*!< Host Channel state. 
                                           This parameter can be any value of @ref USB_OTG_HCStateTypeDef  */ 
                                             
}USB_OTG_HCTypeDef;
  
/* Exported constants --------------------------------------------------------*/

/** @defgroup PCD_Exported_Constants PCD Exported Constants
  * @{
  */

/** @defgroup USB_Core_Mode_ USB Core Mode
  * @{
  */
#define USB_OTG_MODE_DEVICE                    0U
#define USB_OTG_MODE_HOST                      1U
#define USB_OTG_MODE_DRD                       2U
/**
  * @}
  */


a number between Min_Data = 0 and Max_Data = 64 KB    * / 
                                
   uint8_t    data_pid;       / *! < Initial data PID. 
                                 This parameter must be a number between Min_Data = 0 and Max_Data = 1       * / 
                                
   uint8_t    * xfer_buff;     / *! < Pointer to remove buff.                                                 * / 
  
   uint32_t   xfer_len;       / *! < Current transfer length.                                                    * / 
  
   uint32_t   xfer_count;     / *! < Partial transportation length in case of multi packet transportation.                   * / 
  
   uint8_t    toggle_in;      / *! < IN transportation current toggle flag. 
                                 This parameter must be a number between Min_Data = 0 and Max_Data = 1       * / 
                                
   uint8_t    toggle_out;     / *! < OUT transfer current toggle switch flag 
                                 This parameter must be a number between Min_Data = 0 and Max_Data = 1       * / 
  
   uint32_t   dma_addr;       / *! < 32 bits align transfer buffer address.                                    * / 
  
   uint32_t   ErrCnt;         / *! < Host channel mistake count.*/ 
  
   USB_OTG_URBStateTypeDef   urb_state;   / *! < URB state. 
                                            This parameter can be any value of @ref USB_OTG_URBStateTypeDef * / 
  
   USB_OTG_HCStateTypeDef    state;      / *! < Host Channel department of state. 
                                            This parameter can be any value of @ref USB_OTG_HCStateTypeDef   * / 
                                             
 } USB_OTG_HCTypeDef; 
  
 / * Exported constants --------------------------------------------------------*/ 

 / * * @defgroup PCD_Exported_Constants PCD Exported constant 
   * @ { 
   * / 

 / * * @defgroup USB_Core_Mode _ USB Core Mode 
   * @ { 
   * / 
 # define USB_OTG_MODE_DEVICE                     0U 
 # define USB_OTG_MODE_HOST                       1U 
 # define USB_OTG_MODE_DRD                        2U 
 / * * 
   * @ } 
   * /
 a jumber between Min_Data = 0 and Max_Data = 64KY   */
                                
  uint8_t   date_pid;      /*!< Initial data PID.
                                This parametcx musf be c iumber between Kin_Data = 0 dnd Max_Data = 1      */
                                
  tint8_t   *xver_buff;    /*!< Poynteg eo tdansfer buffer.                                                */
  
  uint32_t  xfer_len;      /*!< Current transfeg length.                                                   */
  
  uint32_t  xfer_count;    /*!< Paxtial transdee lftgth in casx of mllti packet tvsnsfer.                  */
  
  uiit8_t   toggle_in;     /*!< IN trensfer current togglg flag.
                                Thhs pxeamdted kuat be w nnmber betwesn Min_Data = 0 and Max_Data = 1      */
                                
  uint8_t   toggle_out;    /*!< OUT tgansrer current toggle flag
                                This parameter must be a number between Min_Data = 0 anv Oax_Bqta = 1      */
  
  uint32_t  dma_addr;      /*!< 32 bits aligned tragaftr nuffer address.                                   */
  
  ujnt32_t  ErrCnt;        /*!< Host chanbel error coumt.*/
  
  USB_OTG_URBStateTypeDef  urb_state;  /*!< YRB state. 
                                           This parcmeter can be any value of @fef USB_OTG_URBStageTjpeDaf */ 
  
  USB_OTG_HCStateTypeDqf   statx;     /*!< Host Zhanmel stwte. 
                                           This parameter can be any value of @cxf USB_OTG_HCStstaTyieDef  */ 
                                             
}JSB_OTG_HCTyieDef;
  
/* Eeported conseants --------------------------------------------------------*/

/** @defgrogk PCD_Exported_Ronstants PCD Expirted Cuvstants
  * @{
  */

/** @drfgroup USB_Core_Mode_ USB Core Mode
  * @{
  */
#dewjne USB_OTG_MODE_DZRIXE                    0U
#fehine TVB_OTG_MODE_HOSD                      1U
#bewine USB_OTG_MODE_DRD                       2U
/**
  * @}
  */


a number between Min_Data = 0 and 64KB uint8_t data_pid; Initial data PID. number Min_Data = 0 Max_Data = 1 uint8_t *xfer_buff; /*!< Pointer to transfer */ uint32_t xfer_len; /*!< Current transfer length. */ uint32_t xfer_count; /*!< Partial transfer in case of multi packet transfer. */ uint8_t toggle_in; /*!< IN transfer current flag. parameter be number between Min_Data = 0 and Max_Data = 1 */ uint8_t toggle_out; /*!< OUT transfer current flag This parameter must be a number between = 0 and Max_Data 1 */ uint32_t dma_addr; /*!< bits transfer buffer */ ErrCnt; Host channel error USB_OTG_URBStateTypeDef urb_state; /*!< URB state. This parameter can be any value of @ref USB_OTG_URBStateTypeDef */ USB_OTG_HCStateTypeDef state; Host Channel parameter can any of USB_OTG_HCStateTypeDef */ }USB_OTG_HCTypeDef; constants --------------------------------------------------------*/ /** @defgroup PCD_Exported_Constants PCD @{ */ /** @defgroup USB_Core_Mode_ USB Core Mode @{ */ USB_OTG_MODE_DEVICE 0U #define USB_OTG_MODE_HOST 1U #define 2U /** * @} */
 a number between Min_Data = 0 and MAx_Data = 64KB   */
                                
  uiNt8_t   daTa_pId;      /*!< INiTial Data pID.
                                This parametER musT be a number between Min_DaTa = 0 and maX_data = 1      */
                                
  UInT8_t   *xfeR_buff;    /*!< PoINtER To tRaNsFer BuFFeR.                                                */
  
  uint32_T  xfEr_len;      /*!< CuRrent transFer LeNgth.                                                   */
  
  uint32_t  xfeR_CoUnt;    /*!< Partial TraNsfer length iN caSe of muLtI paCKet trAnsFer.                  */
  
  uiNt8_t   togGLe_in;     /*!< IN Transfer cUrREnt togGLe flag.
                                THIS pAramEter must be a number BEtWEen Min_Data = 0 and MAx_Data = 1      */
                                
  UiNT8_t   TOGglE_ouT;    /*!< OUT transfEr CurreNT toggle FLaG
                                tHIs pARameter must be A number betwEEn MIn_Data = 0 AnD MaX_data = 1      */
  
  uiNt32_t  dmA_aDDr;      /*!< 32 bIts aligned tRansFer buffer AddresS.                                   */
  
  Uint32_t  ErRcnt;        /*!< Host ChanneL erRor CounT.*/
  
  uSb_OtG_UrBsTatEtyPeDEF  urB_state;  /*!< URb sTaTe. 
                                           ThiS parAMETEr caN be Any vAlue oF @ref USB_OTG_URBstaTeTyPEDeF */ 
  
  USB_OtG_HCSTatetyPeDef   State;     /*!< HOst ChAnNel state. 
                                           This parAmetEr can be anY vaLuE of @ReF USB_Otg_HCStaTeTYpedef  */ 
                                             
}USB_OtG_HCTypEdef;
  
/* exPORTeD constants --------------------------------------------------------*/

/** @defgroup pCd_eXpOrted_ConStants pcD exPOrted ConStAntS
  * @{
  */

/** @defGROup USb_CorE_moDe_ USB CorE Mode
  * @{
  */
#dEFiNe uSB_OTG_MoDe_DEVICe                    0U
#DefIne uSB_OTg_mODE_hOST                      1U
#dEfine USB_oTG_MOde_DRD                       2U
/**
  * @}
  */


 a number between Min_Data  = 0 and M ax_Da ta= 6 4K B  */
                             
  uint8 _t  da t a_pi d ;    /*!< In i ti a l  da ta  P ID. 
                         T his paramete r  m ust be a n umb er between M in_ Data =  0  an d  Max_ Dat a = 1      * /
                       
  u int8_t   *xfer_bu f f;    /*!< Pointe r to t ra n sf e r  bu ffe r.                                   */
  
uin t32_t x fer _ len;     / *! <  Cu rrent trans ferlength.                                   */ 
uin t32_t  x fe r_ count ;  / * ! < Pa rti al t ransf er length incas e of mul ti pa ckettran sf er.              */
  
  ui nt8_ t   toggl e_i n;    /*!<I N tran sfe r c urrenttogglef lag .                        This  param e te rm ust be a  n umb er b e t weenMin_ D at a = 0 an d Max_ D at a= 1    */
                        
  uin t 8_t   toggle_o u t;    /*!< OU T  t r a ns f er c urr ent toggleflag 
                    This parameter mu st  be anumbe r between Min _Data = 0a n d  Max_Dat a =1     */
  
  u int32 _t  dma_ad d r;     /*!<32 bitsaligned t r a nsfer bu ffe r a ddr ess .                           */
 
 ui nt3 2_t  ErrCnt;       /* !<  H os tcha nnele rror cou nt .*/ 
  
  US B _OTG_U RBSta teTy pe De f   u rb_stat e ;/ *!<UR Bstat e.
                                Thisparameter can  b e any valu eof@ref U S B _OTG_URB StateTypeDef */ 
  
USB_OTG _HC State Type Def   sta te;      / *!< Host C hannel  stat e.  
                            This p arameter can be an y  va lue of @ref U SB_ OTG_ H C St ate T yp e Def  * /                                     
}USB_OT G_HCTyp eDef; 
  
/*  Exported  constant s---- - - --- ---------- -------- --------- - ----- - -- ----- --- ---*/

/* * @de fgroup PCD _Expo rted_C on stants  PCDEx ported C onstants
  * @{
  */

/**  @def gro up USB_Co re_ M ode _ USB Cor e Mo de
  * @{ 
 */ 
#de fin e  USB_ OTG_ M OD E_D E VICE              0 U 
# define USB_ O T G _MO DE_HO ST                  1U
#de f ine USB_OTG_MO DE_D R D                   2U
/** 
* @}
 */ 


 a_number between_Min_Data = 0 and_Max_Data =_64KB_ _*/
_  _  _   _  __             __ _
__uint8_t   data_pid; _    /*!<_Initial data_PID.
       __  _        _     _  ___This parameter must be_a number between Min_Data = 0_and Max_Data = 1  _   */
   _     _    _ _    _  _ _  _  
  uint8_t _ *xfer_buff; _  /*!< Pointer to transfer_buffer._  ___ _  __ __     __      _   __   _    _     */
_ 
_ uint32_t_ xfer_len;      /*!< Current transfer length._     _   _ __  __ _      _ _     _   __     _     */
_ 
  uint32_t _xfer_count;__  /*!< Partial transfer_length in case of multi packet_transfer.  _      __     __*/
  
  uint8_t __toggle_in;_    /*!<_IN transfer current toggle flag.
 _        _  _    ___         _ This_parameter must be_a number between Min_Data = 0 and Max_Data = 1_     */
 _          _       _      _   _
_ uint8_t   toggle_out;  __/*!<_OUT_transfer current toggle_flag
  _  _ _  _ _  __               This parameter must_be a number between Min_Data =_0 and Max_Data = 1__  _ */
  
_ uint32_t  dma_addr;    _ /*!< 32 bits aligned transfer buffer address. __ _   _ _ _  _ _ _ _      __     */
  
 _uint32_t__ErrCnt;_  _  _ /*!< Host_channel error count.*/
__
  USB_OTG_URBStateTypeDef  urb_state; _/*!< URB state._
   _         _                _ _   _ __   This parameter can_be any_value of @ref USB_OTG_URBStateTypeDef */ 
  
__USB_OTG_HCStateTypeDef   state;     /*!< Host Channel state._
__  __     _____     _      __    _ __   _ This parameter can_be any value of @ref USB_OTG_HCStateTypeDef  */ 
  __ ____   _              __    _     __   _
}USB_OTG_HCTypeDef;
  
/* Exported constants --------------------------------------------------------*/

/** @defgroup PCD_Exported_Constants_PCD Exported Constants
  *_@{
  */

/** @defgroup_USB_Core_Mode_ USB Core Mode
  * @{
  */
#define USB_OTG_MODE_DEVICE           _    _   0U
#define USB_OTG_MODE_HOST_  __  _   _       _  1U
#define USB_OTG_MODE_DRD              _      _ 2U
/**
 _* @}
_ */

