GD32F10x USB-Device
V1.0.0
GD32F10x USB-Device
|
USB_DFU_MAL_Exported_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
-
Addr memory sector address/code
- Return values
-
MAL_OK if 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
-
Addr sector address/code (allow to determine which memory will be addressed) Cmd 0 for erase and 1 for write buffer pointer to the buffer where the status data will be stored
- Return values
-
MAL_OK if 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
-
Addr sector address/code Len length of data to be written (in bytes)
- Return values
-
Pointer to 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
-
Addr sector address/code Len length of data to be written (in bytes)
- Return values
-
MAL_OK if 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 1.8.8