Implement a secure ICS protocol targeting LoRa Node151 microcontroller for controlling irrigation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

162 lines
4.9 KiB

  1. /**
  2. ******************************************************************************
  3. * @file usbd_core.h
  4. * @author MCD Application Team
  5. * @brief Header file for usbd_core.c file
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2015 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by ST under Ultimate Liberty license
  13. * SLA0044, the "License"; You may not use this file except in compliance with
  14. * the License. You may obtain a copy of the License at:
  15. * http://www.st.com/SLA0044
  16. *
  17. ******************************************************************************
  18. */
  19. /* Define to prevent recursive inclusion -------------------------------------*/
  20. #ifndef __USBD_CORE_H
  21. #define __USBD_CORE_H
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /* Includes ------------------------------------------------------------------*/
  26. #include "usbd_conf.h"
  27. #include "usbd_def.h"
  28. #include "usbd_ioreq.h"
  29. #include "usbd_ctlreq.h"
  30. /** @addtogroup STM32_USB_DEVICE_LIBRARY
  31. * @{
  32. */
  33. /** @defgroup USBD_CORE
  34. * @brief This file is the Header file for usbd_core.c file
  35. * @{
  36. */
  37. /** @defgroup USBD_CORE_Exported_Defines
  38. * @{
  39. */
  40. #ifndef USBD_DEBUG_LEVEL
  41. #define USBD_DEBUG_LEVEL 0U
  42. #endif /* USBD_DEBUG_LEVEL */
  43. /**
  44. * @}
  45. */
  46. /** @defgroup USBD_CORE_Exported_TypesDefinitions
  47. * @{
  48. */
  49. /**
  50. * @}
  51. */
  52. /** @defgroup USBD_CORE_Exported_Macros
  53. * @{
  54. */
  55. /**
  56. * @}
  57. */
  58. /** @defgroup USBD_CORE_Exported_Variables
  59. * @{
  60. */
  61. #define USBD_SOF USBD_LL_SOF
  62. /**
  63. * @}
  64. */
  65. /** @defgroup USBD_CORE_Exported_FunctionsPrototype
  66. * @{
  67. */
  68. USBD_StatusTypeDef USBD_Init(USBD_HandleTypeDef *pdev, USBD_DescriptorsTypeDef *pdesc, uint8_t id);
  69. USBD_StatusTypeDef USBD_DeInit(USBD_HandleTypeDef *pdev);
  70. USBD_StatusTypeDef USBD_Start (USBD_HandleTypeDef *pdev);
  71. USBD_StatusTypeDef USBD_Stop (USBD_HandleTypeDef *pdev);
  72. USBD_StatusTypeDef USBD_RegisterClass(USBD_HandleTypeDef *pdev, USBD_ClassTypeDef *pclass);
  73. USBD_StatusTypeDef USBD_RunTestMode (USBD_HandleTypeDef *pdev);
  74. USBD_StatusTypeDef USBD_SetClassConfig(USBD_HandleTypeDef *pdev, uint8_t cfgidx);
  75. USBD_StatusTypeDef USBD_ClrClassConfig(USBD_HandleTypeDef *pdev, uint8_t cfgidx);
  76. USBD_StatusTypeDef USBD_LL_SetupStage(USBD_HandleTypeDef *pdev, uint8_t *psetup);
  77. USBD_StatusTypeDef USBD_LL_DataOutStage(USBD_HandleTypeDef *pdev , uint8_t epnum, uint8_t *pdata);
  78. USBD_StatusTypeDef USBD_LL_DataInStage(USBD_HandleTypeDef *pdev , uint8_t epnum, uint8_t *pdata);
  79. USBD_StatusTypeDef USBD_LL_Reset(USBD_HandleTypeDef *pdev);
  80. USBD_StatusTypeDef USBD_LL_SetSpeed(USBD_HandleTypeDef *pdev, USBD_SpeedTypeDef speed);
  81. USBD_StatusTypeDef USBD_LL_Suspend(USBD_HandleTypeDef *pdev);
  82. USBD_StatusTypeDef USBD_LL_Resume(USBD_HandleTypeDef *pdev);
  83. USBD_StatusTypeDef USBD_LL_SOF(USBD_HandleTypeDef *pdev);
  84. USBD_StatusTypeDef USBD_LL_IsoINIncomplete(USBD_HandleTypeDef *pdev, uint8_t epnum);
  85. USBD_StatusTypeDef USBD_LL_IsoOUTIncomplete(USBD_HandleTypeDef *pdev, uint8_t epnum);
  86. USBD_StatusTypeDef USBD_LL_DevConnected(USBD_HandleTypeDef *pdev);
  87. USBD_StatusTypeDef USBD_LL_DevDisconnected(USBD_HandleTypeDef *pdev);
  88. /* USBD Low Level Driver */
  89. USBD_StatusTypeDef USBD_LL_Init (USBD_HandleTypeDef *pdev);
  90. USBD_StatusTypeDef USBD_LL_DeInit (USBD_HandleTypeDef *pdev);
  91. USBD_StatusTypeDef USBD_LL_Start(USBD_HandleTypeDef *pdev);
  92. USBD_StatusTypeDef USBD_LL_Stop (USBD_HandleTypeDef *pdev);
  93. USBD_StatusTypeDef USBD_LL_OpenEP (USBD_HandleTypeDef *pdev,
  94. uint8_t ep_addr,
  95. uint8_t ep_type,
  96. uint16_t ep_mps);
  97. USBD_StatusTypeDef USBD_LL_CloseEP (USBD_HandleTypeDef *pdev, uint8_t ep_addr);
  98. USBD_StatusTypeDef USBD_LL_FlushEP (USBD_HandleTypeDef *pdev, uint8_t ep_addr);
  99. USBD_StatusTypeDef USBD_LL_StallEP (USBD_HandleTypeDef *pdev, uint8_t ep_addr);
  100. USBD_StatusTypeDef USBD_LL_ClearStallEP (USBD_HandleTypeDef *pdev, uint8_t ep_addr);
  101. uint8_t USBD_LL_IsStallEP (USBD_HandleTypeDef *pdev, uint8_t ep_addr);
  102. USBD_StatusTypeDef USBD_LL_SetUSBAddress (USBD_HandleTypeDef *pdev, uint8_t dev_addr);
  103. USBD_StatusTypeDef USBD_LL_Transmit (USBD_HandleTypeDef *pdev,
  104. uint8_t ep_addr,
  105. uint8_t *pbuf,
  106. uint16_t size);
  107. USBD_StatusTypeDef USBD_LL_PrepareReceive(USBD_HandleTypeDef *pdev,
  108. uint8_t ep_addr,
  109. uint8_t *pbuf,
  110. uint16_t size);
  111. uint32_t USBD_LL_GetRxDataSize (USBD_HandleTypeDef *pdev, uint8_t ep_addr);
  112. void USBD_LL_Delay (uint32_t Delay);
  113. /**
  114. * @}
  115. */
  116. #ifdef __cplusplus
  117. }
  118. #endif
  119. #endif /* __USBD_CORE_H */
  120. /**
  121. * @}
  122. */
  123. /**
  124. * @}
  125. */
  126. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/