2 ******************************************************************************
4 * @author MCD Application Team
6 * @date 21-January-2013
7 * @brief Connection/disconnection & power management header
8 ******************************************************************************
11 * <h2><center>© COPYRIGHT 2013 STMicroelectronics</center></h2>
13 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 * You may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at:
17 * http://www.st.com/software_license_agreement_liberty_v2
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
25 ******************************************************************************
28 /* Define to prevent recursive inclusion -------------------------------------*/
32 /* Includes ------------------------------------------------------------------*/
33 /* Exported types ------------------------------------------------------------*/
34 typedef enum _RESUME_STATE
{
45 typedef enum _DEVICE_STATE
{
54 /* Exported constants --------------------------------------------------------*/
55 /* Exported macro ------------------------------------------------------------*/
56 /* Exported functions ------------------------------------------------------- */
58 void Resume_Init(void);
59 void Resume(RESUME_STATE eResumeSetVal
);
61 RESULT
PowerOff(void);
63 /* External variables --------------------------------------------------------*/
64 extern __IO
uint32_t bDeviceState
; /* USB device status */
65 extern __IO boolean fSuspendEnabled
; /* true when suspend is possible */ // HJI
66 #endif /*__USB_PWR_H*/
68 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/