GD32F1x0: USB_Buffer_Private_functions

GD32F1x0

USB_Buffer_Private_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 which is in (0..7)
Direndpoint direction which can be OUT(0) or IN(1)
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 by   doxygen 1.8.10