STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Functions | Variables
usbd_dfu_media_template.c File Reference

Memory management layer. More...

#include "usbd_dfu_media_template.h"

Go to the source code of this file.

Functions

uint16_t MEM_If_Init (void)
 MEM_If_Init Memory initialization routine. More...
 
uint16_t MEM_If_Erase (uint32_t Add)
 MEM_If_Erase Erase sector. More...
 
uint16_t MEM_If_Write (uint8_t *src, uint8_t *dest, uint32_t Len)
 MEM_If_Write Memory write routine. More...
 
uint8_t * MEM_If_Read (uint8_t *src, uint8_t *dest, uint32_t Len)
 MEM_If_Read Memory read routine. More...
 
uint16_t MEM_If_DeInit (void)
 MEM_If_DeInit Memory deinitialization routine. More...
 
uint16_t MEM_If_GetStatus (uint32_t Add, uint8_t Cmd, uint8_t *buffer)
 Flash_If_GetStatus Memory read routine. More...
 

Variables

USBD_DFU_MediaTypeDef USBD_DFU_MEDIA_Template_fops
 

Detailed Description

Memory management layer.

Author
MCD Application Team
Version
V2.4.2
Date
11-December-2015
Attention

© COPYRIGHT 2015 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

   http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file usbd_dfu_media_template.c.

Function Documentation

uint16_t MEM_If_DeInit ( void  )

MEM_If_DeInit Memory deinitialization routine.

Parameters
None
Return values
0if operation is successful, MAL_FAIL else.

Definition at line 75 of file usbd_dfu_media_template.c.

uint16_t MEM_If_Erase ( uint32_t  Add)

MEM_If_Erase Erase sector.

Parameters
AddAddress of sector to be erased.
Return values
0if operation is successful, MAL_FAIL else.

Definition at line 86 of file usbd_dfu_media_template.c.

uint16_t MEM_If_GetStatus ( uint32_t  Add,
uint8_t  Cmd,
uint8_t *  buffer 
)

Flash_If_GetStatus Memory read routine.

Parameters
AddAddress to be read from.
cmdNumber of data to be read (in bytes).
Return values
Pointerto the physical address where data should be read.

Definition at line 123 of file usbd_dfu_media_template.c.

uint16_t MEM_If_Init ( void  )

MEM_If_Init Memory initialization routine.

Parameters
None
Return values
0if operation is successful, MAL_FAIL else.

Definition at line 64 of file usbd_dfu_media_template.c.

uint8_t * MEM_If_Read ( uint8_t *  src,
uint8_t *  dest,
uint32_t  Len 
)

MEM_If_Read Memory read routine.

Parameters
AddAddress to be read from.
LenNumber of data to be read (in bytes).
Return values
Pointerto the physical address where data should be read.

Definition at line 110 of file usbd_dfu_media_template.c.

uint16_t MEM_If_Write ( uint8_t *  src,
uint8_t *  dest,
uint32_t  Len 
)

MEM_If_Write Memory write routine.

Parameters
AddAddress to be written to.
LenNumber of data to be written (in bytes).
Return values
0if operation is successful, MAL_FAIL else.

Definition at line 98 of file usbd_dfu_media_template.c.