Prusa MINI Firmware overview
usbh_ctlreq.h File Reference

Header file for usbh_ctlreq.c. More...

#include "usbh_core.h"

Go to the source code of this file.

Macros

#define FEATURE_SELECTOR_ENDPOINT   0X00
 
#define FEATURE_SELECTOR_DEVICE   0X01
 
#define INTERFACE_DESC_TYPE   0x04
 
#define ENDPOINT_DESC_TYPE   0x05
 
#define INTERFACE_DESC_SIZE   0x09
 

Functions

USBH_StatusTypeDef USBH_CtlReq (USBH_HandleTypeDef *phost, uint8_t *buff, uint16_t length)
 USBH_CtlReq USBH_CtlReq sends a control request and provide the status after completion of the request. More...
 
USBH_StatusTypeDef USBH_GetDescriptor (USBH_HandleTypeDef *phost, uint8_t req_type, uint16_t value_idx, uint8_t *buff, uint16_t length)
 USBH_GetDescriptor Issues Descriptor command to the device. Once the response received, it parses the descriptor and updates the status. More...
 
USBH_StatusTypeDef USBH_Get_DevDesc (USBH_HandleTypeDef *phost, uint8_t length)
 USBH_Get_DevDesc Issue Get Device Descriptor command to the device. Once the response received, it parses the device descriptor and updates the status. More...
 
USBH_StatusTypeDef USBH_Get_StringDesc (USBH_HandleTypeDef *phost, uint8_t string_index, uint8_t *buff, uint16_t length)
 USBH_Get_StringDesc Issues string Descriptor command to the device. Once the response received, it parses the string descriptor and updates the status. More...
 
USBH_StatusTypeDef USBH_SetCfg (USBH_HandleTypeDef *phost, uint16_t configuration_value)
 USBH_SetCfg The command sets the configuration value to the connected device. More...
 
USBH_StatusTypeDef USBH_Get_CfgDesc (USBH_HandleTypeDef *phost, uint16_t length)
 USBH_Get_CfgDesc Issues Configuration Descriptor to the device. Once the response received, it parses the configuration descriptor and updates the status. More...
 
USBH_StatusTypeDef USBH_SetAddress (USBH_HandleTypeDef *phost, uint8_t DeviceAddress)
 USBH_SetAddress This command sets the address to the connected device. More...
 
USBH_StatusTypeDef USBH_SetInterface (USBH_HandleTypeDef *phost, uint8_t ep_num, uint8_t altSetting)
 USBH_SetInterface The command sets the Interface value to the connected device. More...
 
USBH_StatusTypeDef USBH_ClrFeature (USBH_HandleTypeDef *phost, uint8_t ep_num)
 USBH_ClrFeature This request is used to clear or disable a specific feature. More...
 
USBH_DescHeader_tUSBH_GetNextDesc (uint8_t *pbuf, uint16_t *ptr)
 USBH_GetNextDesc This function return the next descriptor header. More...
 

Variables

uint8_t USBH_CfgDesc [512]
 

Detailed Description

Header file for usbh_ctlreq.c.

Author
MCD Application Team
Version
V3.2.2
Date
07-July-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.