WB32F10x Standard Peripherals Firmware Library

usbd_hw.h
Go to the documentation of this file.
1
17 /* Define to prevent recursive inclusion -------------------------------------*/
18 #ifndef __USBD_HW_H
19 #define __USBD_HW_H
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24
25 /* Includes ------------------------------------------------------------------*/
26 #include "wb32f10x.h"
27
28 /* Exported types ------------------------------------------------------------*/
29 /* Exported constants --------------------------------------------------------*/
30 /* Exported macro ------------------------------------------------------------*/
31 /* Exported functions --------------------------------------------------------*/
32
33 void USBD_HW_ReadEP(uint8_t ep_addr, uint8_t* pbuf, uint16_t size);
34 void USBD_HW_WriteEP(uint8_t ep_addr, const uint8_t* pdata, uint16_t len);
35 void USBD_HW_Transmit(uint8_t ep_addr, const uint8_t* pdata, uint16_t len);
36 uint16_t USBD_HW_GetRxDataCount(uint8_t ep_addr);
37 void USBD_HW_ReadyToReceive(uint8_t ep_addr);
38 void USBD_HW_SetStallEP(uint8_t ep_addr);
39 void USBD_HW_ClrStallEP(uint8_t ep_addr);
40 uint8_t USBD_HW_IsStalled(uint8_t ep_addr);
41
42
43 #ifdef __cplusplus
44 }
45 #endif
46
47 #endif /* __USBD_HW_H */
USBD_HW_GetRxDataCount
uint16_t USBD_HW_GetRxDataCount(uint8_t ep_addr)
Get the last received packet size of an OUT endpoint.
Definition: usbd_hw.c:89
USBD_HW_WriteEP
void USBD_HW_WriteEP(uint8_t ep_addr, const uint8_t *pdata, uint16_t len)
Write data to the specified endpoint.
Definition: usbd_hw.c:55
USBD_HW_ReadyToReceive
void USBD_HW_ReadyToReceive(uint8_t ep_addr)
Ready to receive from an OUT endpoint.
Definition: usbd_hw.c:107
USBD_HW_ReadEP
void USBD_HW_ReadEP(uint8_t ep_addr, uint8_t *pbuf, uint16_t size)
Read data from the specified endpoint.
Definition: usbd_hw.c:37
USBD_HW_IsStalled
uint8_t USBD_HW_IsStalled(uint8_t ep_addr)
Get stall status of non-control endpoint.
Definition: usbd_hw.c:165
USBD_HW_ClrStallEP
void USBD_HW_ClrStallEP(uint8_t ep_addr)
Clear Stall condition of a non-control endpoint.
Definition: usbd_hw.c:144
USBD_HW_Transmit
void USBD_HW_Transmit(uint8_t ep_addr, const uint8_t *pdata, uint16_t len)
Transmits data over an IN endpoint.
Definition: usbd_hw.c:72
USBD_HW_SetStallEP
void USBD_HW_SetStallEP(uint8_t ep_addr)
Set Stall condition of a non-control endpoint.
Definition: usbd_hw.c:123