Prusa MINI Firmware overview
Main Page
Modules
Classes
Files
File List
File Members
usb_host.h
Go to the documentation of this file.
1
/**
2
******************************************************************************
3
* @file : usb_host.h
4
* @version : v1.0_Cube
5
* @brief : Header for usb_host.c file.
6
******************************************************************************
7
* This notice applies to any and all portions of this file
8
* that are not between comment pairs USER CODE BEGIN and
9
* USER CODE END. Other portions of this file, whether
10
* inserted by the user or by software development tools
11
* are owned by their respective copyright owners.
12
*
13
* Copyright (c) 2019 STMicroelectronics International N.V.
14
* All rights reserved.
15
*
16
* Redistribution and use in source and binary forms, with or without
17
* modification, are permitted, provided that the following conditions are met:
18
*
19
* 1. Redistribution of source code must retain the above copyright notice,
20
* this list of conditions and the following disclaimer.
21
* 2. Redistributions in binary form must reproduce the above copyright notice,
22
* this list of conditions and the following disclaimer in the documentation
23
* and/or other materials provided with the distribution.
24
* 3. Neither the name of STMicroelectronics nor the names of other
25
* contributors to this software may be used to endorse or promote products
26
* derived from this software without specific written permission.
27
* 4. This software, including modifications and/or derivative works of this
28
* software, must execute solely and exclusively on microcontroller or
29
* microprocessor devices manufactured by or for STMicroelectronics.
30
* 5. Redistribution and use of this software other than as permitted under
31
* this license is void and will automatically terminate your rights under
32
* this license.
33
*
34
* THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS"
35
* AND ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT
36
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
37
* PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY
38
* RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT
39
* SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
40
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
41
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
42
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
43
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
44
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
45
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
46
*
47
******************************************************************************
48
*/
49
50
/* Define to prevent recursive inclusion -------------------------------------*/
51
#ifndef __USB_HOST__H__
52
#define __USB_HOST__H__
53
54
#ifdef __cplusplus
55
extern
"C"
{
56
#endif
57
58
/* Includes ------------------------------------------------------------------*/
59
#include "stm32f4xx.h"
60
#include "
stm32f4xx_hal.h
"
61
62
/* USER CODE BEGIN INCLUDE */
63
64
/* USER CODE END INCLUDE */
65
66
/** @addtogroup USBH_OTG_DRIVER
67
* @{
68
*/
69
70
/** @defgroup USBH_HOST USBH_HOST
71
* @brief Host file for Usb otg low level driver.
72
* @{
73
*/
74
75
/** @defgroup USBH_HOST_Exported_Variables USBH_HOST_Exported_Variables
76
* @brief Public variables.
77
* @{
78
*/
79
80
/**
81
* @}
82
*/
83
84
/** Status of the application. */
85
typedef
enum
{
86
APPLICATION_IDLE
= 0,
87
APPLICATION_START
,
88
APPLICATION_READY
,
89
APPLICATION_DISCONNECT
90
}
ApplicationTypeDef
;
91
92
/** @defgroup USBH_HOST_Exported_FunctionsPrototype USBH_HOST_Exported_FunctionsPrototype
93
* @brief Declaration of public functions for Usb host.
94
* @{
95
*/
96
97
/* Exported functions -------------------------------------------------------*/
98
99
/** @brief USB Host initialization function. */
100
void
MX_USB_HOST_Init
(
void
);
101
102
/**
103
* @}
104
*/
105
106
/**
107
* @}
108
*/
109
110
/**
111
* @}
112
*/
113
114
#ifdef __cplusplus
115
}
116
#endif
117
118
#endif
/* __USB_HOST__H__ */
119
120
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
MX_USB_HOST_Init
void MX_USB_HOST_Init(void)
USB Host initialization function.
Definition:
usb_host.c:100
APPLICATION_DISCONNECT
Definition:
usb_host.h:89
ApplicationTypeDef
ApplicationTypeDef
Definition:
usb_host.h:85
APPLICATION_READY
Definition:
usb_host.h:88
APPLICATION_IDLE
Definition:
usb_host.h:86
stm32f4xx_hal.h
This file contains all the functions prototypes for the HAL module driver.
APPLICATION_START
Definition:
usb_host.h:87
Prusa-Firmware-Buddy-Private1
include
usb_host
usb_host.h
Generated by
1.8.16