Classes | Macros | Typedefs | Functions | Variables
usbd_dfu_mal.h File Reference

Header for usbd_dfu_mal.c file. More...

#include "usb_conf.h"
#include "usbd_conf.h"
#include "usbd_dfu_core.h"
Include dependency graph for usbd_dfu_mal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _DFU_MAL_PROP
 

Macros

#define _1st_BYTE(x)   (uint8_t)((x)&0xFF) /* 1st addressing cycle */
 
#define _2nd_BYTE(x)   (uint8_t)(((x)&0xFF00)>>8) /* 2nd addressing cycle */
 
#define _3rd_BYTE(x)   (uint8_t)(((x)&0xFF0000)>>16) /* 3rd addressing cycle */
 
#define _4th_BYTE(x)   (uint8_t)(((x)&0xFF000000)>>24) /* 4th addressing cycle */
 
#define MAL_FAIL   1
 
#define MAL_OK   0
 
#define SET_POLLING_TIMING(x)
 

Typedefs

typedef struct _DFU_MAL_PROP DFU_MAL_Prop_TypeDef
 

Functions

uint16_t MAL_DeInit (void)
 MAL_DeInit DeInitializes the Media on the STM32. More...
 
uint16_t MAL_Erase (uint32_t SectorAddress)
 MAL_Erase Erase a sector of memory. More...
 
uint16_t MAL_GetStatus (uint32_t SectorAddress, uint8_t Cmd, uint8_t *buffer)
 MAL_GetStatus Get the status of a given memory. More...
 
uint16_t MAL_Init (void)
 MAL_Init Initializes the Media on the STM32. More...
 
uint8_t * MAL_Read (uint32_t SectorAddress, uint32_t DataLength)
 MAL_Read Read sectors of memory. More...
 
uint16_t MAL_Write (uint32_t SectorAddress, uint32_t DataLength)
 MAL_Write Write sectors of memory. More...
 

Variables

uint8_t MAL_Buffer [XFERSIZE]
 

Detailed Description

Header for usbd_dfu_mal.c file.

Author
MCD Application Team
Version
V1.1.0
Date
19-March-2012
Attention

© COPYRIGHT 2012 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_mal.h.

Macro Definition Documentation

#define _1st_BYTE (   x)    (uint8_t)((x)&0xFF) /* 1st addressing cycle */

Definition at line 59 of file usbd_dfu_mal.h.

#define _2nd_BYTE (   x)    (uint8_t)(((x)&0xFF00)>>8) /* 2nd addressing cycle */

Definition at line 60 of file usbd_dfu_mal.h.

#define _3rd_BYTE (   x)    (uint8_t)(((x)&0xFF0000)>>16) /* 3rd addressing cycle */

Definition at line 61 of file usbd_dfu_mal.h.

#define _4th_BYTE (   x)    (uint8_t)(((x)&0xFF000000)>>24) /* 4th addressing cycle */

Definition at line 62 of file usbd_dfu_mal.h.

#define MAL_FAIL   1

Definition at line 56 of file usbd_dfu_mal.h.

#define MAL_OK   0

Definition at line 55 of file usbd_dfu_mal.h.

#define SET_POLLING_TIMING (   x)
Value:
#define _1st_BYTE(x)
Definition: usbd_dfu_mal.h:59
static uint8_t buffer[BMP280_DATA_FRAME_SIZE]
Definition: drv_bmp280.c:61
#define _2nd_BYTE(x)
Definition: usbd_dfu_mal.h:60
#define _3rd_BYTE(x)
Definition: usbd_dfu_mal.h:61

Definition at line 65 of file usbd_dfu_mal.h.

Typedef Documentation

Function Documentation

uint16_t MAL_DeInit ( void  )

MAL_DeInit DeInitializes the Media on the STM32.

Parameters
None
Return values
Resultof the opeartion (MAL_OK in all cases)

Definition at line 118 of file usbd_dfu_mal.c.

uint16_t MAL_Erase ( uint32_t  Add)

MAL_Erase Erase a sector of memory.

Parameters
AddSector address/code
Return values
Resultof the opeartion: MAL_OK if all operations are OK else MAL_FAIL

Definition at line 141 of file usbd_dfu_mal.c.

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

MAL_GetStatus Get the status of a given memory.

Parameters
AddSector 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
Bufferpointer

Definition at line 241 of file usbd_dfu_mal.c.

uint16_t MAL_Init ( void  )

MAL_Init Initializes the Media on the STM32.

Parameters
None
Return values
Resultof the opeartion (MAL_OK in all cases)

Definition at line 95 of file usbd_dfu_mal.c.

uint8_t* MAL_Read ( uint32_t  Add,
uint32_t  Len 
)

MAL_Read Read sectors of memory.

Parameters
AddSector address/code
LenNumber of data to be written (in bytes)
Return values
Bufferpointer

Definition at line 211 of file usbd_dfu_mal.c.

uint16_t MAL_Write ( uint32_t  Add,
uint32_t  Len 
)

MAL_Write Write sectors of memory.

Parameters
AddSector address/code
LenNumber of data to be written (in bytes)
Return values
Resultof the opeartion: MAL_OK if all operations are OK else MAL_FAIL

Definition at line 176 of file usbd_dfu_mal.c.

Variable Documentation

__ALIGN_BEGIN uint8_t MAL_Buffer

Definition at line 83 of file usbd_dfu_mal.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Apr 15 2021 05:07:53