Macros | Enumerations
usb_defines.h File Reference

Header of the Core Layer. More...

#include "usb_conf.h"
Include dependency graph for usb_defines.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define A_HOST   1
 
#define A_PERIPHERAL   3
 
#define A_SUSPEND   2
 
#define B_HOST   5
 
#define B_PERIPHERAL   4
 
#define DCFG_FRAME_INTERVAL_80   0
 
#define DCFG_FRAME_INTERVAL_85   1
 
#define DCFG_FRAME_INTERVAL_90   2
 
#define DCFG_FRAME_INTERVAL_95   3
 
#define DEP0CTL_MPS_16   2
 
#define DEP0CTL_MPS_32   1
 
#define DEP0CTL_MPS_64   0
 
#define DEP0CTL_MPS_8   3
 
#define DEVICE_MODE   0
 
#define DSTS_ENUMSPD_FS_PHY_30MHZ_OR_60MHZ   1
 
#define DSTS_ENUMSPD_FS_PHY_48MHZ   3
 
#define DSTS_ENUMSPD_HS_PHY_30MHZ_OR_60MHZ   0
 
#define DSTS_ENUMSPD_LS_PHY_6MHZ   2
 
#define EP_SPEED_FULL   1
 
#define EP_SPEED_HIGH   2
 
#define EP_SPEED_LOW   0
 
#define EP_TYPE_BULK   2
 
#define EP_TYPE_CTRL   0
 
#define EP_TYPE_INTR   3
 
#define EP_TYPE_ISOC   1
 
#define EP_TYPE_MSK   3
 
#define GAHBCFG_DMAENABLE   1
 
#define GAHBCFG_GLBINT_ENABLE   1
 
#define GAHBCFG_INT_DMA_BURST_INCR   1
 
#define GAHBCFG_INT_DMA_BURST_INCR16   7
 
#define GAHBCFG_INT_DMA_BURST_INCR4   3
 
#define GAHBCFG_INT_DMA_BURST_INCR8   5
 
#define GAHBCFG_INT_DMA_BURST_SINGLE   0
 
#define GAHBCFG_TXFEMPTYLVL_EMPTY   1
 
#define GAHBCFG_TXFEMPTYLVL_EMPTY   1
 
#define GAHBCFG_TXFEMPTYLVL_HALFEMPTY   0
 
#define GAHBCFG_TXFEMPTYLVL_HALFEMPTY   0
 
#define GRXSTS_PKTSTS_CH_HALTED   7
 
#define GRXSTS_PKTSTS_DATA_TOGGLE_ERR   5
 
#define GRXSTS_PKTSTS_IN   2
 
#define GRXSTS_PKTSTS_IN_XFER_COMP   3
 
#define HC_PID_DATA0   0
 
#define HC_PID_DATA1   2
 
#define HC_PID_DATA2   1
 
#define HC_PID_SETUP   3
 
#define HCCHAR_BULK   2
 
#define HCCHAR_CTRL   0
 
#define HCCHAR_INTR   3
 
#define HCCHAR_ISOC   1
 
#define HCFG_30_60_MHZ   0
 
#define HCFG_48_MHZ   1
 
#define HCFG_6_MHZ   2
 
#define HOST_MODE   1
 
#define HPRT0_PRTSPD_FULL_SPEED   1
 
#define HPRT0_PRTSPD_HIGH_SPEED   0
 
#define HPRT0_PRTSPD_LOW_SPEED   2
 
#define MIN(a, b)   (((a) < (b)) ? (a) : (b))
 
#define MODE_HNP_SRP_CAPABLE   0
 
#define MODE_NO_HNP_SRP_CAPABLE   2
 
#define MODE_NO_SRP_CAPABLE_DEVICE   4
 
#define MODE_NO_SRP_CAPABLE_HOST   6
 
#define MODE_SRP_CAPABLE_DEVICE   3
 
#define MODE_SRP_CAPABLE_HOST   5
 
#define MODE_SRP_ONLY_CAPABLE   1
 
#define OTG_MODE   2
 
#define STS_DATA_UPDT   2
 
#define STS_GOUT_NAK   1
 
#define STS_SETUP_COMP   4
 
#define STS_SETUP_UPDT   6
 
#define STS_XFER_COMP   3
 
#define USB_OTG_EMBEDDED_PHY   2
 
#define USB_OTG_MODIFY_REG32(reg, clear_mask, set_mask)   USB_OTG_WRITE_REG32((reg), (((USB_OTG_READ_REG32(reg)) & ~(clear_mask)) | (set_mask)) )
 
#define USB_OTG_READ_REG32(reg)   (*(__IO uint32_t *)(reg))
 
#define USB_OTG_SPEED_FULL   1
 
#define USB_OTG_SPEED_HIGH   0
 
#define USB_OTG_SPEED_PARAM_FULL   3
 
#define USB_OTG_SPEED_PARAM_HIGH   0
 
#define USB_OTG_SPEED_PARAM_HIGH_IN_FULL   1
 
#define USB_OTG_ULPI_PHY   1
 
#define USB_OTG_WRITE_REG32(reg, value)   (*(__IO uint32_t *)(reg) = (value))
 

Enumerations

enum  USB_OTG_CORE_ID_TypeDef { USB_OTG_HS_CORE_ID = 0, USB_OTG_FS_CORE_ID = 1 }
 
enum  USB_OTG_SPEED { USB_SPEED_UNKNOWN = 0, USB_SPEED_LOW, USB_SPEED_FULL, USB_SPEED_HIGH }
 

Detailed Description

Header of the Core Layer.

Author
MCD Application Team
Version
V2.2.0
Date
09-November-2015
Attention

© COPYRIGHT 2015 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

   http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file usb_defines.h.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Apr 15 2021 05:07:53