# modules/msd/STM32F10x/msd_memory.h File Reference

`#include "stm32f10x.h"`
`#include "msd.h"`

## Defines
#define | TXFR_IDLE 0
#define | TXFR_ONGOING 1
## Functions
void | MSD_Write_Memory (uint8_t lun, uint32_t Memory_Offset, uint32_t Transfer_Length)
void | MSD_Read_Memory (uint8_t lun, uint32_t Memory_Offset, uint32_t Transfer_Length)
uint16_t | MSD_MAL_GetStatus (uint8_t lun)
## Variables
uint32_t | MSD_Mass_Memory_Size [MSD_NUM_LUN]
uint32_t | MSD_Mass_Block_Size [MSD_NUM_LUN]
uint32_t | MSD_Mass_Block_Count [MSD_NUM_LUN]
u16 | msd_memory_rd_led_ctr
u16 | msd_memory_wr_led_ctr

## Define Documentation

#define TXFR_IDLE 0

#define TXFR_ONGOING 1

## Function Documentation

uint16_t MSD_MAL_GetStatus | ( | uint8_t | lun | ) |

Here is the call graph for this function:

void MSD_Read_Memory | ( | uint8_t | lun,
|  | uint32_t | Memory_Offset,
|  | uint32_t | Transfer_Length |
| ) |  |  |

Here is the call graph for this function:

void MSD_Write_Memory | ( | uint8_t | lun,
|  | uint32_t | Memory_Offset,
|  | uint32_t | Transfer_Length |
| ) |  |  |

Here is the call graph for this function:

## Variable Documentation

uint32_t MSD_Mass_Block_Count[MSD_NUM_LUN]

uint32_t MSD_Mass_Block_Size[MSD_NUM_LUN]

uint32_t MSD_Mass_Memory_Size[MSD_NUM_LUN]

u16 msd_memory_rd_led_ctr

Reduced version of SD Card Block device most functions already handled by MIOS32, therefore only block read/write functions have to be supported

u16 msd_memory_wr_led_ctr