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.
 
 
 
 
 
 

120 lines
2.5 KiB

  1. /**
  2. ******************************************************************************
  3. * @file usbd_ioreq.h
  4. * @author MCD Application Team
  5. * @brief Header file for the usbd_ioreq.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_IOREQ_H
  21. #define __USBD_IOREQ_H
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /* Includes ------------------------------------------------------------------*/
  26. #include "usbd_def.h"
  27. #include "usbd_core.h"
  28. /** @addtogroup STM32_USB_DEVICE_LIBRARY
  29. * @{
  30. */
  31. /** @defgroup USBD_IOREQ
  32. * @brief header file for the usbd_ioreq.c file
  33. * @{
  34. */
  35. /** @defgroup USBD_IOREQ_Exported_Defines
  36. * @{
  37. */
  38. /**
  39. * @}
  40. */
  41. /** @defgroup USBD_IOREQ_Exported_Types
  42. * @{
  43. */
  44. /**
  45. * @}
  46. */
  47. /** @defgroup USBD_IOREQ_Exported_Macros
  48. * @{
  49. */
  50. /**
  51. * @}
  52. */
  53. /** @defgroup USBD_IOREQ_Exported_Variables
  54. * @{
  55. */
  56. /**
  57. * @}
  58. */
  59. /** @defgroup USBD_IOREQ_Exported_FunctionsPrototype
  60. * @{
  61. */
  62. USBD_StatusTypeDef USBD_CtlSendData (USBD_HandleTypeDef *pdev,
  63. uint8_t *pbuf,
  64. uint16_t len);
  65. USBD_StatusTypeDef USBD_CtlContinueSendData (USBD_HandleTypeDef *pdev,
  66. uint8_t *pbuf,
  67. uint16_t len);
  68. USBD_StatusTypeDef USBD_CtlPrepareRx (USBD_HandleTypeDef *pdev,
  69. uint8_t *pbuf,
  70. uint16_t len);
  71. USBD_StatusTypeDef USBD_CtlContinueRx (USBD_HandleTypeDef *pdev,
  72. uint8_t *pbuf,
  73. uint16_t len);
  74. USBD_StatusTypeDef USBD_CtlSendStatus (USBD_HandleTypeDef *pdev);
  75. USBD_StatusTypeDef USBD_CtlReceiveStatus (USBD_HandleTypeDef *pdev);
  76. uint32_t USBD_GetRxCount (USBD_HandleTypeDef *pdev, uint8_t ep_addr);
  77. /**
  78. * @}
  79. */
  80. #ifdef __cplusplus
  81. }
  82. #endif
  83. #endif /* __USBD_IOREQ_H */
  84. /**
  85. * @}
  86. */
  87. /**
  88. * @}
  89. */
  90. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/