Subversion Repositories canSerial

Rev

Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 3
Line 1... Line 1...
1
/**
1
/**
2
  ******************************************************************************
2
  ******************************************************************************
3
  * @file    stm32f1xx_hal_pcd_ex.h
3
  * @file    stm32f1xx_hal_pcd_ex.h
4
  * @author  MCD Application Team
4
  * @author  MCD Application Team
5
  * @brief   Header file of PCD HAL Extension module.
5
  * @brief   Header file of PCD HAL Extension module.
6
  ******************************************************************************
6
  ******************************************************************************
7
  * @attention
7
  * @attention
8
  *
8
  *
9
  * <h2><center>&copy; Copyright (c) 2016 STMicroelectronics.
9
  * Copyright (c) 2016 STMicroelectronics.
10
  * All rights reserved.</center></h2>
10
  * All rights reserved.
11
  *
11
  *
12
  * This software component is licensed by ST under BSD 3-Clause license,
12
  * This software is licensed under terms that can be found in the LICENSE file
13
  * the "License"; You may not use this file except in compliance with the
-
 
14
  * License. You may obtain a copy of the License at:
13
  * in the root directory of this software component.
15
  *                        opensource.org/licenses/BSD-3-Clause
14
  * If no LICENSE file comes with this software, it is provided AS-IS.
16
  *
15
  *
17
  ******************************************************************************
16
  ******************************************************************************
18
  */
17
  */
19
 
18
 
20
/* Define to prevent recursive inclusion -------------------------------------*/
19
/* Define to prevent recursive inclusion -------------------------------------*/
21
#ifndef STM32F1xx_HAL_PCD_EX_H
20
#ifndef STM32F1xx_HAL_PCD_EX_H
22
#define STM32F1xx_HAL_PCD_EX_H
21
#define STM32F1xx_HAL_PCD_EX_H
23
 
22
 
24
#ifdef __cplusplus
23
#ifdef __cplusplus
25
extern "C" {
24
extern "C" {
26
#endif
25
#endif /* __cplusplus */
27
 
26
 
28
/* Includes ------------------------------------------------------------------*/
27
/* Includes ------------------------------------------------------------------*/
29
#include "stm32f1xx_hal_def.h"
28
#include "stm32f1xx_hal_def.h"
30
 
29
 
31
#if defined (USB) || defined (USB_OTG_FS)
30
#if defined (USB) || defined (USB_OTG_FS)
32
/** @addtogroup STM32F1xx_HAL_Driver
31
/** @addtogroup STM32F1xx_HAL_Driver
33
  * @{
32
  * @{
34
  */
33
  */
35
 
34
 
36
/** @addtogroup PCDEx
35
/** @addtogroup PCDEx
37
  * @{
36
  * @{
38
  */
37
  */
39
/* Exported types ------------------------------------------------------------*/
38
/* Exported types ------------------------------------------------------------*/
40
/* Exported constants --------------------------------------------------------*/
39
/* Exported constants --------------------------------------------------------*/
41
/* Exported macros -----------------------------------------------------------*/
40
/* Exported macros -----------------------------------------------------------*/
42
/* Exported functions --------------------------------------------------------*/
41
/* Exported functions --------------------------------------------------------*/
43
/** @addtogroup PCDEx_Exported_Functions PCDEx Exported Functions
42
/** @addtogroup PCDEx_Exported_Functions PCDEx Exported Functions
44
  * @{
43
  * @{
45
  */
44
  */
46
/** @addtogroup PCDEx_Exported_Functions_Group1 Peripheral Control functions
45
/** @addtogroup PCDEx_Exported_Functions_Group1 Peripheral Control functions
47
  * @{
46
  * @{
48
  */
47
  */
49
 
48
 
50
#if defined (USB_OTG_FS)
49
#if defined (USB_OTG_FS)
51
HAL_StatusTypeDef HAL_PCDEx_SetTxFiFo(PCD_HandleTypeDef *hpcd, uint8_t fifo, uint16_t size);
50
HAL_StatusTypeDef HAL_PCDEx_SetTxFiFo(PCD_HandleTypeDef *hpcd, uint8_t fifo, uint16_t size);
52
HAL_StatusTypeDef HAL_PCDEx_SetRxFiFo(PCD_HandleTypeDef *hpcd, uint16_t size);
51
HAL_StatusTypeDef HAL_PCDEx_SetRxFiFo(PCD_HandleTypeDef *hpcd, uint16_t size);
53
#endif /* defined (USB_OTG_FS) */
52
#endif /* defined (USB_OTG_FS) */
54
 
53
 
55
#if defined (USB)
54
#if defined (USB)
56
HAL_StatusTypeDef  HAL_PCDEx_PMAConfig(PCD_HandleTypeDef *hpcd, uint16_t ep_addr,
55
HAL_StatusTypeDef  HAL_PCDEx_PMAConfig(PCD_HandleTypeDef *hpcd, uint16_t ep_addr,
57
                                       uint16_t ep_kind, uint32_t pmaadress);
56
                                       uint16_t ep_kind, uint32_t pmaadress);
58
 
57
 
59
void HAL_PCDEx_SetConnectionState(PCD_HandleTypeDef *hpcd, uint8_t state);
58
void HAL_PCDEx_SetConnectionState(PCD_HandleTypeDef *hpcd, uint8_t state);
60
#endif /* defined (USB) */
59
#endif /* defined (USB) */
61
void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg);
60
void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg);
62
void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg);
61
void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg);
63
 
62
 
64
/**
63
/**
65
  * @}
64
  * @}
66
  */
65
  */
67
 
66
 
68
/**
67
/**
69
  * @}
68
  * @}
70
  */
69
  */
71
 
70
 
72
/**
71
/**
73
  * @}
72
  * @}
74
  */
73
  */
75
 
74
 
76
/**
75
/**
77
  * @}
76
  * @}
78
  */
77
  */
79
#endif /* defined (USB) || defined (USB_OTG_FS) */
78
#endif /* defined (USB) || defined (USB_OTG_FS) */
80
 
79
 
81
#ifdef __cplusplus
80
#ifdef __cplusplus
82
}
81
}
83
#endif
82
#endif /* __cplusplus */
84
 
83
 
85
 
84
 
86
#endif /* STM32F1xx_HAL_PCD_EX_H */
85
#endif /* STM32F1xx_HAL_PCD_EX_H */
87
 
-
 
88
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
-