GD32F10x USB-Device: USB_Buffer_Exported_Functions

GD32F103 Firmware

GD32F10x USB-Device  V1.0.0
GD32F10x USB-Device
USB_Buffer_Exported_Functions

Functions

void FreeUserBuffer (uint8_t EpID, uint8_t Dir)
 Free buffer used from application by toggling the SW_BUF byte. More...
 
void UserCopyToBuffer (uint8_t *UsrBuf, uint16_t BufAddr, uint16_t Bytes)
 Copy a buffer from user memory area to the allocation buffer area. More...
 
void BufferCopyToUser (uint8_t *UsrBuf, uint16_t BufAddr, uint16_t Bytes)
 Copy a buffer from the allocation buffer area to user memory area. More...
 

Detailed Description

Function Documentation

void BufferCopyToUser ( uint8_t *  UsrBuf,
uint16_t  BufAddr,
uint16_t  Bytes 
)

Copy a buffer from the allocation buffer area to user memory area.

Parameters
UsrBufpointer to user memory area
BufAddrthe allocation buffer address
Bytesbyte count
Return values
None

Definition at line 78 of file usb_buf.c.

void FreeUserBuffer ( uint8_t  EpID,
uint8_t  Dir 
)

Free buffer used from application by toggling the SW_BUF byte.

Parameters
EpIDendpoint identifier
Direndpoint direction
Return values
None

Definition at line 36 of file usb_buf.c.

void UserCopyToBuffer ( uint8_t *  UsrBuf,
uint16_t  BufAddr,
uint16_t  Bytes 
)

Copy a buffer from user memory area to the allocation buffer area.

Parameters
UsrBufpointer to user memory area
BufAddrthe allocation buffer address
Bytesbyte count
Return values
None

Definition at line 55 of file usb_buf.c.

Generated on Fri Feb 6 2015 14:56:36 for GD32F10x USB-Device by   doxygen 1.8.8