GD32F1x0: USB/GD32_USB_Device_Library/Class/IAP/inc/usbd_iap_mal.h File Reference

GD32F1x0

usbd_iap_mal.h File Reference

USB DFU device media access layer header file. More...

#include "usbd_conf.h" #include "usbd_iap_core.h"

Go to the source code of this file.

Data Structures

struct  _IAP_MAL_PROPERTY
 

Macros

#define _1st_BYTE(x)    (uint8_t)((x) & 0xFF)
 
#define _2nd_BYTE(x)    (uint8_t)(((x) & 0xFF00) >> 8)
 
#define _3rd_BYTE(x)    (uint8_t)(((x) & 0xFF0000) >> 16)
 
#define SET_POLLING_TIMEOUT(x)
 

Typedefs

typedef struct _IAP_MAL_PROPERTY IAP_MAL_Property_TypeDef
 

Enumerations

enum  MAL_Status { MAL_OK = 0, MAL_FAIL, MAL_OK = 0, MAL_FAIL }
 

Functions

uint8_t IAP_MAL_Init (void)
 Initialize the memory media on the GD32. More...
 
uint8_t IAP_MAL_DeInit (void)
 Deinitialize the memory media on the GD32. More...
 
uint8_t IAP_MAL_Erase (uint32_t Addr, uint32_t PageCount)
 Erase a memory sector. More...
 
uint8_t IAP_MAL_Write (uint8_t Data[], uint32_t Addr, uint32_t Len)
 Write data to sectors of memory. More...
 
uint8_t * IAP_MAL_Read (uint32_t Addr, uint32_t Len)
 Read data from sectors of memory. More...
 
uint8_t IAP_MAL_GetStatus (uint32_t Addr, uint8_t Cmd, uint8_t *buffer)
 Get the status of a given memory and store in buffer. More...
 

Variables

uint8_t MAL_Buffer [TRANSFER_SIZE]
 

Detailed Description

USB DFU device media access layer header file.

Author
MCU SD
Version
V1.0
Date
6-Sep-2014

Definition in file usbd_iap_mal.h.

Generated by   doxygen 1.8.10