GD32F10x USB-Device: USB_DFU_MAL_Private_Functions

GD32F103 Firmware

GD32F10x USB-Device  V1.0.0
GD32F10x USB-Device
USB_DFU_MAL_Private_Functions

Functions

uint8_t DFU_MAL_Init (void)
 Initialize the memory media on the GD32. More...
 
uint8_t DFU_MAL_DeInit (void)
 Deinitialize the memory media on the GD32. More...
 
uint8_t DFU_MAL_Erase (uint32_t Addr)
 Erase a memory sector. More...
 
uint8_t DFU_MAL_Write (uint32_t Addr, uint32_t Len)
 Write data to sectors of memory. More...
 
uint8_t * DFU_MAL_Read (uint32_t Addr, uint32_t Len)
 Read data from sectors of memory. More...
 
uint8_t DFU_MAL_GetStatus (uint32_t Addr, uint8_t Cmd, uint8_t *buffer)
 Get the status of a given memory and store in buffer. More...
 

Detailed Description

Function Documentation

uint8_t DFU_MAL_DeInit ( void  )

Deinitialize the memory media on the GD32.

Parameters
None
Return values
MAL_OK

Definition at line 92 of file usbd_dfu_mal.c.

uint8_t DFU_MAL_Erase ( uint32_t  Addr)

Erase a memory sector.

Parameters
Addrmemory sector address/code
Return values
MAL_OKif all operations are OK, MAL_FAIL else

Definition at line 114 of file usbd_dfu_mal.c.

uint8_t DFU_MAL_GetStatus ( uint32_t  Addr,
uint8_t  Cmd,
uint8_t *  buffer 
)

Get the status of a given memory and store in buffer.

Parameters
Addrsector address/code (allow to determine which memory will be addressed)
Cmd0 for erase and 1 for write
bufferpointer to the buffer where the status data will be stored
Return values
MAL_OKif all operations are OK, MAL_FAIL else

Definition at line 216 of file usbd_dfu_mal.c.

uint8_t DFU_MAL_Init ( void  )

Initialize the memory media on the GD32.

Parameters
None
Return values
MAL_OK

Definition at line 70 of file usbd_dfu_mal.c.

uint8_t* DFU_MAL_Read ( uint32_t  Addr,
uint32_t  Len 
)

Read data from sectors of memory.

Parameters
Addrsector address/code
Lenlength of data to be written (in bytes)
Return values
Pointerto buffer

Definition at line 182 of file usbd_dfu_mal.c.

uint8_t DFU_MAL_Write ( uint32_t  Addr,
uint32_t  Len 
)

Write data to sectors of memory.

Parameters
Addrsector address/code
Lenlength of data to be written (in bytes)
Return values
MAL_OKif all operations are OK, MAL_FAIL else

Definition at line 148 of file usbd_dfu_mal.c.

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